Codeforces Round 583 (Div. 1 + Div. 2, based on Olympiad of Metropolises)

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
1214 Codeforces Round 583 (Div. 1 + Div. 2, based on Olympiad of Metropolises) FINISHED False 9000 169592063 Sept. 4, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10909 ) B Badges PROGRAMMING brute force math 1100

B'There are b boys and g girls participating in Olympiad of Metropolises. There will be a board games tournament in the evening and n participants have accepted the invitation. The organizers do not know how many boys and girls are among them. Organizers are preparing red badges for girls and blue ones for boys. Vasya prepared n+1 decks of badges. The i -th (where i is from 0 to n , inclusive) deck contains i blue badges and n-i red ones. The total number of badges in any deck is exactly n . Determine the minimum number of decks among these n+1 that Vasya should take, so that there will be a suitable deck no matter how many girls and boys there will be among the participants of the tournament. The first line contains an integer b ( 1 <= b <= 300 ), the number of boys. The second line contains an integer g ( 1 <= g <= 300 ), the number of girls. The third line contains an integer n ( 1 <= n <= b + g ), the number of the board games tournament participants. Output the only integer, the minimum number of badge decks that Vasya could take. In the first example, each of 4 decks should be taken: (0 blue, 3 red), (1 blue, 2 red), (2 blue, 1 red), (3 blue, 0 red). In the second example, 4 decks should be taken: (2 blue, 3 red), (3 blue, 2 red), (4 blue, 1 red), (5 blue, 0 red). Piles (0 blue, 5 red) and (1 blue, 4 red) can not be used. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60655014 ahmedmohamedfarouk B Sept. 15, 2019, 10:16 p.m. OK Clang++17 Diagnostics TESTS 35 46 0 1100
62426226 sash0 B Oct. 12, 2019, 2:22 p.m. OK D TESTS 35 31 0 1100
60177302 Denor B Sept. 6, 2019, 2:52 p.m. OK Delphi TESTS 35 31 102400 1100
60245463 vjudge5 B Sept. 8, 2019, 2:13 a.m. OK FPC TESTS 35 30 0 1100
60292612 optykl B Sept. 9, 2019, 8:14 a.m. OK FPC TESTS 35 31 0 1100
60351266 calonmaster B Sept. 10, 2019, 2:23 p.m. OK FPC TESTS 35 31 0 1100
60470046 tranthanhtra B Sept. 13, 2019, 4:53 a.m. OK FPC TESTS 35 31 0 1100
66745014 yrickman B Dec. 13, 2019, 1:11 a.m. OK FPC TESTS 35 31 0 1100
60023423 bjnboo833626 B Sept. 4, 2019, 1:37 p.m. OK FPC TESTS 35 31 0 1100
60037277 vjudge3 B Sept. 4, 2019, 5:10 p.m. OK FPC TESTS 35 31 0 1100
60073961 Minh2409 B Sept. 5, 2019, 12:01 p.m. OK FPC TESTS 35 31 0 1100
61056278 minhquaningenious B Sept. 22, 2019, 8:09 a.m. OK FPC TESTS 35 31 102400 1100
64724632 chaorenhaha B Nov. 12, 2019, 5:55 a.m. OK FPC TESTS 35 31 204800 1100
62117912 mstygg B Oct. 8, 2019, 1:51 p.m. OK GNU C11 TESTS 35 30 0 1100
62421078 atama B Oct. 12, 2019, 12:58 p.m. OK GNU C11 TESTS 35 30 0 1100
62111448 kcharla_21 B Oct. 8, 2019, 12:18 p.m. OK GNU C11 TESTS 35 30 0 1100
62916298 nNguyeNn B Oct. 19, 2019, 8:46 a.m. OK GNU C11 TESTS 35 31 0 1100
65153084 DevJewel B Nov. 16, 2019, 8:18 a.m. OK GNU C11 TESTS 35 31 0 1100
65256864 ShifaT57 B Nov. 17, 2019, 1:42 p.m. OK GNU C11 TESTS 35 31 0 1100
65256972 ShifaT57 B Nov. 17, 2019, 1:44 p.m. OK GNU C11 TESTS 35 31 0 1100
65304654 8708635 B Nov. 18, 2019, 2:27 p.m. OK GNU C11 TESTS 35 31 0 1100
65728780 vjudge1 B Nov. 26, 2019, 3 a.m. OK GNU C11 TESTS 35 31 0 1100
67482183 satya_chaitanya B Dec. 23, 2019, 4:17 p.m. OK GNU C11 TESTS 35 31 0 1100
60476585 yussgrw B Sept. 13, 2019, 8:27 a.m. OK GNU C++11 TESTS 35 15 0 1100
60946246 prakhargupta200 B Sept. 20, 2019, 7:02 p.m. OK GNU C++11 TESTS 35 15 0 1100
60457512 mustafa6520 B Sept. 12, 2019, 6:39 p.m. OK GNU C++11 TESTS 35 30 0 1100
60510362 silenceHY B Sept. 14, 2019, 2:23 a.m. OK GNU C++11 TESTS 35 30 0 1100
60514877 luogu_bot4 B Sept. 14, 2019, 5:59 a.m. OK GNU C++11 TESTS 35 30 0 1100
60394101 wangjiahao B Sept. 11, 2019, 2:18 p.m. OK GNU C++11 TESTS 35 30 0 1100
64205125 Ankit003 B Nov. 4, 2019, 12:39 p.m. OK GNU C++11 TESTS 35 30 0 1100
66193356 keep_breathing B Dec. 2, 2019, 5:23 p.m. OK GNU C++11 TESTS 35 30 0 1100
60636662 luogu_bot5 B Sept. 15, 2019, 2:07 p.m. OK GNU C++11 TESTS 35 30 0 1100
60414110 skipiano B Sept. 12, 2019, 12:40 a.m. OK GNU C++11 TESTS 35 30 0 1100
62378405 prithvianilk B Oct. 11, 2019, 6:10 p.m. OK GNU C++14 TESTS 35 15 0 1100
67430770 _Comfortably_Numb__ B Dec. 22, 2019, 3:07 p.m. OK GNU C++14 TESTS 35 15 0 1100
66802617 coder2765 B Dec. 13, 2019, 7:20 p.m. OK GNU C++14 TESTS 35 15 0 1100
65729392 mamlong34 B Nov. 26, 2019, 3:39 a.m. OK GNU C++14 TESTS 35 15 0 1100
65306406 naim6246 B Nov. 18, 2019, 3:04 p.m. OK GNU C++14 TESTS 35 15 0 1100
64108451 abcd_1234 B Nov. 2, 2019, 5:38 p.m. OK GNU C++14 TESTS 35 15 0 1100
62568973 max_lul B Oct. 14, 2019, 1:57 p.m. OK GNU C++14 TESTS 35 15 0 1100
62225912 doubleux B Oct. 9, 2019, 6:59 p.m. OK GNU C++14 TESTS 35 15 0 1100
61835025 GitanshSS B Oct. 4, 2019, 7:45 a.m. OK GNU C++14 TESTS 35 15 0 1100
61781392 naji_tension_ni_leni B Oct. 3, 2019, 1:19 p.m. OK GNU C++14 TESTS 35 15 0 1100
61587332 vjudge4 B Oct. 1, 2019, 5:36 a.m. OK GNU C++17 TESTS 35 15 0 1100
62197362 MartinLele B Oct. 9, 2019, 11:13 a.m. OK GNU C++17 TESTS 35 15 0 1100
62372439 maverick00 B Oct. 11, 2019, 4:11 p.m. OK GNU C++17 TESTS 35 15 0 1100
62416602 bmerry B Oct. 12, 2019, 11:47 a.m. OK GNU C++17 TESTS 35 15 0 1100
62584409 cidgeedeng B Oct. 14, 2019, 6:17 p.m. OK GNU C++17 TESTS 35 15 0 1100
62755972 xcoderlin B Oct. 17, 2019, 4:41 a.m. OK GNU C++17 TESTS 35 15 0 1100
62904848 vjudge4 B Oct. 19, 2019, 5:30 a.m. OK GNU C++17 TESTS 35 15 0 1100
64108632 vjudge5 B Nov. 2, 2019, 5:43 p.m. OK GNU C++17 TESTS 35 15 0 1100
64196412 Aman_j1 B Nov. 4, 2019, 9:53 a.m. OK GNU C++17 TESTS 35 15 0 1100
65474599 vjudge2 B Nov. 21, 2019, 9:33 a.m. OK GNU C++17 TESTS 35 15 0 1100
60654088 reanimatorzon B Sept. 15, 2019, 9:18 p.m. OK Go TESTS 35 31 0 1100
60330850 Silentselene B Sept. 10, 2019, 5:51 a.m. OK Go TESTS 35 31 0 1100
60072296 congbao B Sept. 5, 2019, 11:32 a.m. OK Go TESTS 35 31 0 1100
60071750 NewIdea B Sept. 5, 2019, 11:21 a.m. OK Go TESTS 35 31 0 1100
60019405 nurlybekovnt B Sept. 4, 2019, 12:45 p.m. OK Go TESTS 35 31 0 1100
60012518 gouthamkn B Sept. 4, 2019, 11:16 a.m. OK Go TESTS 35 31 0 1100
62218722 DMOVE B Oct. 9, 2019, 4:46 p.m. OK Go TESTS 35 46 0 1100
60197003 little_gift B Sept. 7, 2019, 2:30 a.m. OK Haskell TESTS 35 31 102400 1100
68058875 krutarth07 B Jan. 2, 2020, 1:09 a.m. OK Java 11 TESTS 35 171 0 1100
69098047 tejas2 B Jan. 19, 2020, 12:51 p.m. OK Java 11 TESTS 35 187 0 1100
60078732 akshayabcd1234 B Sept. 5, 2019, 1:20 p.m. OK Java 8 TESTS 35 108 0 1100
60074952 hetshah25 B Sept. 5, 2019, 12:19 p.m. OK Java 8 TESTS 35 108 0 1100
60055938 MahmoudJobeel B Sept. 5, 2019, 4:10 a.m. OK Java 8 TESTS 35 108 0 1100
67968820 I_love_Harpae B Dec. 30, 2019, 2:15 p.m. OK Java 8 TESTS 35 109 0 1100
62909919 Oland B Oct. 19, 2019, 6:59 a.m. OK Java 8 TESTS 35 109 0 1100
61081508 icpc_loser B Sept. 22, 2019, 4:34 p.m. OK Java 8 TESTS 35 109 0 1100
60741679 kpbochenek B Sept. 17, 2019, 8:38 p.m. OK Java 8 TESTS 35 109 0 1100
60577248 o.radwan B Sept. 14, 2019, 5:04 p.m. OK Java 8 TESTS 35 109 0 1100
60507862 the41 B Sept. 13, 2019, 11:18 p.m. OK Java 8 TESTS 35 109 0 1100
60498674 xacto B Sept. 13, 2019, 5:33 p.m. OK Java 8 TESTS 35 109 0 1100
60050191 sjx233 B Sept. 4, 2019, 11:47 p.m. OK JavaScript TESTS 35 31 0 1100
60008908 Dan2000kr B Sept. 4, 2019, 10:54 a.m. OK JavaScript TESTS 35 31 0 1100
60019878 Spheniscine B Sept. 4, 2019, 12:51 p.m. OK Kotlin TESTS 35 109 0 1100
60360576 dkozak94 B Sept. 10, 2019, 6:03 p.m. OK Kotlin TESTS 35 124 0 1100
60026286 Benq B Sept. 4, 2019, 2:15 p.m. OK Kotlin TESTS 35 124 0 1100
60025320 Fortin B Sept. 4, 2019, 2:03 p.m. OK Kotlin TESTS 35 124 0 1100
60949848 Black_Fregat B Sept. 20, 2019, 9 p.m. OK Kotlin TESTS 35 139 0 1100
60017648 XinLoiNguoi B Sept. 4, 2019, 12:26 p.m. OK Kotlin TESTS 35 139 0 1100
60160279 ganixdd B Sept. 6, 2019, 8:42 a.m. OK Kotlin TESTS 35 139 0 1100
60071771 rego97 B Sept. 5, 2019, 11:22 a.m. OK Kotlin TESTS 35 140 0 1100
60263904 vadimmm B Sept. 8, 2019, 12:41 p.m. OK Kotlin TESTS 35 140 0 1100
61119245 Salatik231166 B Sept. 23, 2019, 1:53 p.m. OK Mono C# TESTS 35 46 0 1100
60940945 and999 B Sept. 20, 2019, 5:02 p.m. OK Mono C# TESTS 35 46 0 1100
60482647 treasuryonly B Sept. 13, 2019, 11:14 a.m. OK Mono C# TESTS 35 46 0 1100
60277997 Goga B Sept. 8, 2019, 6:56 p.m. OK Mono C# TESTS 35 46 0 1100
60031129 Giangvp B Sept. 4, 2019, 3:26 p.m. OK Mono C# TESTS 35 46 0 1100
61210494 nadilk B Sept. 24, 2019, 11:20 a.m. OK Mono C# TESTS 35 46 0 1100
64353478 boookva B Nov. 6, 2019, 9:18 a.m. OK Mono C# TESTS 35 62 0 1100
65054913 Tan42 B Nov. 15, 2019, 2:43 p.m. OK Mono C# TESTS 35 62 0 1100
65763037 ansergeyg B Nov. 26, 2019, 4:40 p.m. OK Mono C# TESTS 35 62 0 1100
65763254 ansergeyg B Nov. 26, 2019, 4:45 p.m. OK Mono C# TESTS 35 62 0 1100
61591837 vjudge4 B Oct. 1, 2019, 7:19 a.m. OK MS C++ TESTS 35 30 0 1100
60168501 vjudge4 B Sept. 6, 2019, 11:59 a.m. OK MS C++ TESTS 35 30 0 1100
61589081 vjudge5 B Oct. 1, 2019, 6:17 a.m. OK MS C++ TESTS 35 31 0 1100
61588323 vjudge2 B Oct. 1, 2019, 6 a.m. OK MS C++ TESTS 35 31 0 1100
61056810 vjudge1 B Sept. 22, 2019, 8:18 a.m. OK MS C++ TESTS 35 31 0 1100
61054059 vjudge3 B Sept. 22, 2019, 7:30 a.m. OK MS C++ TESTS 35 31 0 1100
61589552 vjudge4 B Oct. 1, 2019, 6:28 a.m. OK MS C++ TESTS 35 31 0 1100
61588727 vjudge1 B Oct. 1, 2019, 6:09 a.m. OK MS C++ TESTS 35 31 0 1100
62778803 2980 B Oct. 17, 2019, 12:23 p.m. OK MS C++ TESTS 35 31 0 1100
61590318 vjudge5 B Oct. 1, 2019, 6:45 a.m. OK MS C++ TESTS 35 31 0 1100
60958954 lam.le1512 B Sept. 21, 2019, 4:26 a.m. OK MS C++ 2017 TESTS 35 30 0 1100
61868544 CeNiEi B Oct. 4, 2019, 5:22 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
66135737 Hesham_Elzeibak B Dec. 1, 2019, 12:06 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
64886744 Karimbz B Nov. 14, 2019, 1:21 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
61590187 vjudge5 B Oct. 1, 2019, 6:42 a.m. OK MS C++ 2017 TESTS 35 31 0 1100
61382093 JuicyCloud12609 B Sept. 27, 2019, 5:48 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
61325395 vjudge3 B Sept. 26, 2019, 1:40 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
61316344 sansanmiaomiao B Sept. 26, 2019, 11:12 a.m. OK MS C++ 2017 TESTS 35 31 0 1100
61221754 Mad112233 B Sept. 24, 2019, 2:07 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
61075798 vladnoov B Sept. 22, 2019, 2:25 p.m. OK MS C++ 2017 TESTS 35 31 0 1100
60197161 evanli2014 B Sept. 7, 2019, 2:36 a.m. OK Node.js TESTS 35 171 512000 1100
66239184 Delfin B Dec. 3, 2019, 5:22 p.m. OK PascalABC.NET TESTS 35 187 0 1100
60522845 pascal_handle B Sept. 14, 2019, 9:08 a.m. OK PascalABC.NET TESTS 35 187 0 1100
63197772 spartavp B Oct. 22, 2019, 7:12 p.m. OK PascalABC.NET TESTS 35 202 0 1100
60039594 rsFalse B Sept. 4, 2019, 5:52 p.m. OK Perl TESTS 35 31 0 1100
61145805 mayakin B Sept. 23, 2019, 2:52 p.m. OK PHP TESTS 35 62 512000 1100
60033097 alexwice B Sept. 4, 2019, 3:57 p.m. OK PyPy 2 TESTS 35 124 0 1100
60150053 ruhul.hb B Sept. 6, 2019, 3:20 a.m. OK PyPy 2 TESTS 35 124 0 1100
60028548 bertrandovide B Sept. 4, 2019, 2:47 p.m. OK PyPy 2 TESTS 35 171 1024000 1100
60137099 anshuman16423 B Sept. 5, 2019, 6:38 p.m. OK PyPy 2 TESTS 35 218 0 1100
62109996 gim B Oct. 8, 2019, 11:56 a.m. OK PyPy 3 TESTS 35 124 102400 1100
60598762 bharathsathya B Sept. 15, 2019, 7:12 a.m. OK PyPy 3 TESTS 35 139 0 1100
67326607 vaibhav0320 B Dec. 21, 2019, 9:59 a.m. OK PyPy 3 TESTS 35 139 0 1100
60191195 scheduler B Sept. 6, 2019, 9:32 p.m. OK PyPy 3 TESTS 35 139 0 1100
60047744 modestas_ B Sept. 4, 2019, 9:35 p.m. OK PyPy 3 TESTS 35 139 0 1100
61090035 gx2a B Sept. 22, 2019, 8:41 p.m. OK PyPy 3 TESTS 35 139 102400 1100
60267404 Hoyda B Sept. 8, 2019, 1:59 p.m. OK PyPy 3 TESTS 35 139 102400 1100
60057240 Ivan_Tea B Sept. 5, 2019, 5:01 a.m. OK PyPy 3 TESTS 35 139 102400 1100
60054528 tiantian5 B Sept. 5, 2019, 3:12 a.m. OK PyPy 3 TESTS 35 139 102400 1100
68542654 phlk B Jan. 10, 2020, 3:42 p.m. OK PyPy 3 TESTS 35 140 0 1100
60059866 phoenix28 B Sept. 5, 2019, 6:25 a.m. OK Python 2 TESTS 35 186 0 1100
60075512 ark.idm14 B Sept. 5, 2019, 12:28 p.m. OK Python 2 TESTS 35 187 0 1100
60007970 realnimish B Sept. 4, 2019, 10:48 a.m. OK Python 2 TESTS 35 218 0 1100
60152033 arjunrk B Sept. 6, 2019, 4:37 a.m. OK Python 3 TESTS 35 108 0 1100
69060561 poornapragnamath B Jan. 18, 2020, 4:19 p.m. OK Python 3 TESTS 35 109 0 1100
64777679 Rahan B Nov. 13, 2019, 5:31 a.m. OK Python 3 TESTS 35 109 0 1100
64775218 Rahan B Nov. 13, 2019, 3:41 a.m. OK Python 3 TESTS 35 109 0 1100
63927716 Mehrdad_ravenS B Oct. 31, 2019, 1:29 p.m. OK Python 3 TESTS 35 109 0 1100
63120171 brezhart B Oct. 22, 2019, 10:56 a.m. OK Python 3 TESTS 35 109 0 1100
62828964 majd_80 B Oct. 17, 2019, 7:03 p.m. OK Python 3 TESTS 35 109 0 1100
62609365 gswetha1713 B Oct. 15, 2019, 9:07 a.m. OK Python 3 TESTS 35 109 0 1100
62450809 GoDelong B Oct. 13, 2019, 3:58 a.m. OK Python 3 TESTS 35 109 0 1100
62188152 UR5ANO B Oct. 9, 2019, 8:54 a.m. OK Python 3 TESTS 35 109 0 1100
60416318 nemi_zzz B Sept. 12, 2019, 2:29 a.m. OK Ruby TESTS 35 77 102400 1100
63267639 Anai B Oct. 24, 2019, 1:34 a.m. OK Rust TESTS 35 31 0 1100
61034655 vjudge1 B Sept. 21, 2019, 7:10 p.m. OK Rust TESTS 35 31 0 1100
60945650 vjudge1 B Sept. 20, 2019, 6:46 p.m. OK Rust TESTS 35 31 0 1100
60198614 tpoeiras B Sept. 7, 2019, 3:42 a.m. OK Rust TESTS 35 31 0 1100
60042873 sansen B Sept. 4, 2019, 7:01 p.m. OK Rust TESTS 35 31 0 1100

remove filters

Back to search problems