Educational Codeforces Round 129 (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
1681 Educational Codeforces Round 129 (Rated for Div. 2) FINISHED False 7200 83863463 May 23, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21112 ) A Game with Cards PROGRAMMING games greedy 800

B"Alice and Bob play a game. Alice has n cards, the i -th of them has the integer a_i written on it. Bob has m cards, the j -th of them has the integer b_j written on it. On the first turn of the game, the first player chooses one of his/her cards and puts it on the table (plays it). On the second turn, the second player chooses one of his/her cards such that the integer on it is greater than the integer on the card played on the first turn, and plays it. On the third turn, the first player chooses one of his/her cards such that the integer on it is greater than the integer on the card played on the second turn, and plays it, and so on -- the players take turns, and each player has to choose one of his/her cards with greater integer than the card played by the other player on the last turn. If some player cannot make a turn, he/she loses. For example, if Alice has 4 cards with numbers [10, 5, 3, 8] , and Bob has 3 cards with numbers [6, 11, 6] , the game may go as follows: Both Alice and Bob play optimally (if a player is able to win the game no matter how the other player plays, the former player will definitely win the game). You have to answer two questions: The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. Each test case consists of four lines. The first line of a test case contains one integer n ( 1 <= n <= 50 ) -- the number of cards Alice has. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 50 ) -- the numbers written on the cards that Alice has. The third line contains one integer m ( 1 <= m <= 50 ) -- the number of Bob's cards. The fourth line contains m integers b_1, b_2, ... , b_m ( 1 <= b_i <= 50 ) -- the numbers on Bob's cards. For each test case, print two lines. The first line should be Alice if Alice wins when she is the first player; otherwise, the fi"...

Tutorials

