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 |
---|---|---|---|---|---|---|
1728 | Educational Codeforces Round 135 (Rated for Div. 2) | FINISHED | False | 7200 | 69175499 | Sept. 8, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 24713 ) | A | Colored Balls: Revisited | PROGRAMMING | greedy implementation sortings |
B"The title is a reference to the very first Educational Round from our writers team, Educational Round 18. There is a bag, containing colored balls. There are n different colors of balls, numbered from 1 to n . There are mathit{cnt}_i balls of color i in the bag. The total amount of balls in the bag is odd (e. xe2 x80 x89g. mathit{cnt}_1 + mathit{cnt}_2 + ... + mathit{cnt}_n is odd). In one move, you can choose two balls with different colors and take them out of the bag. At some point, all the remaining balls in the bag will have the same color. That's when you can't make moves anymore. Find any possible color of the remaining balls. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of testcases. The first line of each testcase contains a single integer n ( 1 <= n <= 20 ) -- the number of colors. The second line contains n integers mathit{cnt}_1, mathit{cnt}_2, ... , mathit{cnt}_n ( 1 <= mathit{cnt}_i <= 100 ) -- the amount of balls of each color in the bag. The total amount of balls in the bag is odd (e. xe2 x80 x89g. mathit{cnt}_1 + mathit{cnt}_2 + ... + mathit{cnt}_n is odd). For each testcase, print a single integer -- any possible color of the remaining balls, after you made some moves and can't make moves anymore. In the first testcase, your first and only move can be one of the following: After the move, exactly one ball will remain. Its color can be 3, 2 or 1 depending on the move. In the second testcase, you can't make moves at all -- there is only color of balls already. This color is 1 . In the third testcase, you can keep removing one ball of color 1 and one ball of color 2 until there are no more balls of color 1 . At the end, three balls of color 2 remain. "... |
106805 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
171444958 | N_joy | A | Sept. 8, 2022, 8:07 p.m. | OK | C# 10 | TESTS | 2 | 61 | 1024000 | ||
171467222 | string_abhi12 | A | Sept. 9, 2022, 4:57 a.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 77 | 0 | ||
171432234 | mr.haanji | A | Sept. 8, 2022, 5:28 p.m. | OK | Clang++17 Diagnostics | TESTS | 2 | 78 | 0 | ||
171435996 | h2006 | A | Sept. 8, 2022, 6:04 p.m. | OK | Clang++17 Diagnostics | TESTS | 2 | 93 | 0 | ||
171427483 | topmind | A | Sept. 8, 2022, 4:51 p.m. | OK | Clang++20 Diagnostics | TESTS | 2 | 15 | 0 | ||
171459732 | Chanachur | A | Sept. 9, 2022, 2:17 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 62 | 0 | ||
171461996 | sxwll08 | A | Sept. 9, 2022, 3:09 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 78 | 0 | ||
171432973 | SP2003 | A | Sept. 8, 2022, 5:35 p.m. | OK | GNU C11 | TESTS | 2 | 0 | 0 | ||
171421461 | Harshit617 | A | Sept. 8, 2022, 4:30 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171469452 | Tawfica_Bhuiyan | A | Sept. 9, 2022, 5:33 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
171424116 | drax12 | A | Sept. 8, 2022, 4:34 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171426017 | shark17 | A | Sept. 8, 2022, 4:43 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171429167 | tripurari7282 | A | Sept. 8, 2022, 5:02 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171429542 | Daddy_is_here | A | Sept. 8, 2022, 5:05 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171431490 | Zabin_Hossain | A | Sept. 8, 2022, 5:21 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171433604 | DarkWillow | A | Sept. 8, 2022, 5:41 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
171464150 | kingerror | A | Sept. 9, 2022, 3:54 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
171459914 | phivt1234 | A | Sept. 9, 2022, 2:21 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171470055 | Deft_t | A | Sept. 9, 2022, 5:43 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171469280 | adx2187 | A | Sept. 9, 2022, 5:30 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171468801 | Leonador | A | Sept. 9, 2022, 5:23 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171467968 | Noob2310 | A | Sept. 9, 2022, 5:11 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171467926 | yash2310 | A | Sept. 9, 2022, 5:10 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171465867 | Galetx | A | Sept. 9, 2022, 4:31 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171460425 | zcq250 | A | Sept. 9, 2022, 2:34 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171459119 | unbecoming | A | Sept. 9, 2022, 2:01 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171457840 | clam123 | A | Sept. 9, 2022, 1:30 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
171459801 | yajay46394 | A | Sept. 9, 2022, 2:18 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171459827 | Symon434 | A | Sept. 9, 2022, 2:19 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171460806 | velpro. | A | Sept. 9, 2022, 2:42 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171461249 | clam_fan | A | Sept. 9, 2022, 2:51 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171462414 | rogeryen0731 | A | Sept. 9, 2022, 3:17 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171462925 | blasterking | A | Sept. 9, 2022, 3:28 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171463703 | KerollosRady | A | Sept. 9, 2022, 3:45 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171467937 | smazouz | A | Sept. 9, 2022, 5:10 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171468090 | aniketghosh950 | A | Sept. 9, 2022, 5:12 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171469126 | karan_1204 | A | Sept. 9, 2022, 5:28 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
171468472 | try_target | A | Sept. 9, 2022, 5:19 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171467754 | hemanshu02 | A | Sept. 9, 2022, 5:07 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171467526 | failure._M0nK | A | Sept. 9, 2022, 5:03 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171465751 | _pallab_99 | A | Sept. 9, 2022, 4:29 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171465680 | iprom | A | Sept. 9, 2022, 4:28 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171464595 | 1potato2potato | A | Sept. 9, 2022, 4:03 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171461539 | wonderful_trip | A | Sept. 9, 2022, 2:58 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171460783 | zhangmj2008 | A | Sept. 9, 2022, 2:42 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171469517 | Kyooma | A | Sept. 9, 2022, 5:34 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171459258 | Aoisrot | A | Sept. 9, 2022, 2:05 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
171466977 | my_god | A | Sept. 9, 2022, 4:53 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171470901 | Chenyu_Qiu | A | Sept. 9, 2022, 5:55 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171470826 | Mo_A.Nasser | A | Sept. 9, 2022, 5:54 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171470473 | gauravB912 | A | Sept. 9, 2022, 5:49 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171469296 | Ivan_Filippov | A | Sept. 9, 2022, 5:31 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171469231 | pulkit077 | A | Sept. 9, 2022, 5:30 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171468615 | dark_knight_48 | A | Sept. 9, 2022, 5:21 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171468582 | AlbusX | A | Sept. 9, 2022, 5:20 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171467607 | Ivan_Filippov | A | Sept. 9, 2022, 5:04 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171466862 | rajprem4214 | A | Sept. 9, 2022, 4:51 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
171461517 | graceoflives | A | Sept. 9, 2022, 2:58 a.m. | OK | Go | TESTS | 3 | 15 | 204800 | ||
171432780 | 419137 | A | Sept. 8, 2022, 5:33 p.m. | OK | Haskell | TESTS | 2 | 62 | 2150400 | ||
171453143 | Corobo | A | Sept. 8, 2022, 11:15 p.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | ||
171469608 | Shady_X | A | Sept. 9, 2022, 5:35 a.m. | OK | Java 11 | TESTS | 3 | 156 | 0 | ||
171467153 | yerkebayev | A | Sept. 9, 2022, 4:56 a.m. | OK | Java 11 | TESTS | 3 | 170 | 0 | ||
171426479 | samitdas03 | A | Sept. 8, 2022, 4:45 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
171465248 | dhruvil_8803 | A | Sept. 9, 2022, 4:18 a.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
171457853 | Adaminite | A | Sept. 9, 2022, 1:31 a.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
171457723 | karthikreddyyapala | A | Sept. 9, 2022, 1:28 a.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
171420281 | bhushan2311 | A | Sept. 8, 2022, 4:28 p.m. | OK | Java 11 | TESTS | 2 | 202 | 0 | ||
171469782 | xpoes | A | Sept. 9, 2022, 5:38 a.m. | OK | Java 11 | TESTS | 3 | 217 | 0 | ||
171447204 | BrendanSGubbins | A | Sept. 8, 2022, 8:44 p.m. | OK | Java 11 | TESTS | 2 | 217 | 0 | ||
171437238 | haloh_03 | A | Sept. 8, 2022, 6:17 p.m. | OK | Java 17 | TESTS | 2 | 124 | 0 | ||
171444228 | ItsZaki | A | Sept. 8, 2022, 7:56 p.m. | OK | Java 17 | TESTS | 2 | 155 | 0 | ||
171441363 | kelptomonk | A | Sept. 8, 2022, 7:07 p.m. | OK | Java 17 | TESTS | 2 | 155 | 204800 | ||
171429893 | minato_speed | A | Sept. 8, 2022, 5:08 p.m. | OK | Java 17 | TESTS | 2 | 171 | 0 | ||
171465251 | Nilay25 | A | Sept. 9, 2022, 4:18 a.m. | OK | Java 17 | TESTS | 3 | 202 | 819200 | ||
171459272 | BBCavendish | A | Sept. 9, 2022, 2:05 a.m. | OK | Java 17 | TESTS | 3 | 217 | 0 | ||
171464005 | shubhamlahoti01 | A | Sept. 9, 2022, 3:51 a.m. | OK | Java 17 | TESTS | 3 | 233 | 512000 | ||
171444080 | ItsZaki | A | Sept. 8, 2022, 7:53 p.m. | OK | Java 17 | TESTS | 2 | 249 | 0 | ||
171427892 | rudra03 | A | Sept. 8, 2022, 4:54 p.m. | OK | Java 17 | TESTS | 2 | 280 | 0 | ||
171461591 | govindrajput | A | Sept. 9, 2022, 3 a.m. | OK | Java 8 | TESTS | 3 | 77 | 0 | ||
171434268 | Mrbadguy10 | A | Sept. 8, 2022, 5:47 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
171429455 | Koka | A | Sept. 8, 2022, 5:04 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
171426611 | karamkontar | A | Sept. 8, 2022, 4:46 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
171425376 | ankit_0207 | A | Sept. 8, 2022, 4:40 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
171468387 | waynebruce1704 | A | Sept. 9, 2022, 5:17 a.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
171434550 | toufique_husein | A | Sept. 8, 2022, 5:50 p.m. | OK | Java 8 | TESTS | 2 | 109 | 0 | ||
171433990 | YO07 | A | Sept. 8, 2022, 5:45 p.m. | OK | Java 8 | TESTS | 2 | 109 | 0 | ||
171421136 | rahul_r1910 | A | Sept. 8, 2022, 4:29 p.m. | OK | Java 8 | TESTS | 2 | 109 | 0 | ||
171437760 | Dominater069 | A | Sept. 8, 2022, 6:23 p.m. | OK | Java 8 | TESTS | 2 | 124 | 0 | ||
171469898 | jithomp | A | Sept. 9, 2022, 5:40 a.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
171460432 | Sailzf | A | Sept. 9, 2022, 2:34 a.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
171449213 | OmarRnr | A | Sept. 8, 2022, 9:25 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
171429103 | Ahmed899 | A | Sept. 8, 2022, 5:02 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
171423774 | RoundLemon | A | Sept. 8, 2022, 4:34 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
171419245 | mkbagaria13 | A | Sept. 8, 2022, 4:25 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
171436041 | cptahahab | A | Sept. 8, 2022, 6:05 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
171422799 | shiv96055 | A | Sept. 8, 2022, 4:33 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
171441178 | Rhnvrma | A | Sept. 8, 2022, 7:05 p.m. | OK | MS C++ 2017 | TESTS | 2 | 46 | 0 | ||
171462137 | SmolNoob | A | Sept. 9, 2022, 3:12 a.m. | OK | Node.js | TESTS | 3 | 108 | 1945600 | ||
171430680 | zxcuser2 | A | Sept. 8, 2022, 5:14 p.m. | OK | PyPy 3 | TESTS | 2 | 109 | 1638400 | ||
171445799 | f20210555 | A | Sept. 8, 2022, 8:20 p.m. | OK | PyPy 3 | TESTS | 2 | 140 | 4505600 | ||
171438286 | dwen | A | Sept. 8, 2022, 6:29 p.m. | OK | PyPy 3 | TESTS | 2 | 155 | 3686400 | ||
171446140 | gotcoding124 | A | Sept. 8, 2022, 8:25 p.m. | OK | PyPy 3 | TESTS | 2 | 170 | 4710400 | ||
171451763 | SIGCHLD | A | Sept. 8, 2022, 10:31 p.m. | OK | PyPy 3 | TESTS | 2 | 171 | 5120000 | ||
171428947 | sumit417 | A | Sept. 8, 2022, 5:01 p.m. | OK | PyPy 3 | TESTS | 2 | 186 | 4505600 | ||
171425531 | U_primes_C | A | Sept. 8, 2022, 4:41 p.m. | OK | PyPy 3 | TESTS | 2 | 186 | 4710400 | ||
171453934 | bpdolson | A | Sept. 8, 2022, 11:40 p.m. | OK | PyPy 3 | TESTS | 2 | 202 | 4915200 | ||
171422571 | rw2921 | A | Sept. 8, 2022, 4:32 p.m. | OK | PyPy 3 | TESTS | 2 | 608 | 9420800 | ||
171442202 | crapcode | A | Sept. 8, 2022, 7:19 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 2048000 | ||
171432210 | Triump_0112 | A | Sept. 8, 2022, 5:28 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 2662400 | ||
171439237 | mintplz | A | Sept. 8, 2022, 6:40 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 2969600 | ||
171435263 | samchen123 | A | Sept. 8, 2022, 5:57 p.m. | OK | PyPy 3-64 | TESTS | 2 | 61 | 1638400 | ||
171459160 | InariInDream | A | Sept. 9, 2022, 2:02 a.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 3276800 | ||
171437063 | jasmineheart | A | Sept. 8, 2022, 6:15 p.m. | OK | PyPy 3-64 | TESTS | 2 | 62 | 2150400 | ||
171432677 | Zephyyr | A | Sept. 8, 2022, 5:32 p.m. | OK | PyPy 3-64 | TESTS | 2 | 62 | 2252800 | ||
171449295 | ASawe2.6Main | A | Sept. 8, 2022, 9:27 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 2560000 | ||
171432304 | Triump_0112 | A | Sept. 8, 2022, 5:29 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 2662400 | ||
171456259 | riroan | A | Sept. 9, 2022, 12:48 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 3072000 | ||
171423016 | slichoulas | A | Sept. 8, 2022, 4:33 p.m. | OK | Python 3 | TESTS | 2 | 30 | 102400 | ||
171454751 | happywater | A | Sept. 9, 2022, 12:06 a.m. | OK | Python 3 | TESTS | 2 | 31 | 0 | ||
171434404 | advaitrege | A | Sept. 8, 2022, 5:49 p.m. | OK | Python 3 | TESTS | 2 | 31 | 0 | ||
171432721 | Huouin_kyouma | A | Sept. 8, 2022, 5:33 p.m. | OK | Python 3 | TESTS | 2 | 31 | 0 | ||
171429657 | asoiaf | A | Sept. 8, 2022, 5:06 p.m. | OK | Python 3 | TESTS | 2 | 31 | 0 | ||
171426360 | Harry_yash | A | Sept. 8, 2022, 4:45 p.m. | OK | Python 3 | TESTS | 2 | 31 | 0 | ||
171423372 | ahadafzal | A | Sept. 8, 2022, 4:34 p.m. | OK | Python 3 | TESTS | 2 | 31 | 0 | ||
171467054 | ritesh_43 | A | Sept. 9, 2022, 4:54 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
171465290 | Abuer_123 | A | Sept. 9, 2022, 4:19 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | ||
171454355 | khaledrajaie5 | A | Sept. 8, 2022, 11:54 p.m. | OK | Python 3 | TESTS | 2 | 46 | 0 |
Back to search problems