随笔分类 - 二分搜索
河南省第四届ACM程序设计大赛
摘要:A: 序号互换 #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <stack> #include <queue> #include <vect
阅读全文
(二分)Block Towers(cf626)
摘要:http://www.codeforces.com/contest/626/problem/C 题意是有一群小朋友在堆房子,现在有n个小孩每次可以放两个积木,m个小孩,每次可以放3个积木,最后每个小孩堆得高度都不同,求最大的高度最小是多少; 例如n = 4,m = 2; 所有高度分别为2,4,6,8
阅读全文
Magic Powder - 2 (CF 670_D)
摘要:http://codeforces.com/problemset/problem/670/D2 The term of this problem is the same as the previous one, the only exception — increased restrictions.
阅读全文
(二叉树)Elven Postman -- HDU -- 54444(2015 ACM/ICPC Asia Regional Changchun Online)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5444 Elven Postman Time Limit: 1500/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total S
阅读全文
(二分搜索)Can you solve this equation? -- hdu -- 2199
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=2199Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1...
阅读全文
(二分搜索 )Strange fuction -- HDU -- 2899
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=2899Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4...
阅读全文
(二分搜索 数论)(求阶乘里零个数对应的阶乘)light oj -- 1138
摘要:链接DescriptionYou task is to find minimal natural numberN, so thatN!contains exactlyQzeroes on the trail in decimal notation. As you knowN! = 1*2*...*N...
阅读全文
浙公网安备 33010602011771号