A Simple Problem with Integers
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 57666
Accepted: 17546
Case Time Limit: 2000MS
Description
You have N...
分类:
其他好文 时间:
2014-07-12 23:43:04
阅读次数:
291
Drainage Ditches
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 54766
Accepted: 20880
Description
Every time it rains on Farmer John's fields, a pond fo...
分类:
其他好文 时间:
2014-07-12 21:52:47
阅读次数:
225
/*
G - 寻找大富翁
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
浙江桐乡乌镇共有n个人,请找出该镇上的前m个大富翁.
Input
输入包含多组测试用例.
每个用例首先包含2个整数n(0<n<=100000)和m(0<m<=10)...
分类:
其他好文 时间:
2014-07-12 21:31:59
阅读次数:
232
问题:
Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:
Only one letter can be changed at a time
Each intermediate wo...
分类:
编程语言 时间:
2014-07-12 19:21:38
阅读次数:
290
/*
B - Cow Multiplication
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
POJ 3673
Description
Bessie is tired of multiplying pairs of numbers th...
分类:
其他好文 时间:
2014-07-12 19:19:02
阅读次数:
164
/*
J - Saving HDU
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
HDU 2111
Description
话说上回讲到海东集团面临内外交困,公司的元老也只剩下XHD夫妇二人了。显然,作为多年拼搏的商人,XHD不会坐以待毙的...
分类:
其他好文 时间:
2014-07-12 19:18:17
阅读次数:
149
/*
H - A+B
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
HDU 3787
Description
给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。
现在请计算A+B的结果,并以正常形式输出。
I...
分类:
其他好文 时间:
2014-07-12 18:23:33
阅读次数:
170
/*
A - THE DRUNK JAILER
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
POJ 1218
Description
A certain prison contains a long hall of n cells, ea...
分类:
其他好文 时间:
2014-07-12 18:16:27
阅读次数:
219
Curling 2.0
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10859
Accepted: 4586
Description
On Planet MM-21, after their Olympic games this year, curlin...
分类:
其他好文 时间:
2014-07-12 18:03:08
阅读次数:
189
这个题目是拓扑排序,因为边的数目非常大,所以普通的建图会爆内存,所以这里采用vector容器。
1:建完图后对入度为0的点加入队列,然后对整幅图进行扫描,得到每个点的位置。
2:要用一个数组存相对位置,所以不能只用一个变量存储,因为每次出队列只能有一个元素。。
2:用数组模拟果然比stl快一些。。。
题目链接:
哈哈 我在这里
题面:
Reward
Time Limit...
分类:
其他好文 时间:
2014-07-12 16:35:07
阅读次数:
292