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 |
---|---|---|---|---|---|---|
1981 | Codeforces Round 949 (Div. 2) | FINISHED | False | 7200 | 20030063 | May 31, 2024, 10:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1741 ) | D | Turtle and Multiplication | PROGRAMMING | constructive algorithms dfs and similar graphs number theory |
B"Turtle just learned how to multiply two integers in his math class, and he was very excited. Then Piggy gave him an integer n , and asked him to construct a sequence a_1, a_2, ldots, a_n consisting of integers which satisfied the following conditions: Of all such sequences, Piggy asked Turtle to find the one with the minimum number of distinct elements. Turtle definitely could not solve the problem, so please help him! Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^4 ). The description of the test cases follows. The first line of each test case contains a single integer n ( 2 <= n <= 10^6 ) -- the length of the sequence a . It is guaranteed that the sum of n over all test cases does not exceed 10^6 . For each test case, output n integers a_1, a_2, ldots, a_n -- the elements of the sequence a . If there are multiple answers, print any of them. In the third test case, a = [3, 4, 2, 6] violates the second condition since a_1 cdot a_2 = a_3 cdot a_4 . a = [2, 3, 4, 4] satisfy the conditions but its number of distinct elements isn't minimum. "... |
Simplified Chinese Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
263517424 | ImmortaLimit | D | May 31, 2024, 3:12 p.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 139 | 83353600 | ||
263501727 | BitchyBot | D | May 31, 2024, 1:01 p.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 202 | 614400 | ||
263577163 | Ender32k | D | June 1, 2024, 5:17 a.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 218 | 10752000 | ||
263556840 | 2009pwx | D | May 31, 2024, 11:34 p.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 218 | 38809600 | ||
263622617 | cmdgbb | D | June 1, 2024, 11:37 a.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 218 | 72192000 | ||
263704587 | huanghaoxiang | D | June 2, 2024, 5:52 a.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 249 | 102400000 | ||
263506059 | H_W_Y | D | May 31, 2024, 1:38 p.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 249 | 121139200 | ||
263579519 | sxkqcyc | D | June 1, 2024, 5:42 a.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 265 | 65331200 | ||
263569674 | genyi_sith | D | June 1, 2024, 3:45 a.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 265 | 232345600 | ||
263554624 | LG805653 | D | May 31, 2024, 10:34 p.m. | OK | C++14 (GCC 6-32) | TESTS | 25 | 280 | 154419200 | ||
263688453 | Imagine.2019 | D | June 2, 2024, 12:48 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 155 | 0 | ||
263699574 | sahilkumar_1 | D | June 2, 2024, 4:46 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 171 | 3276800 | ||
263559422 | Drimpossible | D | June 1, 2024, 12:47 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 171 | 52633600 | ||
263599630 | Tomorrow_ | D | June 1, 2024, 8:34 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 2662400 | ||
263504870 | qwynick | D | May 31, 2024, 1:28 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 4608000 | ||
263515208 | JvJv | D | May 31, 2024, 2:53 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 9523200 | ||
263613630 | JAY19 | D | June 1, 2024, 10:31 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 11776000 | ||
263700869 | harryb17 | D | June 2, 2024, 5:05 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 43827200 | ||
263575794 | rdcamelot | D | June 1, 2024, 5 a.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 45056000 | ||
263514245 | dalgu | D | May 31, 2024, 2:45 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 202 | 3993600 | ||
263616213 | 2018LZY | D | June 1, 2024, 10:51 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 109 | 11366400 | ||
263611198 | NULL_to_Miracle | D | June 1, 2024, 10:10 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 109 | 11366400 | ||
263686285 | YuukiS | D | June 1, 2024, 11:29 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 124 | 0 | ||
263501723 | Fighter_sky | D | May 31, 2024, 1:01 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 124 | 20070400 | ||
263501053 | AiHAn | D | May 31, 2024, 12:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 139 | 4198400 | ||
263601678 | JagguBandar | D | June 1, 2024, 8:51 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 139 | 12697600 | ||
263532370 | ScarletS | D | May 31, 2024, 5:23 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 140 | 1433600 | ||
263514510 | learner_RR | D | May 31, 2024, 2:47 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 140 | 9523200 | ||
263687980 | Keyres | D | June 2, 2024, 12:31 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 140 | 10240000 | ||
263597414 | Promod | D | June 1, 2024, 8:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 140 | 12185600 | ||
263661373 | nguyenquocthao00 | D | June 1, 2024, 5:07 p.m. | OK | Go | TESTS | 25 | 280 | 73625600 | ||
263498842 | 0x3F | D | May 31, 2024, 12:40 p.m. | OK | Go | TESTS | 25 | 437 | 272281600 | ||
263510558 | 0x3F | D | May 31, 2024, 2:15 p.m. | OK | Go | TESTS | 25 | 437 | 272793600 | ||
263501131 | 0x3F | D | May 31, 2024, 12:56 p.m. | OK | Go | TESTS | 25 | 468 | 272793600 | ||
263648433 | 0x3F | D | June 1, 2024, 3:20 p.m. | OK | Go | TESTS | 25 | 765 | 523366400 | ||
263529617 | TCchen | D | May 31, 2024, 4:58 p.m. | OK | Java 21 | TESTS | 25 | 452 | 6553600 | ||
263577936 | dzhi | D | June 1, 2024, 5:25 a.m. | OK | Java 21 | TESTS | 25 | 640 | 53145600 | ||
263577506 | dzhi | D | June 1, 2024, 5:21 a.m. | OK | Java 21 | TESTS | 25 | 671 | 52633600 | ||
263528876 | TCchen | D | May 31, 2024, 4:51 p.m. | OK | Java 21 | TESTS | 25 | 2639 | 14233600 | ||
263508427 | Yousef_Badr | D | May 31, 2024, 1:59 p.m. | OK | Java 8 | TESTS | 25 | 577 | 54476800 | ||
263682117 | golions | D | June 1, 2024, 9:27 p.m. | OK | Java 8 | TESTS | 25 | 2609 | 377139200 | ||
263508527 | wangchaohui | D | May 31, 2024, 1:59 p.m. | OK | Kotlin 1.9 | TESTS | 25 | 2593 | 521830400 | ||
263581899 | Th_DominaNt | D | June 1, 2024, 6:05 a.m. | OK | PyPy 3-64 | TESTS | 25 | 234 | 57958400 | ||
263514319 | smilences | D | May 31, 2024, 2:45 p.m. | OK | PyPy 3-64 | TESTS | 25 | 249 | 57446400 | ||
263657237 | MAO1112 | D | June 1, 2024, 4:34 p.m. | OK | PyPy 3-64 | TESTS | 25 | 421 | 85299200 | ||
263669740 | edugong | D | June 1, 2024, 6:24 p.m. | OK | PyPy 3-64 | TESTS | 25 | 421 | 93081600 | ||
263670200 | edugong | D | June 1, 2024, 6:28 p.m. | OK | PyPy 3-64 | TESTS | 25 | 453 | 92979200 | ||
263509650 | citrinitas | D | May 31, 2024, 2:08 p.m. | OK | PyPy 3-64 | TESTS | 25 | 624 | 102297600 | ||
263594042 | tassei903 | D | June 1, 2024, 7:48 a.m. | OK | PyPy 3-64 | TESTS | 25 | 874 | 129331200 | ||
263502159 | PROELECTRO444 | D | May 31, 2024, 1:04 p.m. | OK | PyPy 3-64 | TESTS | 25 | 1515 | 182374400 | ||
263502007 | PROELECTRO444 | D | May 31, 2024, 1:03 p.m. | OK | PyPy 3-64 | TESTS | 25 | 1577 | 182579200 | ||
263680675 | kartik__sethi | D | June 1, 2024, 8:56 p.m. | OK | Python 3 | TESTS | 25 | 2640 | 236236800 | ||
263507102 | propane | D | May 31, 2024, 1:47 p.m. | OK | Python 3 | TESTS | 25 | 2827 | 237363200 |
Back to search problems