码迷,mamicode.com
首页 >  
搜索关键字:round floor ceil    ( 17505个结果
Codeforces Round #256 (Div. 2) B Suffix Structures
B. Suffix StructuresBizon the Champion isn't just a bison. He also is a favorite of the "Bizons" team.At a competition the "Bizons" got the following ...
分类:其他好文   时间:2014-07-18 14:39:26    阅读次数:221
Codeforces Round #256 (Div. 2) C (448C)Painting Fence
分治!首先是一大块,贪行刷和竖刷的最小,再转化为小块。。。。。。。。。。。。 AC代码如下: #include #include #include using namespace std; int n; int a[5005]; int solve(int l,int r) { int i,j; int len=r-l+1; ...
分类:其他好文   时间:2014-07-18 11:22:29    阅读次数:229
Codeforces Round #256 (Div. 2) B (448B) Suffix Structures
题意就是将第一个字符串转化为第二个字符串,支持两个操作,一个是删除,一个是更换字符位置。 简单的字符串操作!! AC代码如下: #include #include #include #include #define M 50010 #define inf 100000000 using namespace std; char a[1005],b[1005]; int la,lb; bo...
分类:其他好文   时间:2014-07-18 11:03:48    阅读次数:273
Codeforces Round #256 (Div. 2) E Divisors
E. DivisorsBizon the Champion isn't just friendly, he also is a rigorous coder.Let's define function f(a), where a is a sequence of integers. Function...
分类:其他好文   时间:2014-07-18 10:21:31    阅读次数:269
CH Round #17 舞动的夜晚
舞动的夜晚CH Round #17描述L公司和H公司举办了一次联谊晚会。晚会上,L公司的N位员工和H公司的M位员工打算进行一场交际舞。在这些领导中,一些L公司的员工和H公司的员工之间是互相认识的,这样的认识关系一共有T对。舞会上,每位员工会尝试选择一名Ta认识的对方公司的员工作为舞伴,并且每位员工至...
分类:其他好文   时间:2014-07-18 10:18:18    阅读次数:357
Codeforces Round #256 (Div. 2) A Rewards
A. RewardsBizon the Champion is called the Champion for a reason.Bizon the Champion has recently got a present — a new glass cupboard with n shelves a...
分类:其他好文   时间:2014-07-18 10:17:51    阅读次数:254
Codeforces Round #256 (Div. 2) C. Painting Fence
C. Painting FenceBizon the Champion isn't just attentive, he also is very hardworking.Bizon the Champion decided to paint his old fence his favorite c...
分类:其他好文   时间:2014-07-18 10:14:51    阅读次数:268
SGU 152.Making round
不断向下取直到,忽略的数累计到一个百分比,给当前百分比加1。 这道题要避免处理浮点数,用余数来处理,不然会wa 9 #include #include using namespace std;int g[10001];int x, n, sum, le;int main() { cin >>...
分类:其他好文   时间:2014-07-17 23:21:20    阅读次数:197
Mysql随机整数
若要在i≤R≤j这个范围得到一个随机整数R,需要用到表达式 FLOOR(i+ RAND() * (j–i+ 1))。例如, 若要在7 到 12 的范围(包括7和12)内得到一个随机整数, 可使用以下语句:SELECT FLOOR(7 + (RAND() * 6));FLOOR(i+ RAND() *...
分类:数据库   时间:2014-07-17 23:18:18    阅读次数:381
Codeforces Round #253 (Div. 2)——Borya and Hanabi
n表示有n个卡片,每个卡片有一种颜色和一个数字(共五种不同的颜色和五个不同的数字)。事先知道每种卡片有几张,但是不知道具体的位置。问需要几次提示就可以知道所有卡片的位置都在哪里:每次提示可以选择一个颜色或者一个数字,就可以知道含有所选属性的牌有哪些。...
分类:其他好文   时间:2014-07-17 19:21:44    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!