机智小水题
文章平均质量分 84
cinyaaaa
这个作者很懒,什么都没留下…
展开
-
UVA 10881 Piotr's Ants
vjudge地址:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=25979代码:#include "stdio.h"#include "iostream"#include "algorithm"#include "string.h"using namespace std;int l,t,n原创 2014-12-16 17:02:44 · 304 阅读 · 0 评论 -
Codeforces Round #282 (Div. 2) B. Modular Equations
原题链接:http://codeforces.com/group/MlEaNIrGCZ/contest/495/problem/BB. Modular Equationstime limit per test1 secondmemory limit per test256 megabytesinputstandard in原创 2015-01-26 00:25:49 · 723 阅读 · 0 评论 -
UVALive 3708 Graveyard
原题地址:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=15133题意:周长为10000的圆上均匀分布着n个点,现在要加入m个点,这m个点的位置随意,问最少要移动原来n个点的距离和是多少。思路:①以一个前后不动的点(一定存在)为原点,此时,为移动距离最少情况。②假设所有点已经就位,计算原创 2014-12-15 19:27:39 · 648 阅读 · 0 评论 -
UVA - 11384 Help is needed for Dexter ——递归
原题链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=26096Problem HHelp is needed for DexterTime Limit: 3 Second Dexter is tired of Dee Dee. So he decided to keep Dee Dee b原创 2014-12-28 23:27:06 · 378 阅读 · 0 评论 -
UVA-201 Squares
Vjudge链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19423SquaresTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit原创 2015-01-17 00:08:47 · 3762 阅读 · 0 评论 -
HDU-4121 Xiangqi 模拟
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=4121XiangqiTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4073 Accepted Sub原创 2015-01-16 16:55:53 · 598 阅读 · 0 评论 -
Codeforces Round #282 (Div. 2) Treasure
原题链接:http://codeforces.com/contest/495/problem/CC. Treasuretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutput原创 2014-12-25 09:28:26 · 510 阅读 · 0 评论 -
hust 1003 - Sibonacci Numbers
原题链接:http://acm.hust.edu.cn/problem/show/10031003 - Sibonacci NumbersTime Limit: 1s Memory Limit: 64MBSubmissions: 2029 Solved: 348DESCRIPTIONAs is known to all, the原创 2015-01-10 12:12:21 · 749 阅读 · 0 评论 -
hust 1051 - Combination Lock
原题链接:http://acm.hust.edu.cn/problem/show/10511051 - Combination LockTime Limit: 1s Memory Limit: 128MBSubmissions: 156 Solved: 67DESCRIPTIONNow that you're back to sc原创 2015-01-10 01:22:15 · 581 阅读 · 0 评论 -
UVA - 11464 Even Parity 枚举+递推
原题地址:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=24665代码:#include "stdio.h"#include "string.h"#include "iostream"using namespace std;int a[17][17],ans,inf=1000000,n,b[原创 2014-12-19 00:20:18 · 454 阅读 · 0 评论 -
Codeforces Round #287 (Div. 2) C. Guess Your Way Out!
原题链接:http://codeforces.com/contest/507/problem/CC. Guess Your Way Out!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputst原创 2015-01-24 15:09:58 · 487 阅读 · 0 评论