103163

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
158347726 nesco A May 25, 2022, 3:54 a.m. OK C# 10 TESTS 7 46 2969600 800
158404466 AFiFY A May 25, 2022, 3:43 p.m. OK C# 10 TESTS 7 46 3174400 800
158283572 Imarion A May 24, 2022, 9:35 a.m. OK C# 8 TESTS 7 77 3072000 800
158327244 extremall A May 24, 2022, 6:11 p.m. OK C# 8 TESTS 7 139 3379200 800
158315048 RFSS_ A May 24, 2022, 3:49 p.m. OK Clang++17 Diagnostics TESTS 7 296 4198400 800
158348831 manoj_2022 A May 25, 2022, 4:22 a.m. OK Clang++17 Diagnostics TESTS 7 327 0 800
158347899 kflny A May 25, 2022, 3:59 a.m. OK GNU C11 TESTS 7 15 0 800
158321776 predawn A May 24, 2022, 5:04 p.m. OK GNU C11 TESTS 7 15 0 800
158347460 kflny A May 25, 2022, 3:46 a.m. OK GNU C11 TESTS 7 15 0 800
158347520 kflny A May 25, 2022, 3:48 a.m. OK GNU C11 TESTS 7 15 0 800
158547708 h.ayoub110001 A May 26, 2022, 4:14 p.m. OK GNU C11 TESTS 7 15 0 800
158267937 SP2003 A May 24, 2022, 5:57 a.m. OK GNU C11 TESTS 7 30 0 800
158347496 kflny A May 25, 2022, 3:47 a.m. OK GNU C11 TESTS 7 31 0 800
158497806 GsquareT A May 26, 2022, 6:39 a.m. OK GNU C11 TESTS 7 31 0 800
158471871 youmnaalnouri A May 25, 2022, 8:46 p.m. OK GNU C11 TESTS 7 31 0 800
158401532 drfahim A May 25, 2022, 3:11 p.m. OK GNU C11 TESTS 7 31 0 800
158396239 paopaooux A May 25, 2022, 2:08 p.m. OK GNU C++14 TESTS 7 15 0 800
158576332 luogu_bot1 A May 27, 2022, 3:11 a.m. OK GNU C++14 TESTS 7 15 0 800
158575337 bagpipe A May 27, 2022, 2:42 a.m. OK GNU C++14 TESTS 7 15 0 800
158572826 whyimalive A May 27, 2022, 1:22 a.m. OK GNU C++14 TESTS 7 15 0 800
158536713 AnosVoldigoad A May 26, 2022, 2:19 p.m. OK GNU C++14 TESTS 7 15 0 800
158535904 rui_er A May 26, 2022, 2:10 p.m. OK GNU C++14 TESTS 7 15 0 800
158483397 gnored A May 26, 2022, 2:36 a.m. OK GNU C++14 TESTS 7 15 0 800
158481785 niter A May 26, 2022, 1:57 a.m. OK GNU C++14 TESTS 7 15 0 800
158412765 hotpotcondiment A May 25, 2022, 5:22 p.m. OK GNU C++14 TESTS 7 15 0 800
158396219 cyrxdzj A May 25, 2022, 2:08 p.m. OK GNU C++14 TESTS 7 15 0 800
158522241 Asunataisiki A May 26, 2022, 11:43 a.m. OK GNU C++17 TESTS 7 15 0 800
158540628 keerthanareddy123 A May 26, 2022, 2:53 p.m. OK GNU C++17 TESTS 7 15 0 800
158554324 hilfreich A May 26, 2022, 5:36 p.m. OK GNU C++17 TESTS 7 15 0 800
158559115 Veronica0513 A May 26, 2022, 6:41 p.m. OK GNU C++17 TESTS 7 15 0 800
158561020 Hecko A May 26, 2022, 7:11 p.m. OK GNU C++17 TESTS 7 15 0 800
158413265 hpx A May 25, 2022, 5:28 p.m. OK GNU C++17 TESTS 7 15 0 800
158480999 ShadowLight A May 26, 2022, 1:33 a.m. OK GNU C++17 TESTS 7 15 0 800
158489503 adimukh2001 A May 26, 2022, 4:40 a.m. OK GNU C++17 TESTS 7 15 0 800
158504212 Balloon_Master A May 26, 2022, 8:02 a.m. OK GNU C++17 TESTS 7 15 0 800
158508631 bishertello A May 26, 2022, 9 a.m. OK GNU C++17 TESTS 7 15 0 800
158378974 boxnos A May 25, 2022, 10:38 a.m. OK GNU C++17 (64) TESTS 7 0 512000 800
158343392 CartesianTree A May 25, 2022, 1:49 a.m. OK GNU C++17 (64) TESTS 7 0 26112000 800
158398976 CatastrophicTyrant A May 25, 2022, 2:43 p.m. OK GNU C++17 (64) TESTS 7 15 0 800
158482135 jjjjssss6 A May 26, 2022, 2:06 a.m. OK GNU C++17 (64) TESTS 7 15 0 800
158480257 Dragneel007 A May 26, 2022, 1:09 a.m. OK GNU C++17 (64) TESTS 7 15 0 800
158472830 RoWan_Hamada A May 25, 2022, 9:03 p.m. OK GNU C++17 (64) TESTS 7 15 0 800
158465022 omar_walied_ismail A May 25, 2022, 7:37 p.m. OK GNU C++17 (64) TESTS 7 15 0 800
158399110 tonyshuoxuanli A May 25, 2022, 2:44 p.m. OK GNU C++17 (64) TESTS 7 15 0 800
158498975 OTTFF A May 26, 2022, 6:54 a.m. OK GNU C++17 (64) TESTS 7 15 0 800
158498590 black_trees A May 26, 2022, 6:49 a.m. OK GNU C++17 (64) TESTS 7 15 0 800
158265821 newbie_2022 A May 24, 2022, 5:24 a.m. OK GNU C++20 (64) TESTS 7 0 0 800
158442236 Aktgb_31 A May 25, 2022, 6:20 p.m. OK GNU C++20 (64) TESTS 7 0 0 800
158341825 henu_lzy A May 25, 2022, 12:42 a.m. OK GNU C++20 (64) TESTS 7 0 0 800
158557849 raghad__ns A May 26, 2022, 6:23 p.m. OK GNU C++20 (64) TESTS 7 0 102400 800
158297149 drakess A May 24, 2022, 12:30 p.m. OK GNU C++20 (64) TESTS 7 0 1638400 800
158580697 asliddin2003 A May 27, 2022, 5:04 a.m. OK GNU C++20 (64) TESTS 7 15 0 800
158583301 Uchiha_Ouda A May 27, 2022, 5:52 a.m. OK GNU C++20 (64) TESTS 7 15 0 800
158582893 omarsalem33 A May 27, 2022, 5:45 a.m. OK GNU C++20 (64) TESTS 7 15 0 800
158573890 3ela2 A May 27, 2022, 1:56 a.m. OK GNU C++20 (64) TESTS 7 15 0 800
158564409 mystic_ankush A May 26, 2022, 8:16 p.m. OK GNU C++20 (64) TESTS 7 15 0 800
158320393 Death_on_2_Legs A May 24, 2022, 4:48 p.m. OK Haskell TESTS 7 31 1024000 800
158275227 javaking A May 24, 2022, 7:45 a.m. OK Java 11 TESTS 7 155 0 800
158321416 iamsoumik A May 24, 2022, 5 p.m. OK Java 11 TESTS 7 156 0 800
158488899 dhruvil8804 A May 26, 2022, 4:29 a.m. OK Java 11 TESTS 7 170 0 800
158295876 poopoop A May 24, 2022, 12:14 p.m. OK Java 11 TESTS 7 170 0 800
158403087 LakhimpurKheri A May 25, 2022, 3:28 p.m. OK Java 11 TESTS 7 171 0 800
158582020 kartik__sethi A May 27, 2022, 5:30 a.m. OK Java 11 TESTS 7 171 0 800
158550814 plmokn A May 26, 2022, 4:52 p.m. OK Java 11 TESTS 7 171 0 800
158352790 nbhakar A May 25, 2022, 5:35 a.m. OK Java 11 TESTS 7 171 0 800
158344692 krishnagskr983 A May 25, 2022, 2:27 a.m. OK Java 11 TESTS 7 171 0 800
158312017 sf14t A May 24, 2022, 3:15 p.m. OK Java 11 TESTS 7 171 0 800
158535819 akshay23codes A May 26, 2022, 2:09 p.m. OK Java 8 TESTS 7 93 0 800
158384202 anshulchou_123 A May 25, 2022, 11:44 a.m. OK Java 8 TESTS 7 93 0 800
158332538 yahiamoussadek1 A May 24, 2022, 7:32 p.m. OK Java 8 TESTS 7 93 0 800
158326097 param_2001 A May 24, 2022, 5:55 p.m. OK Java 8 TESTS 7 93 0 800
158290993 wmmwkk A May 24, 2022, 11:16 a.m. OK Java 8 TESTS 7 93 0 800
158270071 slow.coder A May 24, 2022, 6:27 a.m. OK Java 8 TESTS 7 93 0 800
158402750 coderama A May 25, 2022, 3:24 p.m. OK Java 8 TESTS 7 108 0 800
158400999 ved20 A May 25, 2022, 3:06 p.m. OK Java 8 TESTS 7 108 0 800
158337290 dev_14 A May 24, 2022, 9:25 p.m. OK Java 8 TESTS 7 108 0 800
158337613 CodingPhoenix A May 24, 2022, 9:35 p.m. OK Java 8 TESTS 7 109 0 800
158278589 ripity A May 24, 2022, 8:30 a.m. OK Kotlin 1.6 TESTS 7 186 512000 800
158381052 bkifhr9 A May 25, 2022, 11:05 a.m. OK MS C++ 2017 TESTS 7 15 1638400 800
158386429 diajutcum A May 25, 2022, 12:12 p.m. OK MS C++ 2017 TESTS 7 31 1638400 800
158385274 vjudge4 A May 25, 2022, 11:57 a.m. OK MS C++ 2017 TESTS 7 31 1638400 800
158394281 1002310165 A May 25, 2022, 1:44 p.m. OK MS C++ 2017 TESTS 7 46 0 800
158346671 mnrmustafa A May 25, 2022, 3:24 a.m. OK MS C++ 2017 TESTS 7 46 0 800
158310304 De_nis A May 24, 2022, 2:57 p.m. OK MS C++ 2017 TESTS 7 46 409600 800
158394309 1002310165 A May 25, 2022, 1:45 p.m. OK MS C++ 2017 TESTS 7 61 0 800
158511947 forgotmyhandle A May 26, 2022, 9:42 a.m. OK MS C++ 2017 TESTS 7 62 0 800
158394524 1002310165 A May 25, 2022, 1:47 p.m. OK MS C++ 2017 TESTS 7 62 0 800
158387502 Still_Theory A May 25, 2022, 12:25 p.m. OK MS C++ 2017 TESTS 7 62 0 800
158576004 chinesedfan A May 27, 2022, 3:01 a.m. OK Node.js TESTS 7 62 4300800 800
158511850 zkoong A May 26, 2022, 9:41 a.m. OK Node.js TESTS 7 78 4096000 800
158307419 Inspired A May 24, 2022, 2:25 p.m. OK Node.js TESTS 7 78 4812800 800
158286158 pawanrawat A May 24, 2022, 10:13 a.m. OK PHP TESTS 7 46 0 800
158317367 ambs_ A May 24, 2022, 4:14 p.m. OK PyPy 3 TESTS 7 140 4710400 800
158291768 sagarpandey7742 A May 24, 2022, 11:25 a.m. OK PyPy 3 TESTS 7 140 4915200 800
158390255 Chiho A May 25, 2022, 12:57 p.m. OK PyPy 3 TESTS 7 155 4096000 800
158341392 jscn A May 25, 2022, 12:22 a.m. OK PyPy 3 TESTS 7 156 3891200 800
158372997 risvnat A May 25, 2022, 9:48 a.m. OK PyPy 3 TESTS 7 186 5529600 800
158403082 Leokon500 A May 25, 2022, 3:28 p.m. OK PyPy 3 TESTS 7 187 5529600 800
158297396 alina.v.novoselova A May 24, 2022, 12:33 p.m. OK PyPy 3 TESTS 7 187 5939200 800
158289173 manohar2509 A May 24, 2022, 10:54 a.m. OK PyPy 3 TESTS 7 202 5529600 800
158523475 Sir_Ahmed_Imran A May 26, 2022, 11:57 a.m. OK PyPy 3 TESTS 7 202 6041600 800
158381621 hiardik45_exe A May 25, 2022, 11:12 a.m. OK PyPy 3 TESTS 7 202 6246400 800
158563987 nealzane A May 26, 2022, 8:06 p.m. OK PyPy 3-64 TESTS 7 77 4403200 800
158276667 tushar26427 A May 24, 2022, 8:04 a.m. OK PyPy 3-64 TESTS 7 93 4710400 800
158275766 only_for_kav_tripathi A May 24, 2022, 7:52 a.m. OK PyPy 3-64 TESTS 7 93 5939200 800
158352288 Marco_Lau A May 25, 2022, 5:27 a.m. OK PyPy 3-64 TESTS 7 108 4300800 800
158564627 zii.hrs A May 26, 2022, 8:21 p.m. OK PyPy 3-64 TESTS 7 124 6246400 800
158468516 MistaAsh A May 25, 2022, 8:09 p.m. OK PyPy 3-64 TESTS 7 124 7065600 800
158278393 asdsasd A May 24, 2022, 8:28 a.m. OK PyPy 3-64 TESTS 7 124 7065600 800
158267391 toam A May 24, 2022, 5:49 a.m. OK PyPy 3-64 TESTS 7 124 7168000 800
158307859 furmarie A May 24, 2022, 2:30 p.m. OK PyPy 3-64 TESTS 7 140 9011200 800
158351897 WookieWarlord A May 25, 2022, 5:21 a.m. OK PyPy 3-64 TESTS 7 170 9625600 800
158380269 thisisPrinceSingh A May 25, 2022, 10:54 a.m. OK Python 3 TESTS 7 46 0 800
158327600 1429_FowL A May 24, 2022, 6:16 p.m. OK Python 3 TESTS 7 46 0 800
158327239 lis7less A May 24, 2022, 6:11 p.m. OK Python 3 TESTS 7 46 0 800
158407640 gabriel.costa513 A May 25, 2022, 4:18 p.m. OK Python 3 TESTS 7 61 0 800
158397308 vamshikrishnavadluri02 A May 25, 2022, 2:22 p.m. OK Python 3 TESTS 7 61 0 800
158388243 Ice_Bear521 A May 25, 2022, 12:34 p.m. OK Python 3 TESTS 7 61 0 800
158354798 sahilwahi A May 25, 2022, 6:06 a.m. OK Python 3 TESTS 7 61 0 800
158353289 swarajp486 A May 25, 2022, 5:43 a.m. OK Python 3 TESTS 7 61 0 800
158312935 Colder A May 24, 2022, 3:25 p.m. OK Python 3 TESTS 7 61 0 800
158297536 Voldanys A May 24, 2022, 12:35 p.m. OK Python 3 TESTS 7 61 0 800
158274875 Spheniscine A May 24, 2022, 7:40 a.m. OK Rust 2021 TESTS 7 0 102400 800
158507979 O0oo0Oo0OO0O0 A May 26, 2022, 8:50 a.m. OK Rust 2021 TESTS 7 0 1024000 800
158459886 Death_on_2_Legs A May 25, 2022, 7:15 p.m. OK Rust 2021 TESTS 7 15 0 800
158352159 Russell_Emerine A May 25, 2022, 5:25 a.m. OK Rust 2021 TESTS 7 15 0 800
158334079 SlavaG A May 24, 2022, 8:03 p.m. OK Rust 2021 TESTS 7 31 0 800

remove filters

Back to search problems