Codeforces Round 814 (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
1719 Codeforces Round 814 (Div. 2) FINISHED False 7200 76519463 Aug. 16, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25751 ) A Chip Game PROGRAMMING games math

B'Burenka and Tonya are playing an old Buryat game with a chip on a board of n x m cells. At the beginning of the game, the chip is located in the lower left corner of the board. In one move, the player can move the chip to the right or up by any odd number of cells (but you cannot move the chip both to the right and up in one move). The one who cannot make a move loses. Burenka makes the first move, the players take turns. Burenka really wants to win the game, but she is too lazy to come up with a strategy, so you are invited to solve the difficult task of finding it. Name the winner of the game (it is believed that Burenka and Tonya are masters of playing with chips, so they always move in the optimal way). The first line contains one integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The following is a description of the input data sets. The only line of each test case contains two integers n and m ( 1 <= q n, m <= q 10^9 ) -- the dimensions of the game board. For each test case print a single line -- the name of the winner of the game ("Burenka" or "Tonya"). In the first case, Burenka has no move, so Tonya wins. In the second case, Burenka can move 3 cells to the right, after which Tony will not be able to make a move, which means that Burenka wins. In the third case, Burenka can move 5 squares to the right. Then we can say that we have a game on a board of 1 x 5 cells, and Tonya is the first player. In such game the second player wins, so in the original one Burenka will win. '...

Tutorials

