随笔分类 - ACM水题
ZOJ3798 Abs Problem
摘要:题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798学会了对于序列用next_permutation暴力打表可以先打表找规律#include#include#define INF 0x3f3f3f3f//#defin...
阅读全文
HDU1395 2^x mod n = 1 暴力题
摘要:题目:http://acm.hdu.edu.cn/showproblem.php?pid=1395可以用欧拉定理证明其存在性。欧拉定理是这样的:如果a和m互质且a 2 int main() 3 { 4 int n; 5 while (scanf("%d", &n) != EOF){ ...
阅读全文
HDU2030 汉字统计
摘要:汉字统计Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22508Accepted Submission(s): 12255Problem Desc...
阅读全文
HDU2028 最小公倍数
摘要:Lowest Common Multiple PlusTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31453Accepted Submissio...
阅读全文
浙公网安备 33010602011771号