Codeforces Round 514 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1059 Codeforces Round 514 (Div. 2) FINISHED False 7200 193073099 Oct. 5, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7093 ) B Forgery PROGRAMMING implementation 1300

B'Student Andrey has been skipping physical education lessons for the whole term, and now he must somehow get a passing grade on this subject. Obviously, it is impossible to do this by legal means, but Andrey doesn 't give up. Having obtained an empty certificate from a local hospital, he is going to use his knowledge of local doctor 's handwriting to make a counterfeit certificate of illness. However, after writing most of the certificate, Andrey suddenly discovered that doctor 's signature is impossible to forge. Or is it? For simplicity, the signature is represented as an n x m grid, where every cell is either filled with ink or empty. Andrey 's pen can fill a 3 x 3 square without its central cell if it is completely contained inside the grid, as shown below. Determine whether is it possible to forge the signature on an empty n x m grid. The first line of input contains two integers n and m ( 3 <= n, m <= 1000 ). Then n lines follow, each contains m characters. Each of the characters is either '. ', representing an empty cell, or '# ', representing an ink filled cell. If Andrey can forge the signature, output "YES". Otherwise output "NO". You can print each letter in any case (upper or lower). In the first sample Andrey can paint the border of the square with the center in (2, 2) . In the second sample the signature is impossible to forge. In the third sample Andrey can paint the borders of the squares with the centers in (2, 2) and (3, 2) : In the fourth sample Andrey can paint the borders of the squares with the centers in (3, 3) and (3, 5) . '...

Tutorials

