Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, 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
1209 Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) FINISHED False 9000 163356899 Sept. 14, 2019, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8180 ) B Koala and Lights PROGRAMMING implementation math number theory 1300

B'It is a holiday season, and Koala is decorating his house with cool lights! He owns n lights, all of which flash periodically. After taking a quick glance at them, Koala realizes that each of his lights can be described with two parameters a_i and b_i . Light with parameters a_i and b_i will toggle (on to off, or off to on) every a_i seconds starting from the b_i -th second. In other words, it will toggle at the moments b_i , b_i + a_i , b_i + 2 cdot a_i and so on. You know for each light whether it 's initially on or off and its corresponding parameters a_i and b_i . Koala is wondering what is the maximum number of lights that will ever be on at the same time. So you need to find that out. The first line contains a single integer n ( 1 <= n <= 100 ), the number of lights. The next line contains a string s of n characters. The i -th character is "1", if the i -th lamp is initially on. Otherwise, i -th character is "0". The i -th of the following n lines contains two integers a_i and b_i ( 1 <= a_i, b_i <= 5 ) -- the parameters of the i -th light. Print a single integer -- the maximum number of lights that will ever be on at the same time. For first example, the lamps ' states are shown in the picture above. The largest number of simultaneously on lamps is 2 (e.g. at the moment 2 ). In the second example, all lights are initially on. So the answer is 4 . '...

Tutorials

