Codeforces Round 586 (Div. 1 + 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
1220 Codeforces Round 586 (Div. 1 + Div. 2) FINISHED False 7200 168616487 Sept. 18, 2019, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10341 ) C Substring Game in the Lesson PROGRAMMING games greedy strings 1300

B'Mike and Ann are sitting in the classroom. The lesson is boring, so they decided to play an interesting game. Fortunately, all they need to play this game is a string s and a number k ( 0 <= k < |s| ). At the beginning of the game, players are given a substring of s with left border l and right border r , both equal to k (i.e. initially l=r=k ). Then players start to make moves one by one, according to the following rules: Recall that a substring s[l, r] ( l <= r ) of a string s is a continuous segment of letters from s that starts at position l and ends at position r . For example, "ehn" is a substring ( s[3, 5] ) of "aaaehnsvz" and "ahz" is not. Mike and Ann were playing so enthusiastically that they did not notice the teacher approached them. Surprisingly, the teacher didn 't scold them, instead of that he said, that he can figure out the winner of the game before it starts, even if he knows only s and k . Unfortunately, Mike and Ann are not so keen in the game theory, so they ask you to write a program, that takes s and determines the winner for all possible k . The first line of the input contains a single string s ( 1 <= q |s| <= q 5 cdot 10^5 ) consisting of lowercase English letters. Print |s| lines. In the line i write the name of the winner (print Mike or Ann) in the game with string s and k = i , if both play optimally'...

Tutorials