Codeforces Round #514 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45383410 yuriy.lesyo B Nov. 6, 2018, 4:09 p.m. OK Clang++17 Diagnostics TESTS 28 171 5836800 1300
45383561 yuriy.lesyo B Nov. 6, 2018, 4:14 p.m. OK Clang++17 Diagnostics TESTS 28 171 5836800 1300
45425513 yuriy.lesyo B Nov. 7, 2018, 8:27 p.m. OK Clang++17 Diagnostics TESTS 28 249 614400 1300
44868573 Luiso B Oct. 25, 2018, 4:09 p.m. OK Clang++17 Diagnostics TESTS 28 779 2252800 1300
44976287 ACtrain B Oct. 28, 2018, 5:45 a.m. OK Clang++17 Diagnostics TESTS 28 1232 13414400 1300
45545693 ia7ck B Nov. 11, 2018, 12:18 a.m. OK D TESTS 28 46 11776000 1300
43846414 minhcool B Oct. 5, 2018, 3:21 p.m. OK FPC TESTS 28 46 3072000 1300
44685648 chaorenhaha B Oct. 22, 2018, 9:20 a.m. OK FPC TESTS 28 77 2048000 1300
44685694 chaorenhaha B Oct. 22, 2018, 9:21 a.m. OK FPC TESTS 28 78 2048000 1300
43855525 fantasy131211 B Oct. 5, 2018, 4:06 p.m. OK FPC TESTS 28 78 5017600 1300
44685684 chaorenhaha B Oct. 22, 2018, 9:21 a.m. OK FPC TESTS 28 93 2048000 1300
43870426 TShT B Oct. 5, 2018, 8:23 p.m. OK FPC TESTS 28 93 2048000 1300
44685674 chaorenhaha B Oct. 22, 2018, 9:21 a.m. OK FPC TESTS 28 93 200499200 1300
43922561 vdanh7277 B Oct. 7, 2018, 1:53 a.m. OK FPC TESTS 28 108 2048000 1300
53893418 luogu_bot2 B May 9, 2019, 3:14 a.m. OK FPC TESTS 28 109 2048000 1300
44685638 chaorenhaha B Oct. 22, 2018, 9:19 a.m. OK FPC TESTS 28 140 2048000 1300
43860257 Sorrow321 B Oct. 5, 2018, 4:28 p.m. OK GNU C11 TESTS 28 31 1433600 1300
44065164 rishiraje B Oct. 10, 2018, 8:49 a.m. OK GNU C11 TESTS 28 31 2048000 1300
44450676 Ugsaby B Oct. 17, 2018, 3:44 p.m. OK GNU C11 TESTS 28 31 2048000 1300
44450697 vjudge3 B Oct. 17, 2018, 3:44 p.m. OK GNU C11 TESTS 28 31 2048000 1300
45389597 Maruf_IIT B Nov. 6, 2018, 8:07 p.m. OK GNU C11 TESTS 28 31 2048000 1300
45445672 vjudge2 B Nov. 8, 2018, 1:16 p.m. OK GNU C11 TESTS 28 31 4198400 1300
44056592 RicheyJang B Oct. 10, 2018, 1:15 a.m. OK GNU C11 TESTS 28 31 5017600 1300
48773144 Richey_Jang B Jan. 23, 2019, 2:02 a.m. OK GNU C11 TESTS 28 31 5017600 1300
43883148 mashiatmm B Oct. 6, 2018, 6:15 a.m. OK GNU C11 TESTS 28 31 7987200 1300
51620530 NoSoul B March 21, 2019, 2:07 p.m. OK GNU C11 TESTS 28 31 41062400 1300
48878299 vjudge2 B Jan. 24, 2019, 9:09 a.m. OK GNU C++11 TESTS 28 30 1024000 1300
47137730 daihan B Dec. 16, 2018, 6:14 p.m. OK GNU C++11 TESTS 28 30 3993600 1300
46669636 PaulShi B Dec. 6, 2018, 5:41 a.m. OK GNU C++11 TESTS 28 30 8089600 1300
43848626 Changyu B Oct. 5, 2018, 3:31 p.m. OK GNU C++11 TESTS 28 31 819200 1300
45711275 2016wudi B Nov. 14, 2018, 2:16 p.m. OK GNU C++11 TESTS 28 31 819200 1300
52739464 luogu_bot1 B April 14, 2019, 8:10 a.m. OK GNU C++11 TESTS 28 31 819200 1300
44377671 Venn B Oct. 15, 2018, 11:21 p.m. OK GNU C++11 TESTS 28 31 819200 1300
43850340 ice-z B Oct. 5, 2018, 3:39 p.m. OK GNU C++11 TESTS 28 31 819200 1300
43854417 2016wudi B Oct. 5, 2018, 4 p.m. OK GNU C++11 TESTS 28 31 819200 1300
43873935 EternalAlexander B Oct. 5, 2018, 11:30 p.m. OK GNU C++11 TESTS 28 31 819200 1300
50489079 vjudge3 B Feb. 25, 2019, 12:43 p.m. OK GNU C++14 TESTS 28 30 1024000 1300
49822489 neo11235 B Feb. 12, 2019, 9:39 a.m. OK GNU C++14 TESTS 28 30 1433600 1300
43998961 sunonejiajia B Oct. 8, 2018, 12:48 p.m. OK GNU C++14 TESTS 28 31 1024000 1300
47542586 hank55663 B Dec. 27, 2018, 8:03 a.m. OK GNU C++14 TESTS 28 31 1024000 1300
45227516 ArshiaDadras B Nov. 3, 2018, 4:44 a.m. OK GNU C++14 TESTS 28 31 1024000 1300
44510128 VLADO B Oct. 18, 2018, 5:32 p.m. OK GNU C++14 TESTS 28 31 1024000 1300
44362430 hellojarvis B Oct. 15, 2018, 3:09 p.m. OK GNU C++14 TESTS 28 31 1024000 1300
44097377 Enzyme125 B Oct. 11, 2018, 2:32 a.m. OK GNU C++14 TESTS 28 31 1024000 1300
43999959 ZhangKing B Oct. 8, 2018, 1:16 p.m. OK GNU C++14 TESTS 28 31 1024000 1300
43943489 PengsenMao B Oct. 7, 2018, 12:35 p.m. OK GNU C++14 TESTS 28 31 1024000 1300
43858755 S.Jindal B Oct. 5, 2018, 4:22 p.m. OK GNU C++17 TESTS 28 30 4403200 1300
43846103 guanhuhao B Oct. 5, 2018, 3:20 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
43848295 i0905108390 B Oct. 5, 2018, 3:29 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
43849228 G_bg B Oct. 5, 2018, 3:34 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
43853675 gintama B Oct. 5, 2018, 3:56 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
43847079 yjt123 B Oct. 5, 2018, 3:24 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
43895149 nagpaljatin1411 B Oct. 6, 2018, 10:40 a.m. OK GNU C++17 TESTS 28 31 1024000 1300
43916323 zzxzxzzxz B Oct. 6, 2018, 7:01 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
44055380 lavin B Oct. 9, 2018, 11:16 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
43871700 Cro-Marmot B Oct. 5, 2018, 9:10 p.m. OK GNU C++17 TESTS 28 31 1024000 1300
68891171 amarjeetanand B Jan. 16, 2020, 2:20 a.m. OK Go TESTS 28 46 0 1300
68891609 amarjeetanand B Jan. 16, 2020, 2:34 a.m. OK Go TESTS 28 46 0 1300
45122139 rhdmstjr B Oct. 31, 2018, 5:29 a.m. OK Go TESTS 28 62 4505600 1300
45756196 davidguandev B Nov. 15, 2018, 6:04 a.m. OK Go TESTS 28 109 4505600 1300
43941506 Marii B Oct. 7, 2018, 11:40 a.m. OK Go TESTS 28 234 0 1300
49587713 YousseF_Diaa B Feb. 7, 2019, 2:51 p.m. OK Java 8 TESTS 28 109 0 1300
59402156 mdazmat9 B Aug. 24, 2019, 12:34 p.m. OK Java 8 TESTS 28 124 0 1300
48029988 aschugunov B Jan. 6, 2019, 11:47 a.m. OK Java 8 TESTS 28 124 0 1300
46532492 donli B Dec. 3, 2018, 6:45 a.m. OK Java 8 TESTS 28 124 0 1300
44290392 OmarRadwan B Oct. 14, 2018, 9:42 a.m. OK Java 8 TESTS 28 124 0 1300
44095156 jt1481995 B Oct. 10, 2018, 11:03 p.m. OK Java 8 TESTS 28 124 0 1300
58930109 zekigurbuz B Aug. 16, 2019, 11:14 p.m. OK Java 8 TESTS 28 139 0 1300
43853015 romit17 B Oct. 5, 2018, 3:52 p.m. OK Java 8 TESTS 28 139 0 1300
55870906 tapopadma B June 21, 2019, 2:36 p.m. OK Java 8 TESTS 28 140 0 1300
66567674 ijxjdjd B Dec. 10, 2019, 12:38 a.m. OK Java 8 TESTS 28 140 0 1300
45090525 nordiccat B Oct. 30, 2018, 9:21 a.m. OK Kotlin TESTS 28 187 102400 1300
43939978 raynald B Oct. 7, 2018, 10:58 a.m. OK Kotlin TESTS 28 265 1126400 1300
55599985 og.kostya B June 15, 2019, 5:36 p.m. OK Mono C# TESTS 28 62 7987200 1300
44077688 greenkirill B Oct. 10, 2018, 1:42 p.m. OK Mono C# TESTS 28 77 5017600 1300
43851111 muslim B Oct. 5, 2018, 3:43 p.m. OK Mono C# TESTS 28 77 7475200 1300
43856809 Roverandom B Oct. 5, 2018, 4:12 p.m. OK Mono C# TESTS 28 77 8601600 1300
44683240 fr0st B Oct. 22, 2018, 7:53 a.m. OK Mono C# TESTS 28 77 38707200 1300
67607151 hibatibati B Dec. 25, 2019, 2:01 p.m. OK Mono C# TESTS 28 109 7270400 1300
51198991 nemars B March 11, 2019, 9:06 p.m. OK Mono C# TESTS 28 124 8908800 1300
43850045 clolin B Oct. 5, 2018, 3:37 p.m. OK Mono C# TESTS 28 155 30208000 1300
47209850 fangcun B Dec. 18, 2018, 3:19 p.m. OK MS C++ TESTS 28 30 1024000 1300
44067883 iamexist B Oct. 10, 2018, 10:27 a.m. OK MS C++ TESTS 28 31 1024000 1300
43857110 adel54321 B Oct. 5, 2018, 4:14 p.m. OK MS C++ TESTS 28 31 1433600 1300
51229694 vjudge4 B March 12, 2019, 3:37 p.m. OK MS C++ TESTS 28 31 2048000 1300
51330517 AKACNOWA B March 15, 2019, 11:58 a.m. OK MS C++ TESTS 28 31 2048000 1300
51331063 vjudge5 B March 15, 2019, 12:10 p.m. OK MS C++ TESTS 28 31 2048000 1300
57325774 vjudge4 B July 19, 2019, 12:03 p.m. OK MS C++ TESTS 28 31 2048000 1300
57325801 vjudge3 B July 19, 2019, 12:04 p.m. OK MS C++ TESTS 28 31 2048000 1300
44020624 vjudge2 B Oct. 9, 2018, 3:41 a.m. OK MS C++ TESTS 28 31 2252800 1300
49611848 vjudge5 B Feb. 8, 2019, 1:54 a.m. OK MS C++ TESTS 28 31 5017600 1300
59654460 vjudge3 B Aug. 29, 2019, 9:43 a.m. OK MS C++ 2017 TESTS 28 31 5017600 1300
67562836 vjudge3 B Dec. 24, 2019, 6:08 p.m. OK MS C++ 2017 TESTS 28 46 2048000 1300
69287043 VagrantAC B Jan. 22, 2020, 8:39 a.m. OK MS C++ 2017 TESTS 28 46 2048000 1300
59657348 vjudge1 B Aug. 29, 2019, 11:01 a.m. OK MS C++ 2017 TESTS 28 46 2048000 1300
55202779 Skeef79 B June 6, 2019, 11:18 a.m. OK MS C++ 2017 TESTS 28 46 2252800 1300
61452052 vjudge1 B Sept. 29, 2019, 3:46 a.m. OK MS C++ 2017 TESTS 28 187 9113600 1300
43867725 Fardale B Oct. 5, 2018, 6:49 p.m. OK Ocaml TESTS 28 31 3993600 1300
43864174 sk0 B Oct. 5, 2018, 5:35 p.m. OK Ocaml TESTS 28 249 3891200 1300
43851846 PAG B Oct. 5, 2018, 3:46 p.m. OK PascalABC.NET TESTS 28 93 12083200 1300
43851124 Arcadii B Oct. 5, 2018, 3:43 p.m. OK PascalABC.NET TESTS 28 109 5017600 1300
43853847 Brainett B Oct. 5, 2018, 3:57 p.m. OK PascalABC.NET TESTS 28 124 3993600 1300
53830710 Houy3 B May 6, 2019, 7:46 p.m. OK PascalABC.NET TESTS 28 358 2662400 1300
43883564 kd710306 B Oct. 6, 2018, 6:26 a.m. OK PyPy 2 TESTS 28 280 25907200 1300
43850343 KDRockzz777 B Oct. 5, 2018, 3:39 p.m. OK PyPy 2 TESTS 28 296 25907200 1300
43963513 nealzane B Oct. 7, 2018, 5:57 p.m. OK PyPy 2 TESTS 28 296 26009600 1300
43847859 figdan B Oct. 5, 2018, 3:27 p.m. OK PyPy 2 TESTS 28 327 24064000 1300
49886986 MathisHammel B Feb. 13, 2019, 10:35 p.m. OK PyPy 2 TESTS 28 342 22937600 1300
44012077 SerChirag B Oct. 8, 2018, 6:45 p.m. OK PyPy 2 TESTS 28 499 26931200 1300
67402644 aaa_bbb_ccc B Dec. 22, 2019, 4:49 a.m. OK PyPy 2 TESTS 28 499 44134400 1300
43912296 PiscesDream B Oct. 6, 2018, 4:49 p.m. OK PyPy 3 TESTS 28 217 5734400 1300
43908623 PiscesDream B Oct. 6, 2018, 3:10 p.m. OK PyPy 3 TESTS 28 234 5734400 1300
54885630 Aidos B May 31, 2019, 5:07 p.m. OK PyPy 3 TESTS 28 248 8704000 1300
51610347 GangizzKhan B March 21, 2019, 9:58 a.m. OK PyPy 3 TESTS 28 249 10752000 1300
43936266 qguaihudou B Oct. 7, 2018, 9:04 a.m. OK PyPy 3 TESTS 28 295 9420800 1300
43854955 snv2 B Oct. 5, 2018, 4:03 p.m. OK PyPy 3 TESTS 28 296 8704000 1300
59537464 RedRanger B Aug. 26, 2019, 5:28 p.m. OK PyPy 3 TESTS 28 296 10240000 1300
46034729 atharva456 B Nov. 21, 2018, 3:40 p.m. OK PyPy 3 TESTS 28 296 27648000 1300
43854395 tranphuminhbkhn B Oct. 5, 2018, 4 p.m. OK PyPy 3 TESTS 28 327 9216000 1300
43858342 shaurya.bagga B Oct. 5, 2018, 4:20 p.m. OK PyPy 3 TESTS 28 327 9932800 1300
44167273 ybbaigo B Oct. 12, 2018, 2:46 a.m. OK Python 2 TESTS 28 311 5017600 1300
43921083 victsou B Oct. 6, 2018, 11:20 p.m. OK Python 2 TESTS 28 358 1126400 1300
43847912 radhikapillai25 B Oct. 5, 2018, 3:28 p.m. OK Python 2 TESTS 28 358 1126400 1300
44097165 veryverybad B Oct. 11, 2018, 2:14 a.m. OK Python 2 TESTS 28 373 10137600 1300
43860950 Anubhav-J B Oct. 5, 2018, 4:31 p.m. OK Python 2 TESTS 28 405 5734400 1300
43854397 mars.leezm B Oct. 5, 2018, 4 p.m. OK Python 2 TESTS 28 467 7680000 1300
43917118 federicoemartinez B Oct. 6, 2018, 7:31 p.m. OK Python 2 TESTS 28 701 5734400 1300
44170788 Stardust2607 B Oct. 12, 2018, 5:43 a.m. OK Python 3 TESTS 28 311 1536000 1300
54089321 Arhimason B May 14, 2019, 9:40 a.m. OK Python 3 TESTS 28 311 5324800 1300
43946498 shiv1470 B Oct. 7, 2018, 1:56 p.m. OK Python 3 TESTS 28 327 1638400 1300
47790454 xiejunzhong2000 B Dec. 31, 2018, 1:03 p.m. OK Python 3 TESTS 28 327 9728000 1300
43849364 Orion B Oct. 5, 2018, 3:34 p.m. OK Python 3 TESTS 28 358 1536000 1300
43912326 PiscesDream B Oct. 6, 2018, 4:50 p.m. OK Python 3 TESTS 28 374 1536000 1300
43914789 filipsondej B Oct. 6, 2018, 6:09 p.m. OK Python 3 TESTS 28 389 5836800 1300
43908346 PiscesDream B Oct. 6, 2018, 3:02 p.m. OK Python 3 TESTS 28 405 1536000 1300
43858637 fikr B Oct. 5, 2018, 4:21 p.m. OK Python 3 TESTS 28 405 5222400 1300
43914830 aksh02 B Oct. 6, 2018, 6:11 p.m. OK Python 3 TESTS 28 420 6246400 1300
43874611 DragoonKiller B Oct. 6, 2018, 12:23 a.m. OK Rust TESTS 28 46 5529600 1300
43851650 clrcldy B Oct. 5, 2018, 3:45 p.m. OK Rust TESTS 28 62 9728000 1300
43942991 Felerius B Oct. 7, 2018, 12:20 p.m. OK Rust TESTS 28 78 1126400 1300
43999588 yakamoto B Oct. 8, 2018, 1:05 p.m. OK Scala TESTS 28 702 4608000 1300

remove filters

Back to search problems