随笔分类 -  枚举

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要:【题目链接】:http://codeforces.com/contest/767/problem/B【题意】 排队去办护照; 给你n个人何时来的信息; 然后问你应该何时去才能在队伍中等待的时间最短; (如果你和别人同时到,你要等到和你同时到的人全都办完了才轮到你); 【题解】 细... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(153) 评论(0) 推荐(0)
摘要:【题目链接】:http://codeforces.com/contest/787/problem/A【题意】 把b一直加a->得到x 把d一直加c->得到y 然后问你x和y可不可能有相同的值. 有的话,输出那个最小的; 【题解】 等价于 令t=(b+u*a-d)%c==0 u为整... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(197) 评论(0) 推荐(0)
摘要:【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1028【题意】 【题解】 /* 枚举新加入的一张牌是哪一张牌; 然后尝试把它加进去; 再枚举1..n里面是哪一张牌组成了对子; 然后再看看剩... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(160) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 50 MB【问题描述】 给你一个矩阵,其边长均为整数。你想把矩阵切割成总数最少的正方形,其边长也为整数。切割工作由一台切割机器完成,它能沿平行于矩形任一边的方向,从一边开始一直切割到另一边。对得到的矩形再分... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(318) 评论(0) 推荐(0)
摘要:【题目链接】:http://codeforces.com/contest/768/problem/C【题意】 给你n个数字; 让你每次把这n个数字排序; 然后对奇数位的数字进行异或操作,然后对新生成的序列再重复上述操作总共k次; 问最后的序列的最小值和最大值分别是多少; 【题解】 ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(166) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 128 MB【问题描述】 佳佳最近发明了一个游戏,来考验自命不凡的津津。游戏开始的时候,佳佳会给津津一块画着N (2 #include #include #include #include using namesp... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(281) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Every Codeforces user has rating, de... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(152) 评论(0) 推荐(0)
摘要:Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7095 Accepted Submission(s): 4300P... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(109) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Bachgold problem is very easy to form... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(247) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A big company decided to launch a new... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(159) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Nikolay has a lemons, b apples and c ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(186) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Hongcow is learning to spell! One da... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(263) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output When Xellos was doing a practice cou... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(144) 评论(0) 推荐(0)
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A long time ago, in a galaxy far ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(185) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Professor GukiZ doesn’t accept strin... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(299) 评论(0) 推荐(0)
摘要:time limit per test4 seconds memory limit per test512 megabytes inputstandard input outputstandard output Vanya got bored and he painted n dis... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(469) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya got an important task — he shou... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(213) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Vanya has a table consisting of 100 ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(134) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Ohana Matsumae is trying to clean a ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(159) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kyoya Ootori is selling photobooks o... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(262) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页