题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=173144题意: 输入n个数,要使这n个数都不相同,且只能加,输出最少要加的多少。 案例: 1)input 4 1 3 1 4 output 12)i...
分类:
其他好文 时间:
2015-07-17 22:41:59
阅读次数:
177
E. Soldier and Traveling
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
In the country there are n cities a...
分类:
编程语言 时间:
2015-07-17 18:57:46
阅读次数:
193
A. Lala Land and Apple Trees
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Amr lives in Lala Land. Lala Land...
分类:
移动开发 时间:
2015-07-15 22:53:57
阅读次数:
301
A. Lala Land and Apple Trees
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Amr lives in Lala Land. Lala La...
分类:
移动开发 时间:
2015-07-15 19:19:18
阅读次数:
323
题目描述Description我们下面来研究整数性质,我们知道质数只有 1和自身两个因子,合数至少有除了 1和自身的其他因子,我们也知道“猫老大数”是只能分解成两个质数乘积形式的数,那么能分解成两个合数的数呢?我们称之为“牛数”。下面编程判断整数是否为“牛数”。 输入输出格式Input/output...
分类:
其他好文 时间:
2015-07-15 18:35:34
阅读次数:
322
A+B for Input-Output Practice (VII)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 52439 Accepted Submission(s): 35139
Problem Des...
分类:
其他好文 时间:
2015-07-15 17:11:16
阅读次数:
90
A+B for Input-Output Practice (VIII)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 114146 Accepted Submission(s): 35013
Problem D...
分类:
其他好文 时间:
2015-07-15 17:09:56
阅读次数:
133
A+B for Input-Output Practice (I)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 97356 Accepted Submission(s): 53921
Problem Descr...
分类:
其他好文 时间:
2015-07-15 15:12:08
阅读次数:
131
A+B for Input-Output Practice (II)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 73325 Accepted Submission(s): 47653
Problem Desc...
分类:
其他好文 时间:
2015-07-15 15:11:36
阅读次数:
120
A+B for Input-Output Practice (III)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 84220 Accepted Submission(s): 44153
Problem Des...
分类:
其他好文 时间:
2015-07-15 15:09:49
阅读次数:
81