构造+DFS很容易的可以构造两个,最后一个不会构造的话 DFS一下就可以了#include#include#include#include#include#include#include#includeusing namespace std;int n;int G[205][205];int fla...
分类:
其他好文 时间:
2015-09-08 18:12:16
阅读次数:
143
Gym - 100338E题意:给你n,k问在1-n中能整出k的字典序最小的数。范围1018思路:比较简单的贪心了,枚举10的幂m,然后加上k-m%k, 更新答案就可以了,数据一定要用unsigned long long,我就在这里挂了几次,查了半天。 1 #include 2 #include ....
分类:
其他好文 时间:
2015-09-08 09:27:05
阅读次数:
137
Problem A. Alien Communication MasterclassTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/gym/100610DescriptionAndrea is a famous scie...
分类:
其他好文 时间:
2015-09-05 19:24:28
阅读次数:
483
Problem H. Horrible TruthTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/gym/100610DescriptionIn a Famous TV Show “Find Out” there are...
分类:
其他好文 时间:
2015-09-05 19:22:21
阅读次数:
200
Problem K. Kitchen RobotTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/gym/100610DescriptionRobots are becoming more and more popular...
分类:
其他好文 时间:
2015-09-05 19:21:59
阅读次数:
337
Problem E. Explicit FormulaTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/gym/100610DescriptionConsider 10 Boolean variables x1, x2, ...
分类:
其他好文 时间:
2015-09-05 19:19:57
阅读次数:
329
"CricketField"Time Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/gym/100002DescriptionOnceuponatimetherewasagreedyKingwhoorderedhischiefA...
分类:
其他好文 时间:
2015-09-04 19:51:16
阅读次数:
224
"EvacuationPlan"Time Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/gym/100002DescriptionTheCityhasanumberofmunicipalbuildingsandanumberof...
分类:
其他好文 时间:
2015-09-04 19:47:52
阅读次数:
232
ProblemBBricks"Time Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100002DescriptionTheprisonerofthe"IF"castlehasdecidedtorunawaybydisa...
分类:
其他好文 时间:
2015-09-04 19:46:52
阅读次数:
165
J. Computer NetworkTime Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100114DescriptionThe computer network of “Plunder & Flee Inc.” c...
分类:
Web程序 时间:
2015-09-03 20:26:00
阅读次数:
213