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 |
---|---|---|---|---|---|---|
1842 | CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) | FINISHED | False | 10800 | 49564463 | June 24, 2023, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 19999 ) | A | Tenzing and Tsondu | PROGRAMMING | games math |
B'Tsondu and Tenzing are playing a card game. Tsondu has n monsters with ability values a_1, a_2, ldots, a_n while Tenzing has m monsters with ability values b_1, b_2, ldots, b_m . Tsondu and Tenzing take turns making moves, with Tsondu going first. In each move, the current player chooses two monsters: one on their side and one on the other side. Then, these monsters will fight each other. Suppose the ability values for the chosen monsters are x and y respectively, then the ability values of the monsters will become x-y and y-x respectively. If the ability value of any monster is smaller than or equal to 0 , the monster dies. The game ends when at least one player has no monsters left alive. The winner is the player with at least one monster left alive. If both players have no monsters left alive, the game ends in a draw. Find the result of the game when both players play optimally. Each test contains multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 2 cdot 10^3 ) -- the number of test cases. The description of test cases follows. The first line of each test case contains two integers n and m ( 1 <= q n,m <= q 50 ) -- the number of monsters Tsondu and Tenzing have respectively. The second line of each test case contains n integers a_1,a_2, ldots,a_n (1 <= q a_i <= q 10^9 ) -- the ability values of Tsondu 's monsters. The third line of each test case contains m integers b_1,b_2, ldots,b_m (1 <= q b_i <= q 10^9 ) -- the ability values of Tenzing 's monsters. For each test case, output "Tsondu" if Tsondu wins, "Tenzing" if Tenzing wins, and "Draw" if the game ends in a draw. (Output without quotes.) Note that the output is case-sensitive. For example, if the answer is "Tsondu", the outputs "tsondu", "TSONDU", and "tSonDu" will all be recognized as incorrect outputs. Consider the first test case. It can '... |
CodeTON Round 5 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
210956733 | hhsaffar | A | June 24, 2023, 6:19 p.m. | OK | C# 10 | TESTS | 8 | 77 | 2969600 | ||
210966735 | Aiden121pearce | A | June 24, 2023, 8:14 p.m. | OK | C# 10 | TESTS | 8 | 77 | 7270400 | ||
210979812 | lAMaLOSER | A | June 25, 2023, 12:57 a.m. | OK | C# 10 | TESTS | 8 | 93 | 3276800 | ||
210973950 | bluemegane | A | June 24, 2023, 10:16 p.m. | OK | C# 8 | TESTS | 8 | 109 | 3174400 | ||
210955253 | dreamtolearn | A | June 24, 2023, 6:08 p.m. | OK | Clang++17 Diagnostics | TESTS | 8 | 982 | 0 | ||
210962571 | Abhisekk | A | June 24, 2023, 7:19 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210984247 | shafam28 | A | June 25, 2023, 2:56 a.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210954625 | neurofan | A | June 24, 2023, 6:04 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210957361 | wasim_N_akram | A | June 24, 2023, 6:24 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210957457 | Wazim6310 | A | June 24, 2023, 6:25 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210955842 | prithbi07 | A | June 24, 2023, 6:12 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210958738 | newaz234 | A | June 24, 2023, 6:37 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 0 | ||
210950287 | Exynos21 | A | June 24, 2023, 5:04 p.m. | OK | GNU C11 | TESTS | 8 | 61 | 0 | ||
210936799 | Shadat | A | June 24, 2023, 4:13 p.m. | OK | GNU C11 | TESTS | 8 | 61 | 0 | ||
210987764 | parvezahmed404 | A | June 25, 2023, 4:17 a.m. | OK | GNU C11 | TESTS | 8 | 62 | 0 | ||
210977755 | Sol1 | A | June 24, 2023, 11:57 p.m. | OK | GNU C++14 | TESTS | 8 | 15 | 2150400 | ||
210941537 | pengyule | A | June 24, 2023, 4:30 p.m. | OK | GNU C++14 | TESTS | 8 | 31 | 5836800 | ||
210983909 | Imanka | A | June 25, 2023, 2:47 a.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210983472 | phannguyenquocbao | A | June 25, 2023, 2:36 a.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210978729 | FatOldEight | A | June 25, 2023, 12:25 a.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210948723 | Drice | A | June 24, 2023, 4:58 p.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210961972 | chandler1837 | A | June 24, 2023, 7:12 p.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210946293 | navneeth666 | A | June 24, 2023, 4:49 p.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210989371 | zltzlt | A | June 25, 2023, 4:52 a.m. | OK | GNU C++14 | TESTS | 8 | 46 | 0 | ||
210962929 | ng_3113 | A | June 24, 2023, 7:24 p.m. | OK | GNU C++14 | TESTS | 8 | 46 | 102400 | ||
210992212 | khushbul10 | A | June 25, 2023, 5:44 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210987415 | Sterryn | A | June 25, 2023, 4:09 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210987925 | Tunggg | A | June 25, 2023, 4:20 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210988898 | dlwc | A | June 25, 2023, 4:41 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210981101 | niqiqi | A | June 25, 2023, 1:33 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210982087 | vinren | A | June 25, 2023, 2 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210985519 | DR_STRANGE001 | A | June 25, 2023, 3:27 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210985878 | hiteshmaurya | A | June 25, 2023, 3:35 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210985894 | Kanta_70 | A | June 25, 2023, 3:35 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210986948 | smitdoshi_123 | A | June 25, 2023, 4 a.m. | OK | GNU C++17 | TESTS | 8 | 46 | 0 | ||
210950197 | LOKNATH7 | A | June 24, 2023, 5:03 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 31 | 0 | ||
210971876 | luckmaster | A | June 24, 2023, 9:33 p.m. | OK | GNU C++17 (64) | TESTS | 8 | 31 | 0 | ||
210984556 | atomworkplace1234 | A | June 25, 2023, 3:02 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 31 | 102400 | ||
210985147 | newbie333 | A | June 25, 2023, 3:18 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210989580 | stop | A | June 25, 2023, 4:56 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210988094 | The5threich | A | June 25, 2023, 4:24 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210985757 | Deiaa_Super_Hellcat | A | June 25, 2023, 3:32 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210985224 | rakib2624 | A | June 25, 2023, 3:20 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210982771 | Mountain_pig | A | June 25, 2023, 2:18 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210982224 | Mountain_pig | A | June 25, 2023, 2:04 a.m. | OK | GNU C++17 (64) | TESTS | 8 | 46 | 0 | ||
210954066 | MishkatIT | A | June 24, 2023, 6 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 15 | 0 | ||
210961498 | kareem_Bizreh | A | June 24, 2023, 7:07 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 15 | 0 | ||
210965222 | cot-in | A | June 24, 2023, 7:51 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 15 | 0 | ||
210961157 | megaminion | A | June 24, 2023, 7:03 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210970735 | Andwerp | A | June 24, 2023, 9:14 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210985436 | AdiletAdilet | A | June 25, 2023, 3:25 a.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210990900 | thequeensgambit | A | June 25, 2023, 5:20 a.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210945708 | majnumiah1588 | A | June 24, 2023, 4:46 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210946091 | mahadi2004 | A | June 24, 2023, 4:48 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210953694 | outlast_NATE | A | June 24, 2023, 5:58 p.m. | OK | GNU C++20 (64) | TESTS | 8 | 30 | 0 | ||
210935135 | Yassin.Chaddad | A | June 24, 2023, 4:08 p.m. | OK | Go | TESTS | 8 | 46 | 4403200 | ||
210978133 | MrFunnySage | A | June 25, 2023, 12:08 a.m. | OK | Haskell | TESTS | 8 | 499 | 0 | ||
210960596 | vijender_8601 | A | June 24, 2023, 6:57 p.m. | OK | Java 11 | TESTS | 8 | 202 | 0 | ||
210970435 | sunm0673 | A | June 24, 2023, 9:08 p.m. | OK | Java 11 | TESTS | 8 | 327 | 0 | ||
210956863 | ttannishh | A | June 24, 2023, 6:20 p.m. | OK | Java 11 | TESTS | 8 | 327 | 0 | ||
210982437 | archieagarwal | A | June 25, 2023, 2:10 a.m. | OK | Java 11 | TESTS | 8 | 436 | 0 | ||
210966134 | -0.1 | A | June 24, 2023, 8:05 p.m. | OK | Java 11 | TESTS | 8 | 451 | 0 | ||
210965709 | devansh_123 | A | June 24, 2023, 7:58 p.m. | OK | Java 11 | TESTS | 8 | 467 | 0 | ||
210961066 | April2021 | A | June 24, 2023, 7:02 p.m. | OK | Java 11 | TESTS | 8 | 482 | 0 | ||
210959814 | aman_0802 | A | June 24, 2023, 6:48 p.m. | OK | Java 11 | TESTS | 8 | 483 | 0 | ||
210962186 | kaNna07 | A | June 24, 2023, 7:14 p.m. | OK | Java 11 | TESTS | 8 | 498 | 0 | ||
210949911 | sakshi.jha1019 | A | June 24, 2023, 5:03 p.m. | OK | Java 11 | TESTS | 8 | 514 | 0 | ||
210956480 | aishwarykesarwani | A | June 24, 2023, 6:17 p.m. | OK | Java 17 | TESTS | 8 | 202 | 307200 | ||
210935455 | MagentaCobra | A | June 24, 2023, 4:09 p.m. | OK | Java 17 | TESTS | 8 | 233 | 204800 | ||
210957548 | d2s2 | A | June 24, 2023, 6:25 p.m. | OK | Java 17 | TESTS | 8 | 233 | 409600 | ||
210936098 | Praneeth042 | A | June 24, 2023, 4:11 p.m. | OK | Java 17 | TESTS | 8 | 233 | 512000 | ||
210954361 | SuprHUlk | A | June 24, 2023, 6:02 p.m. | OK | Java 17 | TESTS | 8 | 249 | 307200 | ||
210968874 | woodyiiiiiii | A | June 24, 2023, 8:44 p.m. | OK | Java 17 | TESTS | 8 | 265 | 102400 | ||
210987562 | sanath.r | A | June 25, 2023, 4:12 a.m. | OK | Java 17 | TESTS | 8 | 265 | 819200 | ||
210981983 | eviebot | A | June 25, 2023, 1:57 a.m. | OK | Java 17 | TESTS | 8 | 311 | 409600 | ||
210985555 | tushar_2658 | A | June 25, 2023, 3:28 a.m. | OK | Java 17 | TESTS | 8 | 436 | 1126400 | ||
210955115 | AndreiBiruk | A | June 24, 2023, 6:07 p.m. | OK | Java 17 | TESTS | 8 | 467 | 512000 | ||
210968369 | 1-1-1 | A | June 24, 2023, 8:37 p.m. | OK | Java 8 | TESTS | 8 | 124 | 0 | ||
210983467 | Sanat04 | A | June 25, 2023, 2:36 a.m. | OK | Java 8 | TESTS | 8 | 139 | 0 | ||
210957340 | Nagendravarma | A | June 24, 2023, 6:24 p.m. | OK | Java 8 | TESTS | 8 | 155 | 0 | ||
210955215 | Ask3421 | A | June 24, 2023, 6:08 p.m. | OK | Java 8 | TESTS | 8 | 171 | 0 | ||
210954504 | Deependra_coder | A | June 24, 2023, 6:03 p.m. | OK | Java 8 | TESTS | 8 | 171 | 0 | ||
210958592 | Sumitsingh7 | A | June 24, 2023, 6:35 p.m. | OK | Java 8 | TESTS | 8 | 202 | 5836800 | ||
210965748 | regex9 | A | June 24, 2023, 7:59 p.m. | OK | Java 8 | TESTS | 8 | 373 | 0 | ||
210965292 | mady_ | A | June 24, 2023, 7:52 p.m. | OK | Java 8 | TESTS | 8 | 373 | 0 | ||
210963347 | SecondThreadUltimate | A | June 24, 2023, 7:29 p.m. | OK | Java 8 | TESTS | 8 | 374 | 0 | ||
210960309 | pcm_op | A | June 24, 2023, 6:53 p.m. | OK | Java 8 | TESTS | 8 | 374 | 0 | ||
210977889 | M7md_ | A | June 25, 2023, 12:02 a.m. | OK | Kotlin 1.7 | TESTS | 8 | 701 | 67891200 | ||
210967543 | skimono | A | June 24, 2023, 8:25 p.m. | OK | MS C++ 2017 | TESTS | 8 | 171 | 0 | ||
210941912 | CMRIT24_20R01A05H3 | A | June 24, 2023, 4:31 p.m. | OK | MS C++ 2017 | TESTS | 8 | 171 | 0 | ||
210941830 | Anil_Sailla | A | June 24, 2023, 4:31 p.m. | OK | MS C++ 2017 | TESTS | 8 | 171 | 0 | ||
210965380 | CommonMan22 | A | June 24, 2023, 7:54 p.m. | OK | MS C++ 2017 | TESTS | 8 | 187 | 0 | ||
210954962 | pooja.4 | A | June 24, 2023, 6:06 p.m. | OK | MS C++ 2017 | TESTS | 8 | 202 | 0 | ||
210954846 | pooja.4 | A | June 24, 2023, 6:06 p.m. | OK | MS C++ 2017 | TESTS | 8 | 218 | 0 | ||
210944717 | pooja.4 | A | June 24, 2023, 4:42 p.m. | OK | MS C++ 2017 | TESTS | 8 | 218 | 0 | ||
210967385 | skimono | A | June 24, 2023, 8:23 p.m. | OK | MS C++ 2017 | TESTS | 8 | 234 | 0 | ||
210972444 | varrick | A | June 24, 2023, 9:44 p.m. | OK | Ocaml | TESTS | 8 | 62 | 204800 | ||
210957257 | brokie | A | June 24, 2023, 6:23 p.m. | OK | PyPy 3 | TESTS | 8 | 186 | 9318400 | ||
210964597 | AbdulRahmanLuai | A | June 24, 2023, 7:44 p.m. | OK | PyPy 3 | TESTS | 8 | 265 | 7884800 | ||
210945211 | Xiimoon | A | June 24, 2023, 4:44 p.m. | OK | PyPy 3 | TESTS | 8 | 311 | 13107200 | ||
210978755 | WalrusRamen21 | A | June 25, 2023, 12:26 a.m. | OK | PyPy 3 | TESTS | 8 | 373 | 9625600 | ||
210968027 | elu00 | A | June 24, 2023, 8:32 p.m. | OK | PyPy 3 | TESTS | 8 | 373 | 9625600 | ||
210967629 | 0xROoT | A | June 24, 2023, 8:26 p.m. | OK | PyPy 3 | TESTS | 8 | 374 | 15667200 | ||
210944914 | noobmaster2002 | A | June 24, 2023, 4:43 p.m. | OK | PyPy 3 | TESTS | 8 | 405 | 9420800 | ||
210954206 | Victor3333 | A | June 24, 2023, 6:01 p.m. | OK | PyPy 3 | TESTS | 8 | 405 | 9728000 | ||
210963514 | prakeerth_7 | A | June 24, 2023, 7:31 p.m. | OK | PyPy 3 | TESTS | 8 | 452 | 9728000 | ||
210982546 | momenelmesady4803 | A | June 25, 2023, 2:12 a.m. | OK | PyPy 3 | TESTS | 8 | 499 | 10444800 | ||
210961557 | Kladrr | A | June 24, 2023, 7:07 p.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 6451200 | ||
210961776 | solitaryReaper | A | June 24, 2023, 7:10 p.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 7577600 | ||
210957334 | reijnnn | A | June 24, 2023, 6:23 p.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 8294400 | ||
210990510 | aniketabhiraj2004 | A | June 25, 2023, 5:13 a.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 8499200 | ||
210955473 | vedantmishra69 | A | June 24, 2023, 6:10 p.m. | OK | PyPy 3-64 | TESTS | 8 | 139 | 7680000 | ||
210985158 | Youarenotgood | A | June 25, 2023, 3:18 a.m. | OK | PyPy 3-64 | TESTS | 8 | 139 | 8089600 | ||
210955199 | Erekemingoi | A | June 24, 2023, 6:08 p.m. | OK | PyPy 3-64 | TESTS | 8 | 139 | 8601600 | ||
210958348 | flexr | A | June 24, 2023, 6:33 p.m. | OK | PyPy 3-64 | TESTS | 8 | 155 | 9625600 | ||
210973068 | ItsDev | A | June 24, 2023, 9:58 p.m. | OK | PyPy 3-64 | TESTS | 8 | 155 | 9932800 | ||
210972647 | 0xROoT | A | June 24, 2023, 9:48 p.m. | OK | PyPy 3-64 | TESTS | 8 | 155 | 10854400 | ||
210987959 | giriraj_parik | A | June 25, 2023, 4:20 a.m. | OK | Python 3 | TESTS | 8 | 77 | 409600 | ||
210984077 | ProCoder12 | A | June 25, 2023, 2:52 a.m. | OK | Python 3 | TESTS | 8 | 78 | 409600 | ||
210945951 | seaspace | A | June 24, 2023, 4:47 p.m. | OK | Python 3 | TESTS | 8 | 78 | 409600 | ||
210936513 | Leo25Darklight | A | June 24, 2023, 4:12 p.m. | OK | Python 3 | TESTS | 8 | 78 | 409600 | ||
210989483 | honamido | A | June 25, 2023, 4:54 a.m. | OK | Python 3 | TESTS | 8 | 93 | 409600 | ||
210984688 | parthosutradhor | A | June 25, 2023, 3:06 a.m. | OK | Python 3 | TESTS | 8 | 93 | 409600 | ||
210975598 | jinaypanchal98 | A | June 24, 2023, 10:56 p.m. | OK | Python 3 | TESTS | 8 | 93 | 409600 | ||
210961370 | turarrbek_ | A | June 24, 2023, 7:05 p.m. | OK | Python 3 | TESTS | 8 | 93 | 409600 | ||
210961236 | Shadow23_ | A | June 24, 2023, 7:04 p.m. | OK | Python 3 | TESTS | 8 | 93 | 409600 | ||
210958736 | Asadbek06 | A | June 24, 2023, 6:37 p.m. | OK | Python 3 | TESTS | 8 | 93 | 409600 | ||
210980329 | YummyPie | A | June 25, 2023, 1:11 a.m. | OK | Rust 2021 | TESTS | 8 | 15 | 0 |
Back to search problems