Codeforces Round #586 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61308722 endacsd C Sept. 26, 2019, 8:25 a.m. OK Clang++17 Diagnostics TESTS 125 358 3379200 1300
62511251 sash0 C Oct. 13, 2019, 1:23 p.m. OK D TESTS 125 124 4198400 1300
62511602 sash0 C Oct. 13, 2019, 1:28 p.m. OK D TESTS 125 140 4198400 1300
60795827 daut-dlang C Sept. 18, 2019, 4:46 p.m. OK D TESTS 125 140 4198400 1300
62510861 sash0 C Oct. 13, 2019, 1:18 p.m. OK D TESTS 125 140 4198400 1300
60795458 ruban C Sept. 18, 2019, 4:45 p.m. OK Delphi TESTS 125 218 81203200 1300
60804122 LaSWeeG C Sept. 18, 2019, 5:24 p.m. OK FPC TESTS 125 1528 4403200 1300
60794828 l-_-l C Sept. 18, 2019, 4:42 p.m. OK FPC TESTS 125 1637 52121600 1300
60940755 maer19980918 C Sept. 20, 2019, 4:58 p.m. OK GNU C11 TESTS 125 62 512000 1300
61105327 maer0918 C Sept. 23, 2019, 8:54 a.m. OK GNU C11 TESTS 125 62 512000 1300
60806174 docardoso C Sept. 18, 2019, 5:35 p.m. OK GNU C11 TESTS 125 77 512000 1300
61529746 BugLeave C Sept. 30, 2019, 2:07 a.m. OK GNU C11 TESTS 125 77 512000 1300
60852459 Alfeh C Sept. 19, 2019, 2:31 p.m. OK GNU C11 TESTS 125 1560 512000 1300
60846951 k_ayushh C Sept. 19, 2019, 12:51 p.m. OK GNU C11 TESTS 125 1560 4505600 1300
61029932 rackeh C Sept. 21, 2019, 5:19 p.m. OK GNU C11 TESTS 125 1574 512000 1300
61030393 rackeh C Sept. 21, 2019, 5:29 p.m. OK GNU C11 TESTS 125 1575 512000 1300
61053932 rahulgoel C Sept. 22, 2019, 7:28 a.m. OK GNU C11 TESTS 125 1575 512000 1300
60810369 jrishabh99 C Sept. 18, 2019, 5:57 p.m. OK GNU C11 TESTS 125 1575 512000 1300
60826295 LengYun C Sept. 19, 2019, 4:15 a.m. OK GNU C++11 TESTS 125 46 716800 1300
60793891 QAQAutoMaton C Sept. 18, 2019, 4:39 p.m. OK GNU C++11 TESTS 125 46 18739200 1300
60846583 Frame233 C Sept. 19, 2019, 12:44 p.m. OK GNU C++11 TESTS 125 62 0 1300
62402361 vrsashly C Oct. 12, 2019, 7:49 a.m. OK GNU C++11 TESTS 125 62 0 1300
62402599 vrsashly C Oct. 12, 2019, 7:54 a.m. OK GNU C++11 TESTS 125 62 0 1300
61217392 Onno233 C Sept. 24, 2019, 1:04 p.m. OK GNU C++11 TESTS 125 62 307200 1300
61401922 thnkndblv C Sept. 28, 2019, 5:34 a.m. OK GNU C++11 TESTS 125 62 307200 1300
61529556 CaptainSlow C Sept. 30, 2019, 1:58 a.m. OK GNU C++11 TESTS 125 62 307200 1300
62043678 as2341567 C Oct. 7, 2019, 6:49 a.m. OK GNU C++11 TESTS 125 62 307200 1300
62559236 2016c01 C Oct. 14, 2019, 11:31 a.m. OK GNU C++11 TESTS 125 62 307200 1300
60954524 wleung_bvg C Sept. 21, 2019, 1:35 a.m. OK GNU C++14 TESTS 125 46 1126400 1300
61011783 ataekOnOrigin C Sept. 21, 2019, 12:25 p.m. OK GNU C++14 TESTS 125 62 512000 1300
68305786 ash_98 C Jan. 6, 2020, 8:54 a.m. OK GNU C++14 TESTS 125 62 512000 1300
63380008 dev_cpp C Oct. 25, 2019, 12:11 p.m. OK GNU C++14 TESTS 125 62 512000 1300
62901662 shuai_hui C Oct. 19, 2019, 4:23 a.m. OK GNU C++14 TESTS 125 62 512000 1300
61608321 mayiyang C Oct. 1, 2019, 1:22 p.m. OK GNU C++14 TESTS 125 62 512000 1300
61472630 Gankutsuou C Sept. 29, 2019, 12:59 p.m. OK GNU C++14 TESTS 125 62 512000 1300
61406774 Mindyou C Sept. 28, 2019, 7:17 a.m. OK GNU C++14 TESTS 125 62 512000 1300
61228783 bigcrunch C Sept. 24, 2019, 3:59 p.m. OK GNU C++14 TESTS 125 62 512000 1300
61018213 Hooinkyoma C Sept. 21, 2019, 1:54 p.m. OK GNU C++14 TESTS 125 62 512000 1300
64363926 CodeRusuban C Nov. 6, 2019, 12:30 p.m. OK GNU C++17 TESTS 125 46 6758400 1300
64362394 CodeRusuban C Nov. 6, 2019, 12:05 p.m. OK GNU C++17 TESTS 125 46 13516800 1300
60907517 2018030102067 C Sept. 20, 2019, 3:34 a.m. OK GNU C++17 TESTS 125 62 512000 1300
61256694 Euphonium C Sept. 25, 2019, 10:21 a.m. OK GNU C++17 TESTS 125 62 512000 1300
61463915 Tachibana_Rui C Sept. 29, 2019, 9:39 a.m. OK GNU C++17 TESTS 125 62 512000 1300
61749528 Lower_Rating C Oct. 3, 2019, 2:32 a.m. OK GNU C++17 TESTS 125 62 512000 1300
61766652 zzq233 C Oct. 3, 2019, 8:50 a.m. OK GNU C++17 TESTS 125 62 512000 1300
62110430 bibibibi C Oct. 8, 2019, 12:03 p.m. OK GNU C++17 TESTS 125 62 512000 1300
60825766 nchu17203127 C Sept. 19, 2019, 3:50 a.m. OK GNU C++17 TESTS 125 62 512000 1300
60838792 kidddddddddddddddddddddd C Sept. 19, 2019, 10:06 a.m. OK GNU C++17 TESTS 125 62 512000 1300
60816136 reanimatorzon C Sept. 18, 2019, 8:21 p.m. OK Go TESTS 125 46 0 1300
61092764 sighduck C Sept. 22, 2019, 11:22 p.m. OK Go TESTS 125 202 9932800 1300
61092696 sighduck C Sept. 22, 2019, 11:16 p.m. OK Go TESTS 125 202 9932800 1300
69637148 alankritanand001 C Jan. 27, 2020, 7:08 p.m. OK Java 11 TESTS 125 249 0 1300
60890708 sthfaceless C Sept. 19, 2019, 4:59 p.m. OK Java 8 TESTS 125 140 0 1300
60807315 AatmikJain C Sept. 18, 2019, 5:41 p.m. OK Java 8 TESTS 125 140 0 1300
60916559 karamkontar C Sept. 20, 2019, 8:30 a.m. OK Java 8 TESTS 125 140 13004800 1300
61031700 SevenDeadlySins C Sept. 21, 2019, 5:56 p.m. OK Java 8 TESTS 125 155 0 1300
60819044 prkhr1 C Sept. 18, 2019, 10:17 p.m. OK Java 8 TESTS 125 155 0 1300
60814650 Anirudh55 C Sept. 18, 2019, 7:54 p.m. OK Java 8 TESTS 125 155 0 1300
60807047 Deido___ C Sept. 18, 2019, 5:39 p.m. OK Java 8 TESTS 125 155 0 1300
60805970 Hamza_Hassan C Sept. 18, 2019, 5:34 p.m. OK Java 8 TESTS 125 155 0 1300
60805380 Floryk C Sept. 18, 2019, 5:30 p.m. OK Java 8 TESTS 125 155 0 1300
60796684 sarthakmanna C Sept. 18, 2019, 4:49 p.m. OK Java 8 TESTS 125 155 0 1300
60803454 Taybor C Sept. 18, 2019, 5:20 p.m. OK JavaScript TESTS 125 109 26521600 1300
60825344 Spheniscine C Sept. 19, 2019, 3:33 a.m. OK Kotlin TESTS 125 187 0 1300
62834777 darnley C Oct. 17, 2019, 9:40 p.m. OK Kotlin TESTS 125 202 14745600 1300
60793359 pavelk108 C Sept. 18, 2019, 4:37 p.m. OK Kotlin TESTS 125 218 16076800 1300
60794561 david_varela C Sept. 18, 2019, 4:41 p.m. OK Kotlin TESTS 125 218 16998400 1300
60815808 Vesbat C Sept. 18, 2019, 8:13 p.m. OK Kotlin TESTS 125 234 16998400 1300
62834650 darnley C Oct. 17, 2019, 9:34 p.m. OK Kotlin TESTS 125 248 17203200 1300
62037437 og.kostya C Oct. 7, 2019, 4:32 a.m. OK Mono C# TESTS 125 78 4096000 1300
60800594 hibatibati C Sept. 18, 2019, 5:06 p.m. OK Mono C# TESTS 125 109 4096000 1300
61583786 treasuryonly C Oct. 1, 2019, 3:41 a.m. OK Mono C# TESTS 125 109 16486400 1300
60793375 omikad C Sept. 18, 2019, 4:37 p.m. OK Mono C# TESTS 125 124 14950400 1300
60802242 mban259 C Sept. 18, 2019, 5:14 p.m. OK Mono C# TESTS 125 124 15155200 1300
60797335 plasma-effect C Sept. 18, 2019, 4:52 p.m. OK Mono C# TESTS 125 124 17612800 1300
60842507 nadilk C Sept. 19, 2019, 11:29 a.m. OK Mono C# TESTS 125 1559 4096000 1300
61571796 Tan42 C Sept. 30, 2019, 6:57 p.m. OK Mono C# TESTS 125 1559 5017600 1300
66890508 gorgchap C Dec. 14, 2019, 8:15 p.m. OK Mono C# TESTS 125 1575 4096000 1300
60843738 nadilk C Sept. 19, 2019, 11:52 a.m. OK Mono C# TESTS 125 1591 3072000 1300
60799837 LZDQ C Sept. 18, 2019, 5:03 p.m. OK MS C++ TESTS 125 78 512000 1300
60800060 tarattata1 C Sept. 18, 2019, 5:04 p.m. OK MS C++ TESTS 125 93 512000 1300
61897931 Anarxist C Oct. 5, 2019, 7:47 a.m. OK MS C++ TESTS 125 93 1433600 1300
60840164 efyjef C Sept. 19, 2019, 10:38 a.m. OK MS C++ TESTS 125 1590 1024000 1300
60839933 efyjef C Sept. 19, 2019, 10:32 a.m. OK MS C++ TESTS 125 1637 1024000 1300
60803643 baqari131 C Sept. 18, 2019, 5:21 p.m. OK MS C++ TESTS 125 1669 9420800 1300
61469360 hhxxqjj C Sept. 29, 2019, 11:42 a.m. OK MS C++ 2017 TESTS 125 62 1126400 1300
60809229 drobucs C Sept. 18, 2019, 5:51 p.m. OK MS C++ 2017 TESTS 125 62 1126400 1300
60850652 AdvenT C Sept. 19, 2019, 1:57 p.m. OK MS C++ 2017 TESTS 125 62 1126400 1300
61081142 alanM C Sept. 22, 2019, 4:24 p.m. OK MS C++ 2017 TESTS 125 62 1126400 1300
60847279 Narek1000 C Sept. 19, 2019, 12:57 p.m. OK MS C++ 2017 TESTS 125 62 3174400 1300
60845897 Lieos C Sept. 19, 2019, 12:32 p.m. OK MS C++ 2017 TESTS 125 62 5222400 1300
60845463 sansanmiaomiao C Sept. 19, 2019, 12:24 p.m. OK MS C++ 2017 TESTS 125 77 512000 1300
60801299 orlovskiia C Sept. 18, 2019, 5:09 p.m. OK MS C++ 2017 TESTS 125 77 1126400 1300
60794615 parfe211 C Sept. 18, 2019, 4:42 p.m. OK MS C++ 2017 TESTS 125 77 1126400 1300
60805212 Simon_Chen C Sept. 18, 2019, 5:30 p.m. OK MS C++ 2017 TESTS 125 77 1126400 1300
60797756 rsFalse C Sept. 18, 2019, 4:54 p.m. OK Perl TESTS 125 326 36044800 1300
60925891 yumtam C Sept. 20, 2019, 12:15 p.m. OK PyPy 2 TESTS 125 202 7884800 1300
60816690 raj1307 C Sept. 18, 2019, 8:38 p.m. OK PyPy 2 TESTS 125 202 12800000 1300
60807697 raj1307 C Sept. 18, 2019, 5:43 p.m. OK PyPy 2 TESTS 125 218 12800000 1300
68449991 aaa_bbb_ccc C Jan. 9, 2020, 2 p.m. OK PyPy 2 TESTS 125 218 23244800 1300
60798898 Mukundan314 C Sept. 18, 2019, 4:59 p.m. OK PyPy 2 TESTS 125 233 13721600 1300
60799093 zdbtxdy C Sept. 18, 2019, 5 p.m. OK PyPy 2 TESTS 125 233 25088000 1300
60900993 11fingers C Sept. 19, 2019, 9:31 p.m. OK PyPy 2 TESTS 125 234 23347200 1300
60900971 11fingers C Sept. 19, 2019, 9:30 p.m. OK PyPy 2 TESTS 125 234 23347200 1300
60796999 iamprayush C Sept. 18, 2019, 4:51 p.m. OK PyPy 2 TESTS 125 327 9523200 1300
61743524 EoinDavey C Oct. 2, 2019, 9:47 p.m. OK PyPy 3 TESTS 125 327 15667200 1300
60818758 FireBird23 C Sept. 18, 2019, 10:02 p.m. OK PyPy 3 TESTS 125 452 10649600 1300
61094763 IWantToBeNutellaSomeday C Sept. 23, 2019, 1:48 a.m. OK PyPy 3 TESTS 125 467 10649600 1300
60827272 karthik_dtu C Sept. 19, 2019, 4:56 a.m. OK PyPy 3 TESTS 125 467 10649600 1300
61091845 scheduler C Sept. 22, 2019, 10:14 p.m. OK PyPy 3 TESTS 125 467 10752000 1300
60849655 nguyenminhhieu0709 C Sept. 19, 2019, 1:39 p.m. OK PyPy 3 TESTS 125 467 10854400 1300
61947585 dgjjkycg C Oct. 6, 2019, 1:17 a.m. OK PyPy 3 TESTS 125 467 10956800 1300
61719077 hops378 Soapen PhilTheFish C Oct. 2, 2019, 1:19 p.m. OK PyPy 3 TESTS 125 468 10649600 1300
60834261 RalorSell C Sept. 19, 2019, 8:19 a.m. OK PyPy 3 TESTS 125 468 10649600 1300
60833774 shivam_hbtu C Sept. 19, 2019, 8:07 a.m. OK PyPy 3 TESTS 125 468 10649600 1300
60801172 Madhur1906 C Sept. 18, 2019, 5:09 p.m. OK Python 2 TESTS 125 404 8908800 1300
60818921 kaif_7 C Sept. 18, 2019, 10:11 p.m. OK Python 2 TESTS 125 405 1228800 1300
60837235 tushar2899 C Sept. 19, 2019, 9:30 a.m. OK Python 2 TESTS 125 405 1536000 1300
60809833 devamk C Sept. 18, 2019, 5:54 p.m. OK Python 2 TESTS 125 420 8908800 1300
60814646 daniel.carlos C Sept. 18, 2019, 7:54 p.m. OK Python 2 TESTS 125 452 1228800 1300
60798246 candle C Sept. 18, 2019, 4:56 p.m. OK Python 2 TESTS 125 561 9011200 1300
60796518 ashu249 C Sept. 18, 2019, 4:49 p.m. OK Python 2 TESTS 125 576 17715200 1300
61036806 StefanSig C Sept. 21, 2019, 8:19 p.m. OK Python 3 TESTS 125 248 7065600 1300
60816381 TomSedrick C Sept. 18, 2019, 8:28 p.m. OK Python 3 TESTS 125 265 12288000 1300
60797986 pro100hackeR C Sept. 18, 2019, 4:55 p.m. OK Python 3 TESTS 125 280 24473600 1300
60796281 spellstaker C Sept. 18, 2019, 4:48 p.m. OK Python 3 TESTS 125 420 12185600 1300
60838015 FahimSifnatul C Sept. 19, 2019, 9:48 a.m. OK Python 3 TESTS 125 436 11878400 1300
60802627 Bin4ryGh0st C Sept. 18, 2019, 5:16 p.m. OK Python 3 TESTS 125 483 9830400 1300
64110192 erickjohnross C Nov. 2, 2019, 6:21 p.m. OK Python 3 TESTS 125 639 14336000 1300
65692911 nethish C Nov. 25, 2019, 6:11 a.m. OK Python 3 TESTS 125 701 14233600 1300
68099607 nealzane C Jan. 3, 2020, 1:07 a.m. OK Python 3 TESTS 125 872 1945600 1300
60840825 fifa_bois C Sept. 19, 2019, 10:53 a.m. OK Python 3 TESTS 125 873 5939200 1300
60820131 MarceloUFG C Sept. 18, 2019, 11:16 p.m. OK Ruby TESTS 125 561 100761600 1300
61275446 ikazuya0201 C Sept. 25, 2019, 3:17 p.m. OK Rust TESTS 125 62 2048000 1300
61275572 ikazuya0201 C Sept. 25, 2019, 3:19 p.m. OK Rust TESTS 125 62 2252800 1300
60909613 aeiou1 C Sept. 20, 2019, 5:07 a.m. OK Rust TESTS 125 62 4096000 1300
61305752 chinmaykousik1 C Sept. 26, 2019, 7:09 a.m. OK Rust TESTS 125 77 2048000 1300
60818688 ValenKof C Sept. 18, 2019, 9:58 p.m. OK Rust TESTS 125 78 2150400 1300
60962891 sansen C Sept. 21, 2019, 6:02 a.m. OK Rust TESTS 125 78 4505600 1300
60799375 wh317706 C Sept. 18, 2019, 5:01 p.m. OK Rust TESTS 125 109 11366400 1300

remove filters

Back to search problems