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 |
---|---|---|---|---|---|---|
1774 | Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) | FINISHED | False | 9000 | 65978663 | Dec. 17, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 12606 ) | B | Coloring | PROGRAMMING | constructive algorithms greedy |
B'Cirno_9baka has a paper tape with n cells in a row on it. As he thinks that the blank paper tape is too dull, he wants to paint these cells with m kinds of colors. For some aesthetic reasons, he thinks that the i -th color must be used exactly a_i times, and for every k consecutive cells, their colors have to be distinct. Help Cirno_9baka to figure out if there is such a way to paint the cells. The first line contains a single integer t ( 1 <= q t <= q 10 ,000 ) -- the number of test cases. The description of test cases follows. The first line of each test case contains three integers n , m , k ( 1 <= q k <= q n <= q 10^9 , 1 <= q m <= q 10^5 , m <= q n ). Here n denotes the number of cells, m denotes the number of colors, and k means that for every k consecutive cells, their colors have to be distinct. The second line of each test case contains m integers a_1, a_2, cdots , a_m ( 1 <= q a_i <= q n ) -- the numbers of times that colors have to be used. It 's guaranteed that a_1 + a_2 + ldots + a_m = n . It is guaranteed that the sum of m over all test cases does not exceed 10^5 . For each test case, output "YES" if there is at least one possible coloring scheme; otherwise, output "NO". You may print each letter in any case (for example, "YES", "Yes", "yes", and "yEs" will all be recognized as positive answers). In the first test case, there is no way to color the cells satisfying all the conditions. In the second test case, we can color the cells as follows: (1, 2, 1, 2, 3, 4, 3, 4, 5, 6, 5, 6) . For any 2 consecutive cells, their colors are distinct. '... |
Polynomial Round 2022 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
185737551 | mafijul | B | Dec. 18, 2022, 12:36 a.m. | OK | GNU C11 | TESTS | 16 | 61 | 0 | ||
185749891 | saisreeja0509 | B | Dec. 18, 2022, 5:31 a.m. | OK | GNU C11 | TESTS | 18 | 62 | 1536000 | ||
185709579 | bntti | B | Dec. 17, 2022, 5:03 p.m. | OK | GNU C++14 | TESTS | 16 | 30 | 409600 | ||
185730112 | NamanKedia | B | Dec. 17, 2022, 9:06 p.m. | OK | GNU C++14 | TESTS | 16 | 30 | 819200 | ||
185721312 | ankursharma192001 | B | Dec. 17, 2022, 7:13 p.m. | OK | GNU C++14 | TESTS | 16 | 30 | 819200 | ||
185702353 | A.I.skeleton | B | Dec. 17, 2022, 4:44 p.m. | OK | GNU C++14 | TESTS | 16 | 30 | 819200 | ||
185733919 | kashish_01 | B | Dec. 17, 2022, 10:27 p.m. | OK | GNU C++14 | TESTS | 16 | 30 | 819200 | ||
185751946 | 1120241532 | B | Dec. 18, 2022, 5:57 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
185751764 | mondellbit009 | B | Dec. 18, 2022, 5:55 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
185750885 | yyf_0404 | B | Dec. 18, 2022, 5:43 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
185752357 | mondellbit009 | B | Dec. 18, 2022, 6:03 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
185752020 | 1120241532 | B | Dec. 18, 2022, 5:58 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
185736794 | Bigbos | B | Dec. 18, 2022, 12:03 a.m. | OK | GNU C++17 | TESTS | 16 | 15 | 0 | ||
185739412 | Rorschach77 | B | Dec. 18, 2022, 1:45 a.m. | OK | GNU C++17 | TESTS | 16 | 15 | 0 | ||
185708642 | rkb_rd | B | Dec. 17, 2022, 5:01 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 409600 | ||
185702362 | Hassn_Hamada | B | Dec. 17, 2022, 4:44 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 409600 | ||
185705251 | LxRBS | B | Dec. 17, 2022, 4:53 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 512000 | ||
185719454 | lakshmankattunga | B | Dec. 17, 2022, 6:55 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 819200 | ||
185732611 | xolos | B | Dec. 17, 2022, 9:56 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 819200 | ||
185737497 | maiky | B | Dec. 18, 2022, 12:34 a.m. | OK | GNU C++17 | TESTS | 16 | 15 | 819200 | ||
185716564 | Mtaylor | B | Dec. 17, 2022, 6:33 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 1228800 | ||
185722814 | ampish | B | Dec. 17, 2022, 7:28 p.m. | OK | GNU C++17 | TESTS | 16 | 15 | 1331200 | ||
185744714 | 1063076694 | B | Dec. 18, 2022, 3:58 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 15 | 0 | ||
185744691 | 1063076694 | B | Dec. 18, 2022, 3:58 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 15 | 0 | ||
185704140 | DanielW48 | B | Dec. 17, 2022, 4:50 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 0 | ||
185738005 | MohamedRefat | B | Dec. 18, 2022, 12:56 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 204800 | ||
185736816 | Saif_Dawood | B | Dec. 18, 2022, 12:04 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 819200 | ||
185736954 | patcht | B | Dec. 18, 2022, 12:10 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 819200 | ||
185729145 | aatrey | B | Dec. 17, 2022, 8:51 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 819200 | ||
185723546 | TheQuantiX | B | Dec. 17, 2022, 7:36 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 819200 | ||
185720281 | rc08 | B | Dec. 17, 2022, 7:03 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 819200 | ||
185706106 | __Shioko | B | Dec. 17, 2022, 4:55 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 15 | 819200 | ||
185743426 | MeetAmin | B | Dec. 18, 2022, 3:29 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
185742674 | 36champ | B | Dec. 18, 2022, 3:11 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
185742314 | katsu. | B | Dec. 18, 2022, 3:02 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
185737665 | hoke_t | B | Dec. 18, 2022, 12:41 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 0 | ||
185737577 | qvzeyang | B | Dec. 18, 2022, 12:38 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 0 | ||
185737228 | uwq | B | Dec. 18, 2022, 12:23 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 0 | ||
185731035 | Mahmoud-Khalid | B | Dec. 17, 2022, 9:23 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 0 | ||
185728441 | Nilesh.ky | B | Dec. 17, 2022, 8:40 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 0 | ||
185744614 | XiCen | B | Dec. 18, 2022, 3:56 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
185745256 | marvenlee | B | Dec. 18, 2022, 4:09 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
185745540 | BcTeraBaap | B | Dec. 18, 2022, 4:15 a.m. | OK | Java 11 | TESTS | 18 | 187 | 0 | ||
185718281 | IanISam | B | Dec. 17, 2022, 6:45 p.m. | OK | Java 11 | TESTS | 16 | 187 | 0 | ||
185720015 | wat2 | B | Dec. 17, 2022, 7 p.m. | OK | Java 11 | TESTS | 16 | 202 | 0 | ||
185707799 | mareshkau | B | Dec. 17, 2022, 4:59 p.m. | OK | Java 11 | TESTS | 16 | 202 | 0 | ||
185707382 | Khater | B | Dec. 17, 2022, 4:58 p.m. | OK | Java 11 | TESTS | 16 | 202 | 0 | ||
185717256 | yash_rastogi_1 | B | Dec. 17, 2022, 6:37 p.m. | OK | Java 11 | TESTS | 16 | 249 | 0 | ||
185709609 | shubhargava | B | Dec. 17, 2022, 5:03 p.m. | OK | Java 11 | TESTS | 16 | 280 | 0 | ||
185709758 | Saurabh_jayaswal | B | Dec. 17, 2022, 5:03 p.m. | OK | Java 11 | TESTS | 16 | 327 | 0 | ||
185723181 | Hassan_Ali_ | B | Dec. 17, 2022, 7:32 p.m. | OK | Java 11 | TESTS | 16 | 342 | 0 | ||
185720587 | leoncn | B | Dec. 17, 2022, 7:06 p.m. | OK | Java 11 | TESTS | 16 | 374 | 0 | ||
185741131 | dunkingdonuts | B | Dec. 18, 2022, 2:31 a.m. | OK | Java 17 | TESTS | 18 | 186 | 409600 | ||
185704195 | asdfghjkl_12345 | B | Dec. 17, 2022, 4:50 p.m. | OK | Java 17 | TESTS | 16 | 202 | 409600 | ||
185718550 | yashbhardwaj24 | B | Dec. 17, 2022, 6:47 p.m. | OK | Java 17 | TESTS | 16 | 233 | 42086400 | ||
185717977 | harsh.bhandari.v | B | Dec. 17, 2022, 6:43 p.m. | OK | Java 17 | TESTS | 16 | 234 | 716800 | ||
185744564 | manasrai1234567 | B | Dec. 18, 2022, 3:55 a.m. | OK | Java 17 | TESTS | 18 | 264 | 512000 | ||
185738275 | aris_sk | B | Dec. 18, 2022, 1:06 a.m. | OK | Java 17 | TESTS | 16 | 327 | 921600 | ||
185729590 | __xQc__ | B | Dec. 17, 2022, 8:58 p.m. | OK | Java 17 | TESTS | 16 | 358 | 204800 | ||
185734936 | Mohamed308 | B | Dec. 17, 2022, 10:54 p.m. | OK | Java 8 | TESTS | 16 | 108 | 0 | ||
185750720 | swarup_312 | B | Dec. 18, 2022, 5:41 a.m. | OK | Java 8 | TESTS | 18 | 109 | 0 | ||
185739324 | ikillmyself | B | Dec. 18, 2022, 1:43 a.m. | OK | Java 8 | TESTS | 16 | 109 | 0 | ||
185723795 | sifath100 | B | Dec. 17, 2022, 7:39 p.m. | OK | Java 8 | TESTS | 16 | 124 | 0 | ||
185749365 | RonWonWon | B | Dec. 18, 2022, 5:23 a.m. | OK | Java 8 | TESTS | 18 | 124 | 0 | ||
185745873 | Mohamed_A7med | B | Dec. 18, 2022, 4:22 a.m. | OK | Java 8 | TESTS | 18 | 124 | 0 | ||
185720823 | gagan_6730 | B | Dec. 17, 2022, 7:08 p.m. | OK | Java 8 | TESTS | 16 | 124 | 0 | ||
185720715 | gagan_6730 | B | Dec. 17, 2022, 7:07 p.m. | OK | Java 8 | TESTS | 16 | 124 | 0 | ||
185706284 | adi_7861 | B | Dec. 17, 2022, 4:55 p.m. | OK | Java 8 | TESTS | 16 | 124 | 0 | ||
185704621 | cys02 | B | Dec. 17, 2022, 4:51 p.m. | OK | Java 8 | TESTS | 16 | 124 | 0 | ||
185704239 | ktropin | B | Dec. 17, 2022, 4:50 p.m. | OK | Mono C# | TESTS | 16 | 77 | 10342400 | ||
185720956 | ahm.12ed.m | B | Dec. 17, 2022, 7:09 p.m. | OK | MS C++ 2017 | TESTS | 16 | 77 | 0 | ||
185744577 | Niino | B | Dec. 18, 2022, 3:56 a.m. | OK | MS C++ 2017 | TESTS | 18 | 78 | 0 | ||
185716421 | asher10000 | B | Dec. 17, 2022, 6:32 p.m. | OK | MS C++ 2017 | TESTS | 16 | 93 | 0 | ||
185738604 | caiji_liu | B | Dec. 18, 2022, 1:19 a.m. | OK | MS C++ 2017 | TESTS | 16 | 93 | 102400 | ||
185727563 | dooyoung | B | Dec. 17, 2022, 8:28 p.m. | OK | MS C++ 2017 | TESTS | 16 | 93 | 1433600 | ||
185720940 | Vitru | B | Dec. 17, 2022, 7:09 p.m. | OK | MS C++ 2017 | TESTS | 16 | 109 | 409600 | ||
185734305 | Su_123 | B | Dec. 17, 2022, 10:36 p.m. | OK | PyPy 3 | TESTS | 16 | 234 | 8704000 | ||
185721520 | Lyle0711 | B | Dec. 17, 2022, 7:15 p.m. | OK | PyPy 3 | TESTS | 16 | 405 | 8089600 | ||
185739683 | bambu07 | B | Dec. 18, 2022, 1:53 a.m. | OK | PyPy 3 | TESTS | 16 | 405 | 9625600 | ||
185747739 | Raindrops1117 | B | Dec. 18, 2022, 5:01 a.m. | OK | PyPy 3 | TESTS | 18 | 420 | 9523200 | ||
185731152 | beautifulworld | B | Dec. 17, 2022, 9:25 p.m. | OK | PyPy 3 | TESTS | 16 | 436 | 9625600 | ||
185707392 | WolG | B | Dec. 17, 2022, 4:58 p.m. | OK | PyPy 3 | TESTS | 16 | 483 | 9523200 | ||
185734173 | Abdusharif | B | Dec. 17, 2022, 10:33 p.m. | OK | PyPy 3-64 | TESTS | 16 | 93 | 13516800 | ||
185734836 | beethoven97 | B | Dec. 17, 2022, 10:51 p.m. | OK | PyPy 3-64 | TESTS | 16 | 108 | 10547200 | ||
185735422 | onemoreq | B | Dec. 17, 2022, 11:09 p.m. | OK | PyPy 3-64 | TESTS | 16 | 124 | 13619200 | ||
185700502 | anshumannandan | B | Dec. 17, 2022, 4:39 p.m. | OK | PyPy 3-64 | TESTS | 16 | 124 | 13619200 | ||
185751431 | 2momo2 | B | Dec. 18, 2022, 5:51 a.m. | OK | PyPy 3-64 | TESTS | 18 | 139 | 9523200 | ||
185736875 | Remineva | B | Dec. 18, 2022, 12:07 a.m. | OK | PyPy 3-64 | TESTS | 16 | 139 | 10240000 | ||
185740120 | InariInDream | B | Dec. 18, 2022, 2:06 a.m. | OK | PyPy 3-64 | TESTS | 17 | 139 | 13107200 | ||
185717782 | mintplz | B | Dec. 17, 2022, 6:41 p.m. | OK | PyPy 3-64 | TESTS | 16 | 139 | 13516800 | ||
185707409 | tlsgusrb314 | B | Dec. 17, 2022, 4:58 p.m. | OK | PyPy 3-64 | TESTS | 16 | 139 | 13516800 | ||
185741870 | InariInDream | B | Dec. 18, 2022, 2:51 a.m. | OK | PyPy 3-64 | TESTS | 18 | 139 | 13824000 | ||
185751469 | MohamedHamed123 | B | Dec. 18, 2022, 5:51 a.m. | OK | Python 3 | TESTS | 18 | 93 | 3788800 | ||
185725447 | amarbudhiraja | B | Dec. 17, 2022, 7:58 p.m. | OK | Python 3 | TESTS | 16 | 93 | 3993600 | ||
185728331 | r57shell | B | Dec. 17, 2022, 8:38 p.m. | OK | Python 3 | TESTS | 16 | 93 | 4096000 | ||
185727766 | micky2100 | B | Dec. 17, 2022, 8:30 p.m. | OK | Python 3 | TESTS | 16 | 140 | 3584000 | ||
185726529 | alex_777 | B | Dec. 17, 2022, 8:14 p.m. | OK | Python 3 | TESTS | 16 | 155 | 3891200 | ||
185751605 | Shubham_2003 | B | Dec. 18, 2022, 5:53 a.m. | OK | Python 3 | TESTS | 18 | 155 | 3993600 | ||
185740442 | fguo7370 | B | Dec. 18, 2022, 2:15 a.m. | OK | Python 3 | TESTS | 18 | 155 | 3993600 | ||
185737050 | tjonac | B | Dec. 18, 2022, 12:14 a.m. | OK | Python 3 | TESTS | 16 | 155 | 3993600 | ||
185724386 | Raya_101 | B | Dec. 17, 2022, 7:45 p.m. | OK | Python 3 | TESTS | 16 | 155 | 3993600 | ||
185717233 | pranavkumar | B | Dec. 17, 2022, 6:37 p.m. | OK | Python 3 | TESTS | 16 | 155 | 3993600 | ||
185703121 | sansen | B | Dec. 17, 2022, 4:47 p.m. | OK | Rust 2021 | TESTS | 16 | 30 | 1843200 |
Back to search problems