
Codeforces
文章平均质量分 82
GKHack
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #250 (Div. 2) 437C The Child and Toy(脑洞贪心)
C. The Child and Toytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn Children's Day, the child got a toy原创 2015-08-31 20:34:40 · 1530 阅读 · 0 评论 -
Codeforces Round #337 (Div. 2) 610B Vika and Squares(脑洞)
B. Vika and Squarestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVika has n jars with paints of distinct原创 2015-12-29 00:47:03 · 916 阅读 · 0 评论 -
Codeforces Round #337 (Div. 2) 610C Harmony Analysis(脑洞)
C. Harmony Analysistime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe semester is already ending, so Dani原创 2015-12-29 00:58:43 · 1044 阅读 · 0 评论 -
Codeforces Round #337 (Div. 2) 610D Vika and Segments(线段树)
D. Vika and Segmentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVika has an infinite sheet of squared原创 2015-12-29 23:20:55 · 1432 阅读 · 0 评论 -
Good Bye 2015 C New Year and Domino(dp)
C. New Year and Dominotime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThey say "years are like dominoes, t原创 2016-01-01 00:41:58 · 1001 阅读 · 0 评论 -
Codeforces Round #313 (Div. 2) 560C Gerald's Hexagon(脑洞)
C. Gerald's Hexagontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGerald got a very curious hexagon for h原创 2015-12-17 22:42:00 · 1110 阅读 · 0 评论 -
Codeforces Round #313 (Div. 2) 560D Equivalent Strings(dos)
D. Equivalent Stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday on a lecture about strings Gera原创 2015-12-18 17:08:25 · 1503 阅读 · 0 评论 -
Educational Codeforces Round 6 620C Pearls in a Row(stl)
C. Pearls in a Rowtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n pearls in a row. Let's enume原创 2016-01-22 01:34:01 · 995 阅读 · 0 评论 -
Educational Codeforces Round 2 600C Make Palindrome(脑洞)
C. Make Palindrometime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA string is called palindrome if it read原创 2016-01-22 10:31:56 · 1038 阅读 · 0 评论 -
Codeforces Round #334 (Div. 2) 604C Alternative Thinking(脑洞)
C. Alternative Thinkingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin has just recevied his disappo原创 2016-01-22 11:08:01 · 722 阅读 · 0 评论 -
Codeforces Round #336 (Div. 2) 608B Hamming Distance Sum(dp)
B. Hamming Distance Sumtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGenos needs your help. He was asked原创 2015-12-29 00:40:32 · 949 阅读 · 0 评论 -
Codeforces Round #335 (Div. 2) 606C Sorting Railway Cars(hash)
C. Sorting Railway Carstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn infinitely long railway has a tr原创 2015-12-11 17:05:01 · 1157 阅读 · 0 评论 -
Codeforces Round #315 (Div. 2)569C Primes or Palindromes?(预处理)
C. Primes or Palindromes?time limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRikhail Mubinchik believes that t原创 2015-08-11 16:15:41 · 1521 阅读 · 0 评论 -
Codeforces Round #315 (Div. 2)569A Music(模拟)
Little Lesha loves listening to music via his smartphone. But the smartphone doesn't have much memory, so Lesha listens to his favorite songs in a well-known social network InTalk.Unfortunat原创 2015-08-11 09:21:52 · 150 阅读 · 0 评论 -
Testing Round #12 597ABC题解
题目链接: 点击打开链接A: 给出k, a, b. 问你在[a, b]区间内有多少可以整除k的数.脑洞题目, 计算此区间长度可以存放k的个数即可.AC代码:#include "iostream"#include "cstdio"#include "cstring"#include "algorithm"using namespace std;typedef lon原创 2015-11-15 09:19:58 · 901 阅读 · 0 评论 -
Codeforces Round #332 (Div. 2) 599C Day at the Beach(脑洞)
C. Day at the Beachtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Squidward, Spongebob and Patric原创 2015-11-23 11:02:07 · 1338 阅读 · 0 评论 -
Codeforces Round #332 (Div. 2) 599A Patrick and Shopping(模拟)
A. Patrick and Shoppingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday Patrick waits for a visit from原创 2015-11-23 10:28:48 · 914 阅读 · 0 评论 -
Codeforces Round #332 (Div. 2) 599B Spongebob and Joke(STL)
B. Spongebob and Joketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Patrick was gone shopping, Spon原创 2015-11-23 10:38:52 · 1054 阅读 · 0 评论 -
Codeforces Round #331 (Div. 2) 596ABC题解
题目链接: 点击打开链接A: 给出n个点的坐标, 问你这n个点能不能确定一个矩形, 如果可以求出面积, 不可以则输出-1.脑洞题, n为1输出-1, 其他情况则求面积, 若面积为0则不能确定, 注意数据初始化, 为此wa了一发.AC代码:#include "iostream"#include "cstdio"#include "cstring"#include "原创 2015-11-17 08:37:35 · 1338 阅读 · 0 评论 -
Codeforces Round #332 (Div. 2) 599D Spongebob and Squares(数学)
D. Spongebob and Squarestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSpongebob is already tired trying原创 2015-11-23 16:17:10 · 1200 阅读 · 0 评论 -
Codeforces Round #335 (Div. 2) 606B Testing Robots(模拟)
B. Testing Robotstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Cybernetics Failures (CF) organisatio原创 2015-12-11 16:58:10 · 1152 阅读 · 0 评论 -
Educational Codeforces Round 3 609C Load Balancing(脑洞)
C. Load Balancingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the school computer room there are n s原创 2016-01-23 16:53:52 · 641 阅读 · 0 评论 -
Codeforces Round #335 (Div. 2) 606D Lazy Student(最小生成树+stl)
D. Lazy Studenttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputStudent Vladislav came to his programming e原创 2016-01-23 17:21:09 · 821 阅读 · 0 评论 -
Codeforces Round #297 (Div. 2) 525C Ilya and Sticks(脑洞)
C. Ilya and Stickstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the evening, after the contest Ilya w原创 2015-12-23 23:36:30 · 820 阅读 · 0 评论 -
Codeforces Round #342 (Div. 2) 625B War of the Corporations(stl)
B. War of the Corporationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA long time ago, in a galaxy far原创 2016-02-13 10:25:58 · 699 阅读 · 0 评论 -
Codeforces Round #342 (Div. 2) 625C K-special Tables(脑洞)
C. K-special Tablestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPeople do many crazy things to stand ou原创 2016-02-13 10:52:09 · 831 阅读 · 0 评论 -
Wunder Fund Round 2016 (Div. 1 + Div. 2 combined) 618C Constellation(计算几何+stl)
C. Constellationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCat Noku has obtained a map of the night s原创 2016-01-31 17:17:17 · 689 阅读 · 0 评论 -
Educational Codeforces Round 4 612D The Union of k-Segments(stl)
D. The Union of k-Segmentstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given n segments on the原创 2016-02-14 09:10:48 · 662 阅读 · 0 评论 -
Codeforces Round #344 (Div. 2) 631C Report(脑洞+stl)
C. Reporttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputEach month Blake gets the report containing main原创 2016-03-04 16:51:06 · 1051 阅读 · 2 评论 -
Manthan, Codefest 16 633C Spy Syndrome 2(dfs + stl)
C. Spy Syndrome 2time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter observing the results of Spy Syndro原创 2016-02-28 08:27:26 · 1406 阅读 · 0 评论 -
Manthan, Codefest 16 633D Fibonacci-ish(脑洞+stl)
D. Fibonacci-ishtime limit per test3 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputYash has recently learnt about the Fibonac原创 2016-02-28 09:11:48 · 897 阅读 · 0 评论 -
IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) 653C Bear and Up-Down(暴力)
C. Bear and Up-Downtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe life goes up and down, just like ni原创 2016-03-24 11:42:52 · 697 阅读 · 1 评论 -
IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) 653B Bear and Compressing(dfs + stl)
B. Bear and Compressingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a little polar bear. Polar原创 2016-03-25 11:11:48 · 815 阅读 · 1 评论 -
Codeforces Round #342 (Div. 2) 625A Guest From the Past(贪心)
A. Guest From the Pasttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKolya Gerasimov loves kefir very much原创 2016-02-13 10:08:10 · 596 阅读 · 0 评论 -
Educational Codeforces Round 4 612C Replace To Make Regular Bracket Sequence(脑洞)
C. Replace To Make Regular Bracket Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given st原创 2016-01-29 09:43:17 · 495 阅读 · 0 评论 -
Codeforces Round #297 (Div. 2) 525D Arthur and Walls(dfs)
D. Arthur and Wallstime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputFinally it is a day when Arthur has eno原创 2015-12-23 23:42:56 · 734 阅读 · 0 评论 -
Codeforces Round #297 (Div. 2) 525E Anya and Cubes(dfs)
E. Anya and Cubestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnya loves to fold and stick. Today she d原创 2015-12-24 00:08:32 · 906 阅读 · 0 评论 -
Codeforces Round #340 (Div. 2) 617C Watering Flowers(计算几何)
C. Watering Flowerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA flowerbed has many flowers and two fo原创 2016-01-26 11:01:33 · 661 阅读 · 0 评论 -
Codeforces Round #338 (Div. 2) 615B Longtail Hedgehog(dp)
B. Longtail Hedgehogtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis Christmas Santa gave Masha a magi原创 2016-01-09 21:02:17 · 843 阅读 · 0 评论 -
Codeforces Round #338 (Div. 2) 615C Running Track(dp)
C. Running Tracktime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputA boy named Ayrat lives on planet AMI-1511.原创 2016-01-09 21:53:35 · 1018 阅读 · 0 评论