摘要:
A. Little Artem and Presents 题目连接: http://www.codeforces.com/contest/669/problem/A Description Little Artem got n stones on his birthday and now wants 阅读全文
摘要:
Robot 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5673 Description There is a robot on the origin point of an axis.Every second, the robot can mov 阅读全文
摘要:
String 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5672 Description There is a string S.S only contain lower case English character.(10≤length(S)≤ 阅读全文
摘要:
Matrix 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5671 Description There is a matrix M that has n rows and m columns (1≤n≤1000,1≤m≤1000).Then we 阅读全文
摘要:
Machine 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5670 Description There is a machine with m(2≤m≤30) coloured bulbs and a button.When the button 阅读全文
摘要:
F. Four Divisors 题目连接: http://www.codeforces.com/contest/665/problem/F Description If an integer a is divisible by another integer b, then b is called 阅读全文
摘要:
E. Beautiful Subarrays 题目连接: http://www.codeforces.com/contest/665/problem/E Description One day, ZS the Coder wrote down an array of integers a with 阅读全文
摘要:
D. Simple Subset 题目连接: http://www.codeforces.com/contest/665/problem/D Description A tuple of positive integers {x1, x2, ..., xk} is called simple if 阅读全文
摘要:
C. Simple Strings 题目连接: http://www.codeforces.com/contest/665/problem/C Description zscoder loves simple strings! A string t is called simple if every 阅读全文
摘要:
B. Shopping 题目连接: http://www.codeforces.com/contest/665/problem/B Description Ayush is a cashier at the shopping center. Recently his department has s 阅读全文
摘要:
A. Buses Between Cities 题目连接: http://www.codeforces.com/contest/665/problem/A Description Buses run between the cities A and B, the first one is at 05 阅读全文
摘要:
E. Interesting Graph and Apples 题目连接: http://www.codeforces.com/contest/9/problem/E Description Hexadecimal likes drawing. She has drawn many graphs a 阅读全文
摘要:
D. How many trees? 题目连接: http://www.codeforces.com/contest/9/problem/D Description In one very old text file there was written Great Wisdom. This Wisd 阅读全文
摘要:
C. Hexadecimal's Numbers 题目连接: http://www.codeforces.com/contest/9/problem/C Description One beautiful July morning a terrible thing happened in Mainf 阅读全文
摘要:
B. Running Student 题目连接: http://www.codeforces.com/contest/9/problem/B Description And again a misfortune fell on Poor Student. He is being late for a 阅读全文
摘要:
A. Die Roll 题目连接: http://www.codeforces.com/contest/9/problem/A Description Yakko, Wakko and Dot, world famous animaniacs, decided to rest from acting 阅读全文
摘要:
1035 最长的循环节 题目连接: https://www.51nod.com/onlineJudge/questionCode.html !problemId=1035 Description 正整数k的倒数1/k,写为10进制的小数如果为无限循环小数,则存在一个循环节,求 using names 阅读全文
摘要:
模板如下: 扩展版本: 求解a^k=b %p 求k,最小的k一定小于p,否则会重复,否则无解 gcd(a,p)=1时 设k=mi+v m=sqrt(p); i,v include include define MOD 76543 using namespace std; int hs[MOD], h 阅读全文
摘要:
1040 最大公约数之和 题目连接: https://www.51nod.com/onlineJudge/questionCode.html !problemId=1040 Description 给出一个n,求1 n这n个数,同n的最大公约数的和。比如:n = 6 1,2,3,4,5,6 同6的最 阅读全文
摘要:
1179 最大的最大公约数 题目连接: https://www.51nod.com/onlineJudge/questionCode.html !problemId=1179 Description 给出N个正整数,找出N个数两两之间最大公约数的最大值。例如:N = 4,4个数为:9 15 25 1 阅读全文
摘要:
2818: Gcd 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=2818 Description 给定整数N,求1 using namespace std; const int maxn = 1e7+5; long long phi[m 阅读全文
摘要:
嘿嘿嘿,去川大了。 川大好大,清水渠校区真是辣鸡。 妹子好多,清水寺校区真是辣鸡。 河好大,清水沟校区太辣鸡了。 比赛开始了。 前八道题都是水题,嘿嘿嘿就过去了 然后看到了最不擅长的数学题,交给擅长的老司机去做,然后我就开始划水了。 嘿嘿嘿,比赛就结束了。 嘿嘿嘿,然后去聚餐。 嘿嘿嘿,吃的好饱。 阅读全文
摘要:
4484: The Graver Robbers' Chronicles 题目连接: http://acm.scu.edu.cn/soj/problem.action?id=4484 Description One day, Kylin Zhang and Wu Xie are trapped in 阅读全文
摘要:
4493: DNA 题目连接: http://acm.scu.edu.cn/soj/problem.action?id=4493 Description Deoxyribonucleic acid (DNA) is a molecule that carries most of the geneti 阅读全文
摘要:
2976: [Poi2002]出圈游戏 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=2976 Description Input 中第一行有一个正整数n, 2 include include include using namespac 阅读全文
摘要:
4443: [Scoi2015]小凸玩矩阵 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=4443 Description 小凸和小方是好朋友,小方给小凸一个N M(N using namespace std; const int MAX 阅读全文
摘要:
4429: frog's dice 题目连接: http://acm.scu.edu.cn/soj/problem.action?id=4429 Description frog has many dices:) Each dice has six surfaces and there is a l 阅读全文
摘要:
4427: Miss Zhao's Graph 题目连接: http://acm.scu.edu.cn/soj/problem.action?id=4427 Description Mr Jiang gives Miss Zhao a problem about graphs. Unfortunat 阅读全文
摘要:
4423: Necklace 题目连接: http://acm.scu.edu.cn/soj/problem.action?id=4423 Description baihacker bought a necklace for his wife on their wedding anniversar 阅读全文
摘要:
C. Looking for Order 题目连接: http://www.codeforces.com/contest/8/problem/C Description Girl Lena likes it when everything is in order, and looks for ord 阅读全文
摘要:
4500: 矩阵 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=4500 Description 有一个n m的矩阵,初始每个格子的权值都为0,可以对矩阵执行两种操作: 1. 选择一行, 该行每个格子的权值加1或减1。 2. 选择一列, 阅读全文
摘要:
B. Obsession with Robots 题目连接: http://www.codeforces.com/contest/8/problem/B Description The whole world got obsessed with robots,and to keep pace wit 阅读全文
摘要:
A. Train and Peter 题目连接: http://www.codeforces.com/contest/8/problem/A Description Peter likes to travel by train. He likes it so much that on the tra 阅读全文
摘要:
ABCDE 题目连接: http://acm.uestc.edu.cn/ /problem/show/1307 Description Binary coded decimal (BCD) is a kind of binary encodings of decimal numbers where 阅读全文
摘要:
Hash Perfectly 题目连接: http://acm.uestc.edu.cn/ /problem/show/1314 Description In computing, a hash table is a data structure used to implement an assoc 阅读全文
摘要:
3 idiots 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=4609 Description King OMeGa catched three men who had been streaking in the street. Looking a 阅读全文
摘要:
A B Problem Plus 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=1402 Description Calculate A \ B. Input Each line will contain two integers A and B. 阅读全文
摘要:
FFT,这份代码在51nod跑的非常快,赶紧扒下来! //FFT 大整数乘法 include include include include using namespace std; const int N = 500005; const double pi = acos( 1.0); char s 阅读全文
摘要:
跟着一群小伙伴做一些奇怪的东西 所以就要研究下面的代码了QAQ ;剧本文件大概就是这样,";"号后面是注释,被/ /框住的也是注释, ;标签符号是[]或者@,跟krkr一样,不过@后面只能跟一行命令噢。 ;[p]标签比较常用,作用是暂停,点击鼠标执行下一行命令 @call file=wide/lib 阅读全文
摘要:
E. Different Subsets For All Tuples 题目连接: http://www.codeforces.com/contest/660/problem/E Description For a sequence a of n integers between 1 and m, 阅读全文