Educational Codeforces Round 150 (Rated for 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
1841 Educational Codeforces Round 150 (Rated for Div. 2) FINISHED False 7200 50599463 June 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24957 ) A Game with Board PROGRAMMING constructive algorithms games

B'Alice and Bob play a game. They have a blackboard; initially, there are n integers written on it, and each integer is equal to 1 . Alice and Bob take turns; Alice goes first. On their turn, the player has to choose several (at least two) equal integers on the board, wipe them and write a new integer which is equal to their sum. For example, if the board currently contains integers {1, 1, 2, 2, 2, 3 } , then the following moves are possible: If a player cannot make a move (all integers on the board are different), that player wins the game. Determine who wins if both players play optimally. The first line contains one integer t ( 1 <= t <= 99 ) -- the number of test cases. Each test case consists of one line containing one integer n ( 2 <= n <= 100 ) -- the number of integers equal to 1 on the board. For each test case, print Alice if Alice wins when both players play optimally. Otherwise, print Bob. In the first test case, n = 3 , so the board initially contains integers {1, 1, 1 } . We can show that Bob can always win as follows: there are two possible first moves for Alice. In the second test case, n = 6 , so the board initially contains integers {1, 1, 1, 1, 1, 1 } . Alice can win by, for example, choosing two integers equal to 1 , wiping them and writing 2 on the first turn. Then the board becomes {1, 1, 1, 1, 2 } , and there are three possible responses for Bob: '...

Tutorials

