随笔分类 - 算法竞赛
摘要:FatMouse and Cheese Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8274 Accepted Submission(s):
阅读全文
摘要:The Triangle Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 44998 Accepted: 27175 Description 73 88 1 02 7 4 44 5 2 6 5(Figure 1) Figure 1
阅读全文
摘要:Bone Collector Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 50442 Accepted Submission(s): 2115
阅读全文
摘要:Dertouzos Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1415 Accepted Submission(s): 443 Prob
阅读全文
摘要:Aaronson Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 425 Accepted Submission(s): 255 Proble
阅读全文
摘要:题意:一群学生,要到离这里为l的地方去。有一辆车,车只有k个座位。人和车的速度分别v1,v2,问你所有人到达的最小时间。 思路:数学题。最小时间就是要求所有同学同时到达。每个同学最多上一次车。那么显然总路程就是车走一段,人走一段,且每个同学两个距离相等。 那么怎么求呢?设每个人坐车距离为l1,步行就
阅读全文
摘要:C. They Are Everywhere time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. They Are Every
阅读全文
摘要:cf的a题没什么好说到,100的量级,每个人给2张牌,使每个人手中的牌点数相等。保证有一种分配方案。 对每个人,先计算出手中的牌的点数,然后循环两遍拿牌就可以。 A. Cards time limit per test 1 second memory limit per test 256 megab
阅读全文
摘要:比赛的时候 long long sum=n*n,计算不出1e10长度到数,没有搞掉。 哎,以后要注意这个地方。这个题其实不难: 统计能被攻击到的个数,然后用总的个数减掉就可以了。注意有些地方重复计算,要给去掉。 B. Cells Not Under Attack time limit per tes
阅读全文
摘要:#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define MAXN 9999 #define MAXSIZE 10 #define DLEN 4 class B...
阅读全文
摘要:这道题的官方题解是dp,但是可以暴力出来。改天再研究怎么dp。 暴力的时候,如果计算sum的时候,调用strlen函数会超时,可见这个函数并不是十分的好。以后能不用尽量不用。 La Vie en rose Time Limit: 14000/7000 MS (Java/Others) Memory
阅读全文
摘要:Acperience Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 617 Accepted Submission(s): 329 Proble
阅读全文
摘要:It's All In The Mind #include<iostream> #include<stdio.h> using namespace std; int gcd(int a , int b) { if(b==0) return a; a%=b; return gcd(b,a); } in
阅读全文
摘要:int gcd(int a , int b) { if(b==0) return a; a%=b; return gcd(b,a); }
阅读全文
摘要:Keep On Movin Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 265 Accepted Submission(s): 197 Pro
阅读全文
摘要:string 有一个很好用到函数:substr(index). 去掉前index个字符。
阅读全文
摘要:Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Submit Status Description 通过墓碑,进入古墓后,才发现里面别有洞天。 突然,ACMer发现自己周围是黑压压的
阅读全文
摘要:Quoit Design Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 46340 Accepted Submission(s): 12084
阅读全文
摘要:Hotel Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Hotel Submit Status Description Last year summer Max traveled
阅读全文

浙公网安备 33010602011771号