Gems Fight! Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 327680/327680 K (Jav…
分类:Online Judge
HDOJ 2504 [又见GCD]枚举
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2504 题目大意:a、c最大公约数为b。已知a、b,求最小的c(c!=b)。 关键思想:枚举 代码如下: //a,c最大公约…
HDU 1058 [Humble Numbers] 数组生成
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1058 题目大意:Humble number是质因数只可能有2,3,5,7的数。输入n,格式化输出第n个Humble num…
ACM/ICPC 之 BFS-广搜+队列入门-抓牛(POJ3278)
这一题是练习广度优先搜索很好的例题,在很多广搜教学中经常用到,放在这里供学习搜索算法的孩纸们看看= = 题目大意:一维数轴上,农夫在N点,牛在K点,假定牛不会移动,农夫要找到这头…
cdoj 383 japan 树状数组
Japan Time Limit: 1 Sec Memory Limit: 256 MB 题目连接 http://acm.uestc.edu.cn/#/problem/show/383 Descriptio…
Codeforces Beta Round #5 A. Chat Server's Outgoing Traffic 水题
A. Chat Server’s Outgoing Traffic 题目连接: http://www.codeforces.com/contest/5/problem/A Description Polyca…
POJ 2912 Rochambeau(枚举+并查集)
Rochambeau Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 1575 Accept…
HDU 5840 This world need more Zhu 树链剖分+暴力
This world need more Zhu 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5840 Description As we all know, Zhu …
HDU 4027 Can you answer these queries?(线段树)
Can you answer these queries? Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 6576…
HDU 4349 Xiao Ming's Hope(数学题)
Xiao Ming’s Hope Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768…
Codeforces Beta Round #5 B. Center Alignment 模拟题
B. Center Alignment 题目连接: http://www.codeforces.com/contest/5/problem/B Description Almost every text editor h…
VK Cup 2016 - Qualification Round 1 (Russian-Speaking Only, for VK Cup teams) D. Running with Obstacles 贪心
D. Running with Obstacles 题目连接: http://www.codeforces.com/contest/637/problem/D Description A sportsman starts…