- 博客(5)
- 收藏
- 关注
原创 POJ 3254 Corn Fields
题意:Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. some of the squares are infertile and can't be planted. (1 for fertile,
2014-01-27 12:20:05 1214 4
原创 B. Multitasking CF_384
题意: Iahub can choose a pair of distinct indices i and j (1 ≤ i, j ≤ m, i ≠ j). Then in each array the values at positions i and j are swapped only if the value at position i is strictly
2014-01-21 19:38:27 611
原创 CF contest/382/B. Number Busters
题解: 设t 分钟时: c'=c-t; a'=a- (x*t-b)/w; c' 整理出来 t>= (a*w-cw-b)/(x-w); 注意题目条件 xw的情况; #include #include #include using namespace std; long long a,b,w,x,c;// 比赛时候一激动竟然定义成int
2014-01-18 14:04:22 1477 10
原创 CF/379/problem/C
记录下好的思路…………^.^ 题意: 有N个值: a1-an; 求一个新序列b1-bn,使得任意bi!=bj且bi>=ai且 b1-bn的和最小 我的思路: 先把ai 按从小到大排序,然后维护一个最大值maxn, 当 ai 当 ai>maxn,说明ai并没有出现过,maxn=b[ai.id]=ai; #inclu
2014-01-10 21:11:12 669
原创 cf /376/C
题意:题意还是有些问题的!很明显这是一个多组解的题目,但题目并没有注明输出答案之一就可。 注意题目“You have number a, whose decimal representation quite luckily contains digits 1, 6, 8, 9. Rearrange the digits in its decimal representation so
2014-01-10 20:32:27 941
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人