经典思维
文章平均质量分 60
better_space
这个作者很懒,什么都没留下…
展开
-
【985系列】985的0-1串难题
1895: 985的0-1串难题 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 270 Solved: 79 SubmitStatusWeb Board Description 985有一个长度为n的0-1串,已知他最多可以修改k次(每次修改一个字符即0->1 或者 1->0),他想知道连续的全1子串最长是多少。原创 2016-08-15 14:02:01 · 530 阅读 · 0 评论 -
【codeforces】Ohana Cleans Up
B. Ohana Cleans Up time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ohana Matsumae is trying to clean a room原创 2016-08-22 21:12:05 · 230 阅读 · 0 评论 -
【codeforces】 Bear and Reverse Radewoosh
A. Bear and Reverse Radewoosh time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Limak and Radewoosh are going原创 2016-08-22 21:22:15 · 200 阅读 · 0 评论 -
【codeforces】Bear and Three Balls
A. Bear and Three Balls time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Limak is a little polar bear. H原创 2016-08-22 21:26:50 · 362 阅读 · 0 评论 -
【codeforces】Dima and Guards
A. Dima and Guards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Nothing has changed since the last round.原创 2016-08-22 21:29:33 · 308 阅读 · 0 评论 -
【codeforces】-660Co-prime Array
A. Co-prime Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an array of n elements,原创 2016-08-22 21:04:43 · 229 阅读 · 0 评论 -
【NJUST5480】Conturbatio
Conturbatio Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) [显示标签] [] Description There are many rook on a chessboard, a rook can attack the row and colu原创 2016-08-23 11:07:06 · 257 阅读 · 0 评论 -
【杭电oj5247】找连续数-百度之星初赛
找连续数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1451 Accepted Submission(s): 541 Problem Description 小度熊拿到了一个无序的数组,对于这个数组,小度熊想知原创 2016-08-24 12:02:43 · 365 阅读 · 0 评论 -
【codeforces】New Year Permutation(floyd算法进阶)
New Year Permutation Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Description User ainta has a permutation p1, p2, ..., pn. As the New原创 2016-09-22 08:58:16 · 486 阅读 · 0 评论 -
【codeforces div2 A】Calculating Function(思维)
A. Calculating Function time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output For a positive integer n let's d原创 2016-09-29 14:19:49 · 598 阅读 · 0 评论 -
【CodeForces】 632B Alice, Bob, Two Teams
B. Alice, Bob, Two Teams time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output Alice and Bob are playing a原创 2016-08-22 20:58:30 · 216 阅读 · 0 评论 -
【NYOJ1291】不是匹配
不是匹配 时间限制:1000 ms | 内存限制:65535 KB 难度:2 描述 有N个人,N个活动, 每个人只会对2个或者3个活动感兴趣, 每个活动也只有两个人或者两个活动对它兴趣,每个人参加一个 感兴趣的活动需要一天 ,且当天该活动被参加时,其他的人不能参加 如果每个人都参加完自己有兴趣的活动,应当怎样安排使得所用总天数时间最短 2原创 2016-08-21 14:18:25 · 321 阅读 · 1 评论 -
【985系列】985的红绿灯难题
Problem F: 985的红绿灯难题 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 208 Solved: 129 SubmitStatusWeb Board Description 已知红、绿、黄灯各持续r、g、y秒,985发现此时灯刚刚变绿,他想知道x秒后灯是什么颜色。 Input 第一行输入原创 2016-08-15 15:34:43 · 446 阅读 · 0 评论 -
【985系列】985的买饮料难题
Problem E: 985的买饮料难题 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 240 Solved: 128 SubmitStatusWeb Board Description 天气太热了,985制定了对未来的规划即第i天喝a[i]瓶饮料。为了节约开支,他打听到了第i天每瓶饮料的价格p[i]。 为了不让自己的原创 2016-08-15 15:32:08 · 416 阅读 · 0 评论 -
【985系列】985的最大和难题
1899: 985的最大和难题 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 328 Solved: 40 SubmitStatusWeb Board Description 985有2 * n - 1个整数,他每次可以将其中n个数变号,操作次数不限,问他可以得到的最大和。 Input 第一行输入一个整数原创 2016-08-15 17:20:20 · 314 阅读 · 0 评论 -
【暑期第二次训练赛】小火山的计算能力
Problem J: 小火山的计算能力 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 433 Solved: 103 SubmitStatusWeb Board Description 别人说小火山的计算能力不行,小火山很生气,于是他想证明自己,现在有一个表达式,他想计算出来。 Input 首先是一个t(1原创 2016-08-10 17:30:12 · 297 阅读 · 0 评论 -
【暑期训练三】晴天系列—H题
1915: H Time Limit: 1 Sec Memory Limit: 128 MB Submit: 285 Solved: 121 SubmitStatusWeb Board Description 在三维空间里,晴天得到了一些坐标,然后他想知道这些坐标有没有重合的哇,然后若两个坐标是重合的也就是x=x,y=y,z=z。然后他把这个任务交给你啦。 In原创 2016-08-17 19:43:52 · 356 阅读 · 0 评论 -
【POJ3419】Difference Is Beautiful
Difference Is Beautiful Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 2247 Accepted: 703 Description Mr. Flower's business is growing much faster than原创 2016-09-10 00:37:16 · 348 阅读 · 0 评论 -
【杭电oj5671】Matrix
Matrix Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 1409 Accepted Submission(s): 561 Problem Description There is a matrix原创 2016-08-30 16:42:34 · 279 阅读 · 0 评论 -
【codeforces711B】Chris and Magic Square
B. Chris and Magic Square time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder and Chris the Baboon原创 2016-09-11 22:23:44 · 262 阅读 · 0 评论 -
【hdoj5671】Matrix
Matrix Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 1411 Accepted Submission(s): 563 Problem Description There is a matrix原创 2016-09-12 15:45:57 · 331 阅读 · 0 评论 -
【hdoj5908】Abelian Period
Abelian Period Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others) Total Submission(s): 602 Accepted Submission(s): 253 Problem Description Let S be原创 2016-10-06 11:43:08 · 352 阅读 · 0 评论