69791

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60561318 iica B Sept. 14, 2019, 2:44 p.m. OK D TESTS 45 31 102400 1300
60568174 grifguitar B Sept. 14, 2019, 3:15 p.m. OK FPC TESTS 45 31 1126400 1300
60554364 hengxin11111jy B Sept. 14, 2019, 2:15 p.m. OK FPC TESTS 45 46 102400 1300
67140043 _Adro_ B Dec. 18, 2019, 6:20 a.m. OK GNU C11 TESTS 45 31 0 1300
60549267 york135 B Sept. 14, 2019, 1:54 p.m. OK GNU C11 TESTS 45 31 0 1300
60556920 kdy030529 B Sept. 14, 2019, 2:25 p.m. OK GNU C11 TESTS 45 31 0 1300
60581438 akash19jain B Sept. 14, 2019, 6:40 p.m. OK GNU C11 TESTS 45 31 0 1300
60585845 bokailya B Sept. 14, 2019, 9:09 p.m. OK GNU C11 TESTS 45 31 0 1300
60599852 a-dreamer B Sept. 15, 2019, 7:37 a.m. OK GNU C11 TESTS 45 31 0 1300
60600433 tiger0132 B Sept. 15, 2019, 7:46 a.m. OK GNU C11 TESTS 45 31 0 1300
60958967 nikhilreddy123 B Sept. 21, 2019, 4:27 a.m. OK GNU C11 TESTS 45 31 0 1300
61319503 code.champ B Sept. 26, 2019, 12:08 p.m. OK GNU C11 TESTS 45 31 0 1300
61390794 MOHIR_MBSTU B Sept. 27, 2019, 9:21 p.m. OK GNU C11 TESTS 45 31 0 1300
60666886 black_white_tony B Sept. 16, 2019, 8:35 a.m. OK GNU C++11 TESTS 45 30 0 1300
60591812 Acmer_jibao B Sept. 15, 2019, 2:44 a.m. OK GNU C++11 TESTS 45 30 0 1300
67322069 vjudge4 B Dec. 21, 2019, 8:23 a.m. OK GNU C++11 TESTS 45 31 0 1300
69608479 MiricaMatei B Jan. 27, 2020, 10:38 a.m. OK GNU C++11 TESTS 45 31 0 1300
69052681 sunchuangyu B Jan. 18, 2020, 1:18 p.m. OK GNU C++11 TESTS 45 31 0 1300
68619997 monk B Jan. 11, 2020, 7:08 p.m. OK GNU C++11 TESTS 45 31 0 1300
67936838 neerav1515 B Dec. 29, 2019, 8:46 p.m. OK GNU C++11 TESTS 45 31 0 1300
67849762 ruippeixotog B Dec. 29, 2019, 1:46 a.m. OK GNU C++11 TESTS 45 31 0 1300
67458356 joker4everyone B Dec. 23, 2019, 8:03 a.m. OK GNU C++11 TESTS 45 31 0 1300
67436573 vjudge4 B Dec. 22, 2019, 5:25 p.m. OK GNU C++11 TESTS 45 31 0 1300
60687159 zakaulovaaa B Sept. 16, 2019, 3:52 p.m. OK GNU C++14 TESTS 45 15 0 1300
61800821 klexis B Oct. 3, 2019, 6:54 p.m. OK GNU C++14 TESTS 45 15 0 1300
60554980 pulkitd2699 B Sept. 14, 2019, 2:17 p.m. OK GNU C++14 TESTS 45 15 0 1300
60663866 Naim_Hasan B Sept. 16, 2019, 6:47 a.m. OK GNU C++14 TESTS 45 15 0 1300
60682473 daxpatel11 B Sept. 16, 2019, 2:21 p.m. OK GNU C++14 TESTS 45 15 204800 1300
60597695 anandzzz1973 B Sept. 15, 2019, 6:40 a.m. OK GNU C++14 TESTS 45 15 409600 1300
60580880 bondhan B Sept. 14, 2019, 6:25 p.m. OK GNU C++14 TESTS 45 15 512000 1300
60577958 stefdasca B Sept. 14, 2019, 5:17 p.m. OK GNU C++14 TESTS 45 15 2048000 1300
60582777 _HossamYehia_ B Sept. 14, 2019, 7:18 p.m. OK GNU C++14 TESTS 45 15 4608000 1300
60644545 vectors_masterAS B Sept. 15, 2019, 4:37 p.m. OK GNU C++14 TESTS 45 15 16076800 1300
66182383 fakhrulsojib B Dec. 2, 2019, 1:16 p.m. OK GNU C++17 TESTS 45 15 0 1300
61504259 Shahir_Abdullah B Sept. 29, 2019, 2:50 p.m. OK GNU C++17 TESTS 45 15 0 1300
60580941 IslamOmar B Sept. 14, 2019, 6:27 p.m. OK GNU C++17 TESTS 45 15 0 1300
60598759 vaibhavjain_30 B Sept. 15, 2019, 7:12 a.m. OK GNU C++17 TESTS 45 15 204800 1300
60749108 oY_Yo B Sept. 18, 2019, 4:50 a.m. OK GNU C++17 TESTS 45 15 1331200 1300
60579173 iWiLL__ B Sept. 14, 2019, 5:44 p.m. OK GNU C++17 TESTS 45 15 7270400 1300
69275558 vjudge4 B Jan. 22, 2020, 1:45 a.m. OK GNU C++17 TESTS 45 30 0 1300
69426099 sombra99 B Jan. 23, 2020, 3:51 p.m. OK GNU C++17 TESTS 45 30 0 1300
67321009 vjudge5 B Dec. 21, 2019, 8:01 a.m. OK GNU C++17 TESTS 45 30 0 1300
69293236 chypsd B Jan. 22, 2020, 11:11 a.m. OK GNU C++17 TESTS 45 30 0 1300
60589806 maheshwari29 B Sept. 15, 2019, 1:07 a.m. OK Java 8 TESTS 45 109 0 1300
62071815 meetcshah19 machhra B Oct. 7, 2019, 4:59 p.m. OK Java 8 TESTS 45 109 0 1300
60589987 MagentaCobra B Sept. 15, 2019, 1:19 a.m. OK Java 8 TESTS 45 109 0 1300
60560814 aka1999 B Sept. 14, 2019, 2:42 p.m. OK Java 8 TESTS 45 109 0 1300
66714648 Aman_23_Gupta B Dec. 12, 2019, 3:08 p.m. OK Java 8 TESTS 45 124 0 1300
64576307 MaxHeap B Nov. 9, 2019, 10:50 a.m. OK Java 8 TESTS 45 124 0 1300
61529391 K1K B Sept. 30, 2019, 1:50 a.m. OK Java 8 TESTS 45 124 0 1300
61262849 di_halt B Sept. 25, 2019, 12:02 p.m. OK Java 8 TESTS 45 124 0 1300
60881498 Vatsal53 B Sept. 19, 2019, 4:03 p.m. OK Java 8 TESTS 45 124 0 1300
60769691 prakhar897 B Sept. 18, 2019, 12:15 p.m. OK Java 8 TESTS 45 124 0 1300
60560955 Taybor B Sept. 14, 2019, 2:42 p.m. OK JavaScript TESTS 45 46 2662400 1300
60573080 madmonl B Sept. 14, 2019, 3:34 p.m. OK JavaScript TESTS 45 624 1843200 1300
60638444 Spheniscine B Sept. 15, 2019, 2:45 p.m. OK Kotlin TESTS 45 124 0 1300
62737848 darnley B Oct. 16, 2019, 6:50 p.m. OK Kotlin TESTS 45 140 102400 1300
62189493 david_varela B Oct. 9, 2019, 9:18 a.m. OK Kotlin TESTS 45 155 1331200 1300
62737521 darnley B Oct. 16, 2019, 6:45 p.m. OK Kotlin TESTS 45 171 102400 1300
60581084 enslinmike B Sept. 14, 2019, 6:31 p.m. OK Kotlin TESTS 45 171 102400 1300
60600569 Black_Fregat B Sept. 15, 2019, 7:48 a.m. OK Kotlin TESTS 45 171 1126400 1300
61792590 og.kostya B Oct. 3, 2019, 4:17 p.m. OK Mono C# TESTS 45 61 409600 1300
60563893 jayed.al.hasan B Sept. 14, 2019, 2:56 p.m. OK Mono C# TESTS 45 62 0 1300
60553457 Ruban_Denic B Sept. 14, 2019, 2:11 p.m. OK Mono C# TESTS 45 62 3891200 1300
60591613 kevin19984 B Sept. 15, 2019, 2:37 a.m. OK MS C++ TESTS 45 31 0 1300
60591093 vjudge1 B Sept. 15, 2019, 2:16 a.m. OK MS C++ TESTS 45 31 0 1300
60604304 XYZ522 B Sept. 15, 2019, 8:56 a.m. OK MS C++ TESTS 45 31 0 1300
60677069 vjudge4 B Sept. 16, 2019, 12:46 p.m. OK MS C++ TESTS 45 31 0 1300
60568136 tarattata1 B Sept. 14, 2019, 3:15 p.m. OK MS C++ TESTS 45 31 0 1300
60662106 vjudge3 B Sept. 16, 2019, 5:39 a.m. OK MS C++ TESTS 45 31 0 1300
60723763 ZJM782473006 B Sept. 17, 2019, 1:12 p.m. OK MS C++ TESTS 45 31 0 1300
60592371 vjudge5 B Sept. 15, 2019, 3:07 a.m. OK MS C++ TESTS 45 31 0 1300
61759493 vjudge1 B Oct. 3, 2019, 6:39 a.m. OK MS C++ TESTS 45 31 0 1300
62456351 vjudge3 B Oct. 13, 2019, 6:35 a.m. OK MS C++ TESTS 45 31 102400 1300
60753010 danjuan12 B Sept. 18, 2019, 7:24 a.m. OK MS C++ 2017 TESTS 45 30 0 1300
60607779 onipp B Sept. 15, 2019, 10:04 a.m. OK MS C++ 2017 TESTS 45 31 0 1300
62358958 cckk4467 B Oct. 11, 2019, 11:51 a.m. OK MS C++ 2017 TESTS 45 31 0 1300
61762347 vjudge5 B Oct. 3, 2019, 7:31 a.m. OK MS C++ 2017 TESTS 45 31 0 1300
60595784 kyw B Sept. 15, 2019, 5:31 a.m. OK MS C++ 2017 TESTS 45 31 0 1300
60589480 tanimania B Sept. 15, 2019, 12:43 a.m. OK MS C++ 2017 TESTS 45 31 0 1300
60587746 Sanqer B Sept. 14, 2019, 10:47 p.m. OK MS C++ 2017 TESTS 45 31 0 1300
60586865 pmitkov B Sept. 14, 2019, 9:57 p.m. OK MS C++ 2017 TESTS 45 31 0 1300
60562406 MajorLenox B Sept. 14, 2019, 2:49 p.m. OK MS C++ 2017 TESTS 45 31 0 1300
60562353 nacl_jht B Sept. 14, 2019, 2:49 p.m. OK MS C++ 2017 TESTS 45 31 0 1300
60582990 RohitKaushal B Sept. 14, 2019, 7:24 p.m. OK Node.js TESTS 45 186 1228800 1300
60556942 evanli2014 B Sept. 14, 2019, 2:25 p.m. OK Node.js TESTS 45 217 2150400 1300
61036691 mayakin B Sept. 21, 2019, 8:16 p.m. OK PHP TESTS 45 46 3788800 1300
60550045 Mukundan314 B Sept. 14, 2019, 1:57 p.m. OK PyPy 2 TESTS 45 171 819200 1300
60757930 yumtam B Sept. 18, 2019, 9:50 a.m. OK PyPy 2 TESTS 45 218 614400 1300
60554482 Ceicei B Sept. 14, 2019, 2:15 p.m. OK PyPy 2 TESTS 45 327 1740800 1300
61418437 Felerius B Sept. 28, 2019, 11:02 a.m. OK PyPy 3 TESTS 45 140 1433600 1300
60576134 nani_7 B Sept. 14, 2019, 4:45 p.m. OK PyPy 3 TESTS 45 155 1433600 1300
68985806 vaibhav0320 B Jan. 17, 2020, 12:27 p.m. OK PyPy 3 TESTS 45 155 1536000 1300
62585685 galim665 B Oct. 14, 2019, 6:44 p.m. OK PyPy 3 TESTS 45 155 1740800 1300
60552268 asvasil B Sept. 14, 2019, 2:06 p.m. OK PyPy 3 TESTS 45 155 1740800 1300
65255780 vovik123 B Nov. 17, 2019, 1:22 p.m. OK PyPy 3 TESTS 45 155 1945600 1300
60677652 thanhnam1998 B Sept. 16, 2019, 12:57 p.m. OK PyPy 3 TESTS 45 155 1945600 1300
60580271 LordVader B Sept. 14, 2019, 6:09 p.m. OK PyPy 3 TESTS 45 155 1945600 1300
60574954 LukaSsS B Sept. 14, 2019, 4:27 p.m. OK PyPy 3 TESTS 45 155 1945600 1300
61321427 Jarik B Sept. 26, 2019, 12:41 p.m. OK PyPy 3 TESTS 45 155 2048000 1300
60556772 bazzyadb B Sept. 14, 2019, 2:25 p.m. OK Python 2 TESTS 45 233 0 1300
60555292 runnphoenix B Sept. 14, 2019, 2:18 p.m. OK Python 2 TESTS 45 623 204800 1300
60568635 pktyagi1 B Sept. 14, 2019, 3:17 p.m. OK Python 2 TESTS 45 826 11161600 1300
65318964 mattakushi_belokus B Nov. 18, 2019, 6:47 p.m. OK Python 3 TESTS 45 109 0 1300
60644140 orailly B Sept. 15, 2019, 4:29 p.m. OK Python 3 TESTS 45 109 0 1300
60585233 VioletVal B Sept. 14, 2019, 8:43 p.m. OK Python 3 TESTS 45 109 0 1300
60576506 eugalt B Sept. 14, 2019, 4:51 p.m. OK Python 3 TESTS 45 109 0 1300
67601710 dy_ B Dec. 25, 2019, 12:10 p.m. OK Python 3 TESTS 45 109 307200 1300
61952629 thramas B Oct. 6, 2019, 4:25 a.m. OK Python 3 TESTS 45 124 0 1300
61283996 LintuStorm B Sept. 25, 2019, 5:49 p.m. OK Python 3 TESTS 45 124 0 1300
60709083 Annvv B Sept. 17, 2019, 7:10 a.m. OK Python 3 TESTS 45 124 0 1300
60606359 eugalt B Sept. 15, 2019, 9:37 a.m. OK Python 3 TESTS 45 124 0 1300
60586922 beemax B Sept. 14, 2019, 10:01 p.m. OK Python 3 TESTS 45 124 0 1300
60593259 molety B Sept. 15, 2019, 3:44 a.m. OK Ruby TESTS 45 92 0 1300
60552980 laralex B Sept. 14, 2019, 2:09 p.m. OK Rust TESTS 45 31 0 1300
60672406 aeiou1 B Sept. 16, 2019, 11:16 a.m. OK Rust TESTS 45 46 0 1300
60588903 sansen B Sept. 15, 2019, 12:07 a.m. OK Rust TESTS 45 46 0 1300

remove filters

Back to search problems