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 |
---|---|---|---|---|---|---|
1478 | Codeforces Round 698 (Div. 2) | FINISHED | False | 8100 | 125508310 | Jan. 28, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 26753 ) | A | Nezzar and Colorful Balls | PROGRAMMING | brute force greedy | 800 |
B"Nezzar has n balls, numbered with integers 1, 2, ldots, n . Numbers a_1, a_2, ldots, a_n are written on them, respectively. Numbers on those balls form a non-decreasing sequence, which means that a_i <= q a_{i+1} for all 1 <= q i < n . Nezzar wants to color the balls using the minimum number of colors, such that the following holds. Note that a sequence with the length at most 1 is considered as a strictly increasing sequence. Please help Nezzar determine the minimum number of colors. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of testcases. The first line of each test case contains a single integer n ( 1 <= n <= 100 ). The second line of each test case contains n integers a_1,a_2, ldots,a_n ( 1 <= a_i <= n ). It is guaranteed that a_1 <= q a_2 <= q ldots <= q a_n . For each test case, output the minimum number of colors Nezzar can use. Let's match each color with some numbers. Then: In the first test case, one optimal color assignment is [1,2,3,3,2,1] . In the second test case, one optimal color assignment is [1,2,1,2,1] . "... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
105795144 | qdnoip | A | Jan. 29, 2021, 1:42 a.m. | OK | Clang++17 Diagnostics | TESTS | 6 | 62 | 0 | 800 | |
105792967 | kailash151297 | A | Jan. 29, 2021, 12:20 a.m. | OK | Clang++17 Diagnostics | TESTS | 6 | 77 | 0 | 800 | |
105802823 | ZangCT | A | Jan. 29, 2021, 4:38 a.m. | OK | Clang++17 Diagnostics | TESTS | 6 | 77 | 0 | 800 | |
105782284 | Gassa | A | Jan. 28, 2021, 7:28 p.m. | OK | D | TESTS | 6 | 30 | 0 | 800 | |
105802257 | cheese-cracker | A | Jan. 29, 2021, 4:29 a.m. | OK | D | TESTS | 6 | 31 | 0 | 800 | |
105791292 | VN.Kiet | A | Jan. 28, 2021, 11:09 p.m. | OK | FPC | TESTS | 6 | 15 | 0 | 800 | |
105781977 | ajoydey00001 | A | Jan. 28, 2021, 7:23 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | 800 | |
105786625 | Sss_Ttt-26 | A | Jan. 28, 2021, 8:49 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | 800 | |
105787185 | legendaryICE | A | Jan. 28, 2021, 9:04 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | 800 | |
105798836 | sam_28 | A | Jan. 29, 2021, 3:22 a.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | 800 | |
105806945 | naiem75 | A | Jan. 29, 2021, 5:42 a.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | 800 | |
105772644 | SajibKC_19 | A | Jan. 28, 2021, 5:37 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 204800 | 800 | |
105802235 | akshatsaxena2017 | A | Jan. 29, 2021, 4:28 a.m. | OK | GNU C11 | TESTS | 6 | 15 | 204800 | 800 | |
105799772 | Nash2829 | A | Jan. 29, 2021, 3:43 a.m. | OK | GNU C11 | TESTS | 6 | 30 | 0 | 800 | |
105763587 | athirai_s | A | Jan. 28, 2021, 4:40 p.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | 800 | |
105770208 | Sambasai | A | Jan. 28, 2021, 5:24 p.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | 800 | |
105805225 | vjudge2 | A | Jan. 29, 2021, 5:17 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105807552 | fishcathu. | A | Jan. 29, 2021, 5:50 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105807327 | mingtianjian | A | Jan. 29, 2021, 5:48 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105807025 | bkifhr6 | A | Jan. 29, 2021, 5:43 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105805910 | xiatiankuan | A | Jan. 29, 2021, 5:27 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105805766 | UMU08 | A | Jan. 29, 2021, 5:25 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105805592 | starlightlmy | A | Jan. 29, 2021, 5:23 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105805358 | Eric_Cui | A | Jan. 29, 2021, 5:19 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105804896 | zorbin | A | Jan. 29, 2021, 5:12 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105802915 | Ugsaby | A | Jan. 29, 2021, 4:40 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 800 | |
105778070 | sincode | A | Jan. 28, 2021, 6:30 p.m. | OK | GNU C++14 | TESTS | 6 | 0 | 204800 | 800 | |
105801414 | Jethalal_Gada100 | A | Jan. 29, 2021, 4:13 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105802178 | _K_I_N_G_ | A | Jan. 29, 2021, 4:27 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105802876 | Esquire | A | Jan. 29, 2021, 4:40 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105802930 | _koul_ | A | Jan. 29, 2021, 4:40 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105803433 | Ronnith | A | Jan. 29, 2021, 4:49 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105804305 | Alpha_B | A | Jan. 29, 2021, 5:03 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105805345 | Raja345 | A | Jan. 29, 2021, 5:19 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105807384 | fighter_46 | A | Jan. 29, 2021, 5:48 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105807535 | hocky | A | Jan. 29, 2021, 5:50 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | 800 | |
105803535 | TNP24aug | A | Jan. 29, 2021, 4:50 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105808143 | DDTerziev04 | A | Jan. 29, 2021, 5:58 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105807995 | anurag_shrivastava_ | A | Jan. 29, 2021, 5:56 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105807671 | kurocardo | A | Jan. 29, 2021, 5:52 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105806205 | mridul.dgp2015 | A | Jan. 29, 2021, 5:32 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105805577 | prafull_vrsh | A | Jan. 29, 2021, 5:23 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105805305 | Sheldon_Lee_Cooper | A | Jan. 29, 2021, 5:18 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105804630 | pinkfloyed | A | Jan. 29, 2021, 5:08 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105804078 | manavdhiman003 | A | Jan. 29, 2021, 4:59 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105803771 | molu1478824868 | A | Jan. 29, 2021, 4:54 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | 800 | |
105795754 | VinsenN | A | Jan. 29, 2021, 2:01 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | 800 | |
105782049 | namacha411 | A | Jan. 28, 2021, 7:24 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 0 | 800 | |
105778489 | SGTCoder | A | Jan. 28, 2021, 6:35 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 0 | 819200 | 800 | |
105807043 | chandrakiran334 | A | Jan. 29, 2021, 5:44 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105806922 | SHUlpt | A | Jan. 29, 2021, 5:42 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105806348 | strchar | A | Jan. 29, 2021, 5:34 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105804883 | ralyks | A | Jan. 29, 2021, 5:12 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105806023 | Misbah_Uddin_Tareq1 | A | Jan. 29, 2021, 5:29 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105808102 | sahil_bajaj | A | Jan. 29, 2021, 5:57 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105807880 | zulongfei | A | Jan. 29, 2021, 5:55 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | 800 | |
105777731 | TomazGomes | A | Jan. 28, 2021, 6:26 p.m. | OK | Haskell | TESTS | 6 | 31 | 102400 | 800 | |
105777257 | TomazGomes | A | Jan. 28, 2021, 6:20 p.m. | OK | Haskell | TESTS | 6 | 46 | 102400 | 800 | |
105805581 | Axel.blaze- | A | Jan. 29, 2021, 5:23 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105804657 | pikachu_pika_pika | A | Jan. 29, 2021, 5:09 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105804619 | wilsonchuks | A | Jan. 29, 2021, 5:08 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105804503 | Liberator187 | A | Jan. 29, 2021, 5:06 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105795473 | _Psychologist_ | A | Jan. 29, 2021, 1:53 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105785678 | tdpencil | A | Jan. 28, 2021, 8:28 p.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105778247 | pankaj17 | A | Jan. 28, 2021, 6:32 p.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105771048 | Sanju_250406 | A | Jan. 28, 2021, 5:27 p.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105770801 | Akram-Adel | A | Jan. 28, 2021, 5:26 p.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | 800 | |
105797612 | RuthlessAggression | A | Jan. 29, 2021, 2:54 a.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | 800 | |
105785200 | ElragolEl3enab | A | Jan. 28, 2021, 8:18 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | 800 | |
105786162 | coolManit | A | Jan. 28, 2021, 8:39 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | 800 | |
105784208 | nandit | A | Jan. 28, 2021, 7:59 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | 800 | |
105770326 | Adi_7861 | A | Jan. 28, 2021, 5:24 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | 800 | |
105797525 | zxxhh | A | Jan. 29, 2021, 2:52 a.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | 800 | |
105778081 | Abhichauhan | A | Jan. 28, 2021, 6:30 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | 800 | |
105764291 | riteshkhadse | A | Jan. 28, 2021, 4:41 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | 800 | |
105788812 | pdk.abhishek | A | Jan. 28, 2021, 9:48 p.m. | OK | Java 8 | TESTS | 6 | 109 | 0 | 800 | |
105802514 | Om_Prakash | A | Jan. 29, 2021, 4:34 a.m. | OK | Java 8 | TESTS | 6 | 109 | 0 | 800 | |
105797666 | syncAsync | A | Jan. 29, 2021, 2:55 a.m. | OK | Java 8 | TESTS | 6 | 109 | 0 | 800 | |
105793035 | Spheniscine | A | Jan. 29, 2021, 12:23 a.m. | OK | Kotlin | TESTS | 6 | 109 | 0 | 800 | |
105786197 | catforce | A | Jan. 28, 2021, 8:40 p.m. | OK | Kotlin | TESTS | 6 | 140 | 614400 | 800 | |
105793409 | Goodenough_ | A | Jan. 29, 2021, 12:39 a.m. | OK | MS C++ | TESTS | 6 | 30 | 0 | 800 | |
105773975 | 201901432 | A | Jan. 28, 2021, 5:48 p.m. | OK | MS C++ 2017 | TESTS | 6 | 30 | 0 | 800 | |
105799000 | say_hi | A | Jan. 29, 2021, 3:25 a.m. | OK | MS C++ 2017 | TESTS | 6 | 30 | 0 | 800 | |
105794748 | panjinhua | A | Jan. 29, 2021, 1:29 a.m. | OK | MS C++ 2017 | TESTS | 6 | 30 | 0 | 800 | |
105776536 | ustaritz | A | Jan. 28, 2021, 6:12 p.m. | OK | MS C++ 2017 | TESTS | 6 | 30 | 0 | 800 | |
105776312 | 201901432 | A | Jan. 28, 2021, 6:10 p.m. | OK | MS C++ 2017 | TESTS | 6 | 30 | 0 | 800 | |
105790345 | Tommy_Fang | A | Jan. 28, 2021, 10:34 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | 800 | |
105807225 | WCmidschool | A | Jan. 29, 2021, 5:46 a.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | 800 | |
105799988 | dear-john | A | Jan. 29, 2021, 3:47 a.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | 800 | |
105780666 | Jeeper | A | Jan. 28, 2021, 7:04 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | 800 | |
105776693 | john_wick_07 | A | Jan. 28, 2021, 6:14 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | 800 | |
105792254 | Rawan.Shisht | A | Jan. 28, 2021, 11:47 p.m. | OK | .NET Core C# | TESTS | 6 | 77 | 716800 | 800 | |
105802100 | Mop | A | Jan. 29, 2021, 4:26 a.m. | OK | PHP | TESTS | 6 | 93 | 0 | 800 | |
105766056 | Apoorv_Rathore | A | Jan. 28, 2021, 4:46 p.m. | OK | PyPy 3 | TESTS | 6 | 93 | 1536000 | 800 | |
105790033 | VarunKrishnaswamy | A | Jan. 28, 2021, 10:24 p.m. | OK | PyPy 3 | TESTS | 6 | 93 | 1638400 | 800 | |
105803513 | sumanth_1906 | A | Jan. 29, 2021, 4:50 a.m. | OK | PyPy 3 | TESTS | 6 | 108 | 1638400 | 800 | |
105785935 | divyanshsikarwar | A | Jan. 28, 2021, 8:34 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 1638400 | 800 | |
105784877 | theskywalker | A | Jan. 28, 2021, 8:11 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 1638400 | 800 | |
105777363 | adus | A | Jan. 28, 2021, 6:22 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 1638400 | 800 | |
105776927 | macdod | A | Jan. 28, 2021, 6:17 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 1945600 | 800 | |
105793279 | y61mpnl | A | Jan. 29, 2021, 12:34 a.m. | OK | PyPy 3 | TESTS | 6 | 108 | 2048000 | 800 | |
105775224 | arin17 | A | Jan. 28, 2021, 5:58 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 2048000 | 800 | |
105770089 | dineshreddy01 | A | Jan. 28, 2021, 5:23 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 2048000 | 800 | |
105807646 | comptinedunautreete | A | Jan. 29, 2021, 5:52 a.m. | OK | Python 2 | TESTS | 6 | 78 | 204800 | 800 | |
105805417 | zhanghengrui | A | Jan. 29, 2021, 5:20 a.m. | OK | Python 3 | TESTS | 6 | 61 | 0 | 800 | |
105784998 | aman_rkl | A | Jan. 28, 2021, 8:14 p.m. | OK | Python 3 | TESTS | 6 | 61 | 0 | 800 | |
105775227 | womri1998 | A | Jan. 28, 2021, 5:58 p.m. | OK | Python 3 | TESTS | 6 | 61 | 0 | 800 | |
105771495 | vedant2911 | A | Jan. 28, 2021, 5:30 p.m. | OK | Python 3 | TESTS | 6 | 61 | 0 | 800 | |
105765735 | S.o.u.r.av | A | Jan. 28, 2021, 4:45 p.m. | OK | Python 3 | TESTS | 6 | 61 | 0 | 800 | |
105777133 | p1x31 | A | Jan. 28, 2021, 6:19 p.m. | OK | Python 3 | TESTS | 6 | 61 | 409600 | 800 | |
105807902 | Internal_Ghost | A | Jan. 29, 2021, 5:55 a.m. | OK | Python 3 | TESTS | 6 | 62 | 0 | 800 | |
105806876 | brrruhhh | A | Jan. 29, 2021, 5:41 a.m. | OK | Python 3 | TESTS | 6 | 62 | 0 | 800 | |
105802381 | shiviDON | A | Jan. 29, 2021, 4:31 a.m. | OK | Python 3 | TESTS | 6 | 62 | 0 | 800 | |
105800228 | Bhaskar0120 | A | Jan. 29, 2021, 3:51 a.m. | OK | Python 3 | TESTS | 6 | 62 | 0 | 800 | |
105799294 | satylogin | A | Jan. 29, 2021, 3:32 a.m. | OK | Rust | TESTS | 6 | 31 | 0 | 800 |
Back to search problems