117262

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
209520020 saiful-05 A June 13, 2023, 5:26 a.m. OK C# 10 TESTS 5 31 0
209501020 bluemegane A June 12, 2023, 10:22 p.m. OK C# 8 TESTS 5 77 0
209474584 Think_About402 A June 12, 2023, 4:46 p.m. OK Clang++17 Diagnostics TESTS 5 15 0
209480664 MohaiMinul2002 A June 12, 2023, 5:28 p.m. OK GNU C11 TESTS 5 15 0
209486576 prosenjit_mondol A June 12, 2023, 6:25 p.m. OK GNU C11 TESTS 5 15 0
209497286 vanishedO_o A June 12, 2023, 8:54 p.m. OK GNU C11 TESTS 5 15 0
209519805 souvik127 A June 13, 2023, 5:23 a.m. OK GNU C11 TESTS 5 15 0
209474572 itspremkumar0 A June 12, 2023, 4:46 p.m. OK GNU C11 TESTS 5 15 0
209474957 prattay56 A June 12, 2023, 4:48 p.m. OK GNU C11 TESTS 5 15 0
209475472 Abhisekk A June 12, 2023, 4:51 p.m. OK GNU C11 TESTS 5 15 0
209475965 bumchikcoder A June 12, 2023, 4:54 p.m. OK GNU C11 TESTS 5 15 0
209477415 LordxShafin A June 12, 2023, 5:03 p.m. OK GNU C11 TESTS 5 15 0
209506320 iAmadoldd A June 13, 2023, 1:18 a.m. OK GNU C11 TESTS 5 30 0
209517715 Amiteshks A June 13, 2023, 4:43 a.m. OK GNU C++14 TESTS 5 0 0
209517547 Iamryan7 A June 13, 2023, 4:40 a.m. OK GNU C++14 TESTS 5 0 0
209516757 buqu A June 13, 2023, 4:27 a.m. OK GNU C++14 TESTS 5 0 0
209516443 _tableturner_ A June 13, 2023, 4:21 a.m. OK GNU C++14 TESTS 5 0 0
209522434 Kraman070 A June 13, 2023, 5:58 a.m. OK GNU C++14 TESTS 5 0 0
209521494 c0nf11c7 A June 13, 2023, 5:47 a.m. OK GNU C++14 TESTS 5 0 0
209521430 Aditya.exe A June 13, 2023, 5:46 a.m. OK GNU C++14 TESTS 5 0 0
209520113 antriksh11 A June 13, 2023, 5:27 a.m. OK GNU C++14 TESTS 5 0 0
209519403 awsoankur A June 13, 2023, 5:17 a.m. OK GNU C++14 TESTS 5 0 0
209518803 CLOCKS_PER_SEC A June 13, 2023, 5:07 a.m. OK GNU C++14 TESTS 5 0 0
209522118 Kanav_Singla A June 13, 2023, 5:55 a.m. OK GNU C++17 TESTS 5 0 0
209522213 codesolver100S A June 13, 2023, 5:56 a.m. OK GNU C++17 TESTS 5 0 0
209522407 ya_ya A June 13, 2023, 5:58 a.m. OK GNU C++17 TESTS 5 0 0
209522484 whaov A June 13, 2023, 5:59 a.m. OK GNU C++17 TESTS 5 0 0
209521844 pqh0612 A June 13, 2023, 5:52 a.m. OK GNU C++17 TESTS 5 0 0
209521766 SarthakAggarwal1202 A June 13, 2023, 5:50 a.m. OK GNU C++17 TESTS 5 0 0
209521396 piyush.chauhan1480 A June 13, 2023, 5:45 a.m. OK GNU C++17 TESTS 5 0 0
209521098 meet3447 A June 13, 2023, 5:41 a.m. OK GNU C++17 TESTS 5 0 0
209521056 shen_256 A June 13, 2023, 5:41 a.m. OK GNU C++17 TESTS 5 0 0
209521015 rb003 A June 13, 2023, 5:40 a.m. OK GNU C++17 TESTS 5 0 0
209519604 AhsanulHoqueAbir A June 13, 2023, 5:20 a.m. OK GNU C++17 (64) TESTS 5 0 0
209519329 Aditya_2407 A June 13, 2023, 5:16 a.m. OK GNU C++17 (64) TESTS 5 0 0
209517773 xielihang A June 13, 2023, 4:44 a.m. OK GNU C++17 (64) TESTS 5 0 0
209517578 mostafasazid A June 13, 2023, 4:41 a.m. OK GNU C++17 (64) TESTS 5 0 0
209517462 deku2ofi A June 13, 2023, 4:39 a.m. OK GNU C++17 (64) TESTS 5 0 0
209516996 efficient A June 13, 2023, 4:31 a.m. OK GNU C++17 (64) TESTS 5 0 0
209516762 sehikon A June 13, 2023, 4:27 a.m. OK GNU C++17 (64) TESTS 5 0 0
209515749 zenroychance A June 13, 2023, 4:09 a.m. OK GNU C++17 (64) TESTS 5 0 0
209514379 gluchie A June 13, 2023, 3:47 a.m. OK GNU C++17 (64) TESTS 5 0 0
209513921 prathipati A June 13, 2023, 3:39 a.m. OK GNU C++17 (64) TESTS 5 0 0
209521270 sahal A June 13, 2023, 5:44 a.m. OK GNU C++20 (64) TESTS 5 0 0
209521436 anoop5737v A June 13, 2023, 5:46 a.m. OK GNU C++20 (64) TESTS 5 0 0
209521680 saitejaenna A June 13, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 5 0 0
209521774 wakaka A June 13, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 5 0 0
209521915 dingliringching A June 13, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 5 0 0
209522005 ARITRASEN_2003 A June 13, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 5 0 0
209522036 agentmusashi A June 13, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 5 0 0
209522102 qinghuanh A June 13, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 5 0 0
209522308 qinghuanh A June 13, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 5 0 0
209522444 LLIEPJIOK A June 13, 2023, 5:58 a.m. OK GNU C++20 (64) TESTS 5 0 0
209511159 Ivan_Chien A June 13, 2023, 2:48 a.m. OK Go TESTS 5 15 0
209492959 anubhav100rao A June 12, 2023, 7:41 p.m. OK Go TESTS 5 31 0
209482394 markmoretto A June 12, 2023, 5:44 p.m. OK Go TESTS 5 31 0
209498982 menezesd A June 12, 2023, 9:30 p.m. OK Haskell TESTS 5 15 0
209516221 rajputsrshubham930 A June 13, 2023, 4:17 a.m. OK Java 11 TESTS 5 171 0
209506303 dan1024 A June 13, 2023, 1:17 a.m. OK Java 11 TESTS 5 171 0
209479700 Tykonan A June 12, 2023, 5:20 p.m. OK Java 11 TESTS 5 171 0
209474618 vijender_8601 A June 12, 2023, 4:46 p.m. OK Java 11 TESTS 5 171 0
209486840 tiwariaryan20020913 A June 12, 2023, 6:28 p.m. OK Java 11 TESTS 5 186 0
209506876 dafdaf A June 13, 2023, 1:32 a.m. OK Java 11 TESTS 5 187 0
209484229 Bandwidth A June 12, 2023, 6:01 p.m. OK Java 11 TESTS 5 187 0
209486765 MadhavGarg A June 12, 2023, 6:27 p.m. OK Java 11 TESTS 5 202 0
209483655 neycerys A June 12, 2023, 5:56 p.m. OK Java 11 TESTS 5 202 0
209483399 __Mohit_Raj1712 A June 12, 2023, 5:54 p.m. OK Java 11 TESTS 5 202 0
209488429 ahmed.elbakly A June 12, 2023, 6:44 p.m. OK Java 17 TESTS 5 139 819200
209485392 Yousef_Badr A June 12, 2023, 6:13 p.m. OK Java 17 TESTS 5 140 512000
209490513 Nagendravarma A June 12, 2023, 7:09 p.m. OK Java 17 TESTS 5 140 716800
209484440 Vrutik_2809 A June 12, 2023, 6:03 p.m. OK Java 17 TESTS 5 140 1126400
209494243 mihau A June 12, 2023, 8:01 p.m. OK Java 17 TESTS 5 155 409600
209520585 ykexc A June 13, 2023, 5:34 a.m. OK Java 17 TESTS 5 155 819200
209477355 rated21 A June 12, 2023, 5:03 p.m. OK Java 17 TESTS 5 170 307200
209481875 Ayyylmao A June 12, 2023, 5:39 p.m. OK Java 17 TESTS 5 170 921600
209473093 daksh_02 A June 12, 2023, 4:38 p.m. OK Java 17 TESTS 5 171 102400
209516464 yashvardhan3 A June 13, 2023, 4:21 a.m. OK Java 17 TESTS 5 171 204800
209497400 20220680 A June 12, 2023, 8:56 p.m. OK Java 8 TESTS 5 93 0
209494017 I_Need_Alex_R_Coleman A June 12, 2023, 7:57 p.m. OK Java 8 TESTS 5 108 0
209482375 rajpalaman09 A June 12, 2023, 5:44 p.m. OK Java 8 TESTS 5 108 0
209479314 EricM08 A June 12, 2023, 5:17 p.m. OK Java 8 TESTS 5 108 0
209512411 rocean07 A June 13, 2023, 3:11 a.m. OK Java 8 TESTS 5 109 0
209472906 xiaoshua A June 12, 2023, 4:37 p.m. OK Java 8 TESTS 5 109 0
209503622 joycelalalayaa A June 12, 2023, 11:54 p.m. OK Java 8 TESTS 5 124 0
209484825 shivamjadhav40 A June 12, 2023, 6:07 p.m. OK Java 8 TESTS 5 124 0
209474891 ScoobyDoobyDo A June 12, 2023, 4:48 p.m. OK Java 8 TESTS 5 124 0
209474591 susaksham_ A June 12, 2023, 4:46 p.m. OK Java 8 TESTS 5 124 0
209522144 PPrashantc45 A June 13, 2023, 5:55 a.m. OK MS C++ 2017 TESTS 5 0 0
209510819 Ahac A June 13, 2023, 2:42 a.m. OK MS C++ 2017 TESTS 5 0 0
209507873 Mingshaozii A June 13, 2023, 1:53 a.m. OK MS C++ 2017 TESTS 5 0 0
209484170 all_delete A June 12, 2023, 6:01 p.m. OK MS C++ 2017 TESTS 5 0 0
209478685 rajharshsingh2003 A June 12, 2023, 5:11 p.m. OK MS C++ 2017 TESTS 5 0 0
209496104 Gadi A June 12, 2023, 8:31 p.m. OK MS C++ 2017 TESTS 5 0 409600
209505210 WildeErdej A June 13, 2023, 12:49 a.m. OK MS C++ 2017 TESTS 5 15 0
209495352 dinex_cher A June 12, 2023, 8:18 p.m. OK MS C++ 2017 TESTS 5 15 0
209485288 1_shivam A June 12, 2023, 6:12 p.m. OK MS C++ 2017 TESTS 5 15 0
209484019 adesh123 A June 12, 2023, 6 p.m. OK MS C++ 2017 TESTS 5 15 0
209481712 varrick A June 12, 2023, 5:38 p.m. OK Ocaml TESTS 5 15 0
209497923 tamaa A June 12, 2023, 9:06 p.m. OK PyPy 3 TESTS 5 77 0
209496200 witcher_wild_hunt A June 12, 2023, 8:32 p.m. OK PyPy 3 TESTS 5 77 0
209479961 shriomks A June 12, 2023, 5:22 p.m. OK PyPy 3 TESTS 5 77 0
209492886 shawnfrost007 A June 12, 2023, 7:40 p.m. OK PyPy 3 TESTS 5 93 0
209515734 alexwice A June 13, 2023, 4:09 a.m. OK PyPy 3-64 TESTS 5 46 0
209507898 m.foysal A June 13, 2023, 1:53 a.m. OK PyPy 3-64 TESTS 5 46 0
209494675 practiceaccount76 A June 12, 2023, 8:07 p.m. OK PyPy 3-64 TESTS 5 46 0
209493855 Lacyl A June 12, 2023, 7:55 p.m. OK PyPy 3-64 TESTS 5 46 0
209492361 tu144x A June 12, 2023, 7:33 p.m. OK PyPy 3-64 TESTS 5 46 0
209491336 dragoonfx A June 12, 2023, 7:19 p.m. OK PyPy 3-64 TESTS 5 46 0
209489010 toperperperper A June 12, 2023, 6:51 p.m. OK PyPy 3-64 TESTS 5 46 0
209488591 macarell A June 12, 2023, 6:46 p.m. OK PyPy 3-64 TESTS 5 46 0
209487966 damya A June 12, 2023, 6:39 p.m. OK PyPy 3-64 TESTS 5 46 0
209486640 Vitya.saber A June 12, 2023, 6:26 p.m. OK PyPy 3-64 TESTS 5 46 0
209511358 XanderChou A June 13, 2023, 2:52 a.m. OK Python 3 TESTS 5 30 0
209473418 creativityinczenyoga A June 12, 2023, 4:40 p.m. OK Python 3 TESTS 5 30 0
209471660 creativityinczenyoga A June 12, 2023, 4:34 p.m. OK Python 3 TESTS 5 30 0
209515133 ridhima_1706 A June 13, 2023, 3:59 a.m. OK Python 3 TESTS 5 31 0
209514273 nitin2203 A June 13, 2023, 3:45 a.m. OK Python 3 TESTS 5 31 0
209507977 rvronak A June 13, 2023, 1:55 a.m. OK Python 3 TESTS 5 31 0
209499766 AhmadObaidat A June 12, 2023, 9:48 p.m. OK Python 3 TESTS 5 31 0
209487266 ariiish A June 12, 2023, 6:32 p.m. OK Python 3 TESTS 5 31 0
209485591 sumit0yadav A June 12, 2023, 6:15 p.m. OK Python 3 TESTS 5 31 0
209484740 Riyajulhasan A June 12, 2023, 6:07 p.m. OK Python 3 TESTS 5 31 0
209479360 0x81 A June 12, 2023, 5:17 p.m. OK Ruby 3 TESTS 5 218 102400

remove filters

Back to search problems