Codeforces Round #814 (Div. 1, Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
168638698 arafamin A Aug. 17, 2022, 1:59 a.m. OK C# 8 TESTS 5 93 1740800
168638727 arafamin A Aug. 17, 2022, 1:59 a.m. OK C# 8 TESTS 5 93 1740800
168640392 arafamin A Aug. 17, 2022, 2:21 a.m. OK C# 8 TESTS 5 108 2662400
168638795 arafamin A Aug. 17, 2022, 2 a.m. OK C# 8 TESTS 5 109 1740800
168596150 singhkrishnajsr143 A Aug. 16, 2022, 4:27 p.m. OK C# 8 TESTS 5 109 1843200
168637934 Reisen_ A Aug. 17, 2022, 1:45 a.m. OK Clang++20 Diagnostics TESTS 5 31 0
168649809 charan_velaga A Aug. 17, 2022, 4:49 a.m. OK Clang++20 Diagnostics TESTS 5 140 0
168648744 niharika_bandila A Aug. 17, 2022, 4:33 a.m. OK Clang++20 Diagnostics TESTS 5 155 0
168650307 MSChandra28 A Aug. 17, 2022, 4:56 a.m. OK Clang++20 Diagnostics TESTS 5 155 0
168648912 janujavs A Aug. 17, 2022, 4:35 a.m. OK Clang++20 Diagnostics TESTS 5 171 0
168649016 poornesh_tata A Aug. 17, 2022, 4:37 a.m. OK Clang++20 Diagnostics TESTS 5 171 0
168651221 NenadDapic A Aug. 17, 2022, 5:09 a.m. OK FPC TESTS 5 46 0
168641610 chenly8128 A Aug. 17, 2022, 2:41 a.m. OK GNU C11 TESTS 5 15 0
168636640 noornabinoor1770 A Aug. 17, 2022, 1:20 a.m. OK GNU C11 TESTS 5 46 0
168618090 Arihant.001 A Aug. 16, 2022, 7:13 p.m. OK GNU C11 TESTS 5 46 0
168628949 Mynoddin A Aug. 16, 2022, 9:55 p.m. OK GNU C11 TESTS 5 46 0
168632159 iffatul_anon A Aug. 16, 2022, 11:28 p.m. OK GNU C11 TESTS 5 46 0
168635861 noornabinoor1770 A Aug. 17, 2022, 1:05 a.m. OK GNU C11 TESTS 5 46 0
168608328 Aahad810 A Aug. 16, 2022, 5:52 p.m. OK GNU C11 TESTS 5 46 0
168640278 evil_king A Aug. 17, 2022, 2:19 a.m. OK GNU C11 TESTS 5 46 0
168643932 Dios314 A Aug. 17, 2022, 3:17 a.m. OK GNU C11 TESTS 5 46 0
168646382 NguyenQuangKhai A Aug. 17, 2022, 3:56 a.m. OK GNU C11 TESTS 5 46 0
168636897 moonlight1639 A Aug. 17, 2022, 1:26 a.m. OK GNU C++14 TESTS 5 0 0
168651719 TimmyL A Aug. 17, 2022, 5:15 a.m. OK GNU C++14 TESTS 5 0 0
168640181 alfred2917 A Aug. 17, 2022, 2:18 a.m. OK GNU C++14 TESTS 5 0 0
168651581 akshatjai258 A Aug. 17, 2022, 5:14 a.m. OK GNU C++14 TESTS 5 15 0
168652511 wanglianda A Aug. 17, 2022, 5:27 a.m. OK GNU C++14 TESTS 5 15 0
168652556 DatHoangs A Aug. 17, 2022, 5:27 a.m. OK GNU C++14 TESTS 5 15 0
168652583 wanglianda A Aug. 17, 2022, 5:28 a.m. OK GNU C++14 TESTS 5 15 0
168652725 42-the_answer A Aug. 17, 2022, 5:30 a.m. OK GNU C++14 TESTS 5 15 0
168652924 RifatXia A Aug. 17, 2022, 5:32 a.m. OK GNU C++14 TESTS 5 15 0
168653606 hardy_9795 A Aug. 17, 2022, 5:41 a.m. OK GNU C++14 TESTS 5 15 0
168610311 RFSS_ A Aug. 16, 2022, 6:04 p.m. OK GNU C++17 TESTS 5 0 0
168629586 Pixel-_ A Aug. 16, 2022, 10:10 p.m. OK GNU C++17 TESTS 5 0 0
168655086 bhandarisourabhrahul A Aug. 17, 2022, 5:58 a.m. OK GNU C++17 TESTS 5 15 0
168651985 harshalverma4 A Aug. 17, 2022, 5:19 a.m. OK GNU C++17 TESTS 5 15 0
168651859 arijit0007 A Aug. 17, 2022, 5:17 a.m. OK GNU C++17 TESTS 5 15 0
168651628 Sfurvdio A Aug. 17, 2022, 5:14 a.m. OK GNU C++17 TESTS 5 15 0
168651494 AnwarSayeed A Aug. 17, 2022, 5:12 a.m. OK GNU C++17 TESTS 5 15 0
168651265 Davion A Aug. 17, 2022, 5:09 a.m. OK GNU C++17 TESTS 5 15 0
168651129 chakradhar094 A Aug. 17, 2022, 5:07 a.m. OK GNU C++17 TESTS 5 15 0
168653553 shinjo A Aug. 17, 2022, 5:40 a.m. OK GNU C++17 TESTS 5 15 0
168642596 lizhiqing A Aug. 17, 2022, 2:57 a.m. OK GNU C++17 (64) TESTS 5 15 0
168652792 No-Rain A Aug. 17, 2022, 5:31 a.m. OK GNU C++17 (64) TESTS 5 15 0
168650302 iamone A Aug. 17, 2022, 4:56 a.m. OK GNU C++17 (64) TESTS 5 15 0
168648860 OTTFF A Aug. 17, 2022, 4:34 a.m. OK GNU C++17 (64) TESTS 5 15 0
168648166 Chime A Aug. 17, 2022, 4:24 a.m. OK GNU C++17 (64) TESTS 5 15 0
168645943 iprom A Aug. 17, 2022, 3:49 a.m. OK GNU C++17 (64) TESTS 5 15 0
168645239 MOHIR_MBSTU A Aug. 17, 2022, 3:38 a.m. OK GNU C++17 (64) TESTS 5 15 0
168644655 BPM37092 A Aug. 17, 2022, 3:28 a.m. OK GNU C++17 (64) TESTS 5 15 0
168644307 Rick_GT A Aug. 17, 2022, 3:23 a.m. OK GNU C++17 (64) TESTS 5 15 0
168642524 xhgua A Aug. 17, 2022, 2:56 a.m. OK GNU C++17 (64) TESTS 5 15 0
168640577 white_knowledge A Aug. 17, 2022, 2:24 a.m. OK GNU C++20 (64) TESTS 5 0 0
168641082 sachinkumarsharma4567 A Aug. 17, 2022, 2:33 a.m. OK GNU C++20 (64) TESTS 5 0 0
168642886 dedsec_29 A Aug. 17, 2022, 3:02 a.m. OK GNU C++20 (64) TESTS 5 0 0
168645419 NIGHTMARE10123 A Aug. 17, 2022, 3:41 a.m. OK GNU C++20 (64) TESTS 5 0 0
168645423 lOthBroK286 A Aug. 17, 2022, 3:41 a.m. OK GNU C++20 (64) TESTS 5 0 0
168645434 sjNxksbzj A Aug. 17, 2022, 3:41 a.m. OK GNU C++20 (64) TESTS 5 0 0
168645440 Shadik286 A Aug. 17, 2022, 3:41 a.m. OK GNU C++20 (64) TESTS 5 0 0
168650746 99199t A Aug. 17, 2022, 5:02 a.m. OK GNU C++20 (64) TESTS 5 0 0
168652065 yxqd A Aug. 17, 2022, 5:20 a.m. OK GNU C++20 (64) TESTS 5 0 0
168652757 i_emerge16 A Aug. 17, 2022, 5:30 a.m. OK GNU C++20 (64) TESTS 5 0 0
168638679 Longgggggggg A Aug. 17, 2022, 1:58 a.m. OK Java 11 TESTS 5 140 0
168648867 sahilgupta2201 A Aug. 17, 2022, 4:34 a.m. OK Java 11 TESTS 5 156 0
168611920 princeayush04 A Aug. 16, 2022, 6:16 p.m. OK Java 11 TESTS 5 171 0
168635475 jhariharan99official A Aug. 17, 2022, 12:55 a.m. OK Java 11 TESTS 5 171 0
168617804 satyaa_78 A Aug. 16, 2022, 7:10 p.m. OK Java 11 TESTS 5 171 0
168650586 iamsoumik A Aug. 17, 2022, 5 a.m. OK Java 11 TESTS 5 187 0
168633605 aditya2024 A Aug. 17, 2022, 12:09 a.m. OK Java 11 TESTS 5 202 0
168653595 Sahiladhikari11 A Aug. 17, 2022, 5:40 a.m. OK Java 11 TESTS 5 233 0
168642865 Gladiator16 A Aug. 17, 2022, 3:01 a.m. OK Java 11 TESTS 5 249 0
168614496 Subhankar752 A Aug. 16, 2022, 6:37 p.m. OK Java 11 TESTS 5 249 0
168614029 sventeen1 A Aug. 16, 2022, 6:33 p.m. OK Java 17 TESTS 5 249 921600
168613494 sventeen1 A Aug. 16, 2022, 6:28 p.m. OK Java 17 TESTS 5 265 409600
168607486 panditsamik A Aug. 16, 2022, 5:46 p.m. OK Java 17 TESTS 5 296 102400
168650340 santhoshitummala A Aug. 17, 2022, 4:56 a.m. OK Java 17 TESTS 5 311 0
168646602 rbaliwal00 A Aug. 17, 2022, 3:59 a.m. OK Java 17 TESTS 5 312 204800
168607372 panditsamik A Aug. 16, 2022, 5:46 p.m. OK Java 17 TESTS 5 342 512000
168641713 Sussykin A Aug. 17, 2022, 2:43 a.m. OK Java 8 TESTS 5 93 0
168646046 ved20 A Aug. 17, 2022, 3:51 a.m. OK Java 8 TESTS 5 108 0
168618010 dogranmol A Aug. 16, 2022, 7:12 p.m. OK Java 8 TESTS 5 108 0
168608432 ahmedTarek28 A Aug. 16, 2022, 5:52 p.m. OK Java 8 TESTS 5 108 0
168641902 glenjp123 A Aug. 17, 2022, 2:46 a.m. OK Java 8 TESTS 5 109 0
168632678 meinego A Aug. 16, 2022, 11:43 p.m. OK Java 8 TESTS 5 124 0
168641058 swarup_312 A Aug. 17, 2022, 2:32 a.m. OK Java 8 TESTS 5 140 0
168647936 Ariful3671 A Aug. 17, 2022, 4:21 a.m. OK Java 8 TESTS 5 155 0
168644639 Juhaied_nabid A Aug. 17, 2022, 3:28 a.m. OK Java 8 TESTS 5 170 0
168644593 NabidHossen A Aug. 17, 2022, 3:27 a.m. OK Java 8 TESTS 5 170 0
168605351 _gyunghoe_ A Aug. 16, 2022, 5:37 p.m. OK Kotlin 1.6 TESTS 5 233 0
168642004 yhnoh8623 A Aug. 17, 2022, 2:48 a.m. OK MS C++ 2017 TESTS 5 31 0
168651133 202003021019 A Aug. 17, 2022, 5:07 a.m. OK MS C++ 2017 TESTS 5 31 409600
168648661 aparannji03 A Aug. 17, 2022, 4:31 a.m. OK MS C++ 2017 TESTS 5 46 0
168648506 sweety_grace A Aug. 17, 2022, 4:29 a.m. OK MS C++ 2017 TESTS 5 46 0
168641603 wjfsdbd A Aug. 17, 2022, 2:41 a.m. OK MS C++ 2017 TESTS 5 46 0
168635063 FUSHENGSHULAI A Aug. 17, 2022, 12:46 a.m. OK MS C++ 2017 TESTS 5 46 0
168610176 HarshSoni1048 A Aug. 16, 2022, 6:03 p.m. OK MS C++ 2017 TESTS 5 46 0
168649253 abhinaya_marisetti A Aug. 17, 2022, 4:41 a.m. OK MS C++ 2017 TESTS 5 61 0
168609824 saikat_moi A Aug. 16, 2022, 6:01 p.m. OK MS C++ 2017 TESTS 5 61 0
168635512 Agateth A Aug. 17, 2022, 12:56 a.m. OK MS C++ 2017 TESTS 5 62 0
168630546 XYShaoKang A Aug. 16, 2022, 10:33 p.m. OK Node.js TESTS 5 93 6041600
168625901 WalrusRamen21 A Aug. 16, 2022, 8:58 p.m. OK PHP TESTS 5 61 0
168605788 1_2_3_4_5_9 A Aug. 16, 2022, 5:39 p.m. OK PyPy 2 TESTS 5 124 6860800
168614567 YashNandwana A Aug. 16, 2022, 6:37 p.m. OK PyPy 3 TESTS 5 109 4812800
168646849 church_turing_thesis A Aug. 17, 2022, 4:04 a.m. OK PyPy 3 TESTS 5 139 4812800
168607381 grawlixes A Aug. 16, 2022, 5:46 p.m. OK PyPy 3 TESTS 5 171 6656000
168616580 pushsin089 A Aug. 16, 2022, 6:56 p.m. OK PyPy 3 TESTS 5 264 6144000
168636474 devveZE A Aug. 17, 2022, 1:17 a.m. OK PyPy 3 TESTS 5 280 5529600
168605311 aayush_chhabra A Aug. 16, 2022, 5:37 p.m. OK PyPy 3 TESTS 5 280 5529600
168632519 vishu.ut A Aug. 16, 2022, 11:39 p.m. OK PyPy 3 TESTS 5 280 6041600
168614470 fms00 A Aug. 16, 2022, 6:36 p.m. OK PyPy 3 TESTS 5 280 6041600
168624149 Feet_McYeet A Aug. 16, 2022, 8:31 p.m. OK PyPy 3 TESTS 5 295 5632000
168612820 shehebe A Aug. 16, 2022, 6:23 p.m. OK PyPy 3 TESTS 5 296 8499200
168633182 CRY_ A Aug. 16, 2022, 11:57 p.m. OK PyPy 3-64 TESTS 5 77 5836800
168634712 ikzzi A Aug. 17, 2022, 12:37 a.m. OK PyPy 3-64 TESTS 5 77 6451200
168652607 hsh8086 A Aug. 17, 2022, 5:28 a.m. OK PyPy 3-64 TESTS 5 77 6656000
168654846 Yansou A Aug. 17, 2022, 5:55 a.m. OK PyPy 3-64 TESTS 5 93 6246400
168618421 riroan A Aug. 16, 2022, 7:17 p.m. OK PyPy 3-64 TESTS 5 93 6348800
168642153 Youarenotgood A Aug. 17, 2022, 2:50 a.m. OK PyPy 3-64 TESTS 5 93 6553600
168626343 ASawe2.6Main A Aug. 16, 2022, 9:06 p.m. OK PyPy 3-64 TESTS 5 108 6553600
168608874 Varad2002 A Aug. 16, 2022, 5:55 p.m. OK PyPy 3-64 TESTS 5 108 9523200
168647712 zhenfisher A Aug. 17, 2022, 4:18 a.m. OK PyPy 3-64 TESTS 5 109 6144000
168605934 hash1023 A Aug. 16, 2022, 5:39 p.m. OK PyPy 3-64 TESTS 5 140 7270400
168652039 OLOGY A Aug. 17, 2022, 5:20 a.m. OK Python 2 TESTS 5 62 819200
168653539 Ahmed.I_SundarSTEM A Aug. 17, 2022, 5:40 a.m. OK Python 3 TESTS 5 61 307200
168630677 Hunt40 A Aug. 16, 2022, 10:36 p.m. OK Python 3 TESTS 5 62 204800
168619047 multi21 A Aug. 16, 2022, 7:24 p.m. OK Python 3 TESTS 5 62 307200
168624594 rostoki A Aug. 16, 2022, 8:38 p.m. OK Python 3 TESTS 5 62 512000
168609251 eugalt A Aug. 16, 2022, 5:57 p.m. OK Python 3 TESTS 5 77 307200
168650303 akshit2343 A Aug. 17, 2022, 4:56 a.m. OK Python 3 TESTS 5 109 0
168619353 shivambhagat02 A Aug. 16, 2022, 7:27 p.m. OK Python 3 TESTS 5 109 0
168613796 gargeesuresh A Aug. 16, 2022, 6:31 p.m. OK Python 3 TESTS 5 109 0
168642501 williamcz A Aug. 17, 2022, 2:56 a.m. OK Python 3 TESTS 5 124 0
168642332 Arkp A Aug. 17, 2022, 2:53 a.m. OK Python 3 TESTS 5 124 0

remove filters

Back to search problems