EXCEL排序
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 13392 Accepted Submission(s): 5254
Problem Description
Excel可以对一组纪录按任意指...
分类:
编程语言 时间:
2014-11-08 18:17:51
阅读次数:
204
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2099解题思路:将a扩大100倍之后,再给它从加上i(i从0到99),一个一个的看哪一个能整除反思:末两位是00的时候输出的是00(这种情况题目里面的测试数据给出了的,所以就注意到了),可是末两位如果是0...
分类:
其他好文 时间:
2014-11-08 18:15:00
阅读次数:
296
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1019解题思路:lcm(a,b)=a*b/gcd(a,b)反思:最开始提交的时候WA,以为是溢出了,于是改成了long long,还是WA,于是就不明白了,于是就去看了discuss,发现应该这样来写 l...
分类:
其他好文 时间:
2014-11-08 18:14:46
阅读次数:
187
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1159解题思路:任意先给出两个字符串 abcfbc abfcab,用dp[i][j]来记录当前最长的子序列,则如果有x[i]与y[j]相等的话,则相当于公共子序列的长度在dp[i-1][j-1]上增加1,...
分类:
其他好文 时间:
2014-11-08 00:52:18
阅读次数:
312
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1229解题思路,最开始想的是把输入的数据存入数组中,比如输入 1,在数组中就储存为1000(因为数据不超过10000,所以四位数字就够了),然后再对数组进行处理,使它变成0001,这样就可以方便的比较末尾...
分类:
其他好文 时间:
2014-11-07 20:42:56
阅读次数:
147
题目链接:解题思路:1—注意输出格式,PE了好多次,具体格式分析见下,从discuss·里面粘贴过来的http://acm.hdu.edu.cn/discuss/problem/post/reply.php?postid=16852&messageid=1&deep=0反思----边界值一定要多考虑...
分类:
其他好文 时间:
2014-11-07 00:49:14
阅读次数:
189
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1108和1019感觉很类似,都是求最小公倍数的题目,可是1019题目上给的数据能够通过,可是老是WA,待解决。#includeint gcd(int a,int b){ int t,r; if(a<b) ...
分类:
其他好文 时间:
2014-11-06 21:29:38
阅读次数:
140
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2001注意输入时候的空格就可以了#include#includeint main(){ double x1,x2,y1,y2; while(scanf("%lf %lf %lf %lf",&x1,&y1,...
分类:
其他好文 时间:
2014-11-06 21:26:48
阅读次数:
123
刚开始还思路错了,百度了一下就思路就能写出来了http://acm.hdu.edu.cn/showproblem.php?pid=2084 1 #include 2 3 int max(int a, int b) 4 { 5 return a>b ? a : b; 6 } 7 8 in...
分类:
其他好文 时间:
2014-11-05 21:16:37
阅读次数:
216
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2000注意过滤掉输入三个字符之后的回车键即可#includeint main(){ char a,b,c,t; while(scanf("%c%c%c",&a,&b,&c)!=EOF) { getcha....
分类:
编程语言 时间:
2014-11-05 19:31:44
阅读次数:
267