C. The Largest CliqueTime Limit: 3000msMemory Limit: 131072KB64-bit integer IO format:%lld Java class name:MainGiven a directed graphG, consider the f...
分类:
其他好文 时间:
2014-07-23 22:17:17
阅读次数:
459
Dragon of Loowater
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
Problem C: The Dragon o...
分类:
其他好文 时间:
2014-07-23 21:05:24
阅读次数:
263
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit] [Go Back] [Status]
Description
G
Commando War
Input: Standard Input
Output: S...
分类:
其他好文 时间:
2014-07-23 21:04:06
阅读次数:
297
B. Claw DecompositionTime Limit: 1000msMemory Limit: 131072KB64-bit integer IO format:%lld Java class name:MainA claw is defined as a pointed curved n...
分类:
其他好文 时间:
2014-07-23 15:22:06
阅读次数:
268
贪心策略:因为2*难度(1~100) 远比500*时间 的影响小,所以说,先对时间从大到小排序,相等的再按照等级从大到小排序;对任务和机器都排序之后,再统计满足任务时间的机器,选择等级最接近任务难度的的机器;
因为数据很多,很可能超出int范围,要用长整型,但是最后输出的时候,如果用printf( "%lld %lld\n", sol, sum );输出的话,会发现第二个数会是0,在这上面wa了n次。。
最后问了一下学长,用了%I64,才正确,后来有自己百度了一下http://blog.csdn.net...
分类:
其他好文 时间:
2014-07-23 13:25:18
阅读次数:
297
合并排序再枚举。
题意问五个数组中各抽一个加起来 和是否为 0。
开始想用 200*200*200 和 200*200 比。果然TLE了。
后来知道 得 200*200,200*200 ,200 。
先200*200 的枚举,排序,去重。然后三个元素加起来,微调 两个 200*200 的指针。
这题用 %lld 就WA。得用 %I64d 。贡献N多TLE。...
分类:
其他好文 时间:
2014-07-22 23:56:47
阅读次数:
471
H. City HorizonTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainFarmer John has taken his cows on a trip to th...
分类:
其他好文 时间:
2014-07-22 23:21:57
阅读次数:
263
#include#include#include#includeusing namespace std;//typedef __int64 lld;typedef long long lld;int main(){ lld n,m,ans; //while(scanf("%I64d%I6...
分类:
其他好文 时间:
2014-07-22 23:19:07
阅读次数:
194
G. Stockbroker GrapevineTime Limit: 1000msMemory Limit: 10000KB64-bit integer IO format:%lld Java class name:MainStockbrokers are known to overreact t...
分类:
其他好文 时间:
2014-07-22 22:41:52
阅读次数:
277
E. Invitation CardsTime Limit: 8000msMemory Limit: 262144KB64-bit integer IO format:%lld Java class name:MainIn the age of television, not many people...
分类:
其他好文 时间:
2014-07-22 22:37:14
阅读次数:
278