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 |
---|---|---|---|---|---|---|
1603 | Codeforces Round 752 (Div. 1) | FINISHED | False | 7200 | 101575463 | Oct. 30, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 16922 ) | A | Di-visible Confusion | PROGRAMMING | constructive algorithms math number theory | 1300 |
B'YouKn0wWho has an integer sequence a_1, a_2, ldots, a_n . He will perform the following operation until the sequence becomes empty: select an index i such that 1 <= i <= |a| and a_i is not divisible by (i + 1) , and erase this element from the sequence. Here |a| is the length of sequence a at the moment of operation. Note that the sequence a changes and the next operation is performed on this changed sequence. For example, if a=[3,5,4,5] , then he can select i = 2 , because a_2 = 5 is not divisible by i+1 = 3 . After this operation the sequence is [3,4,5] . Help YouKn0wWho determine if it is possible to erase the whole sequence using the aforementioned operation. The first line contains a single integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ). It is guaranteed that the sum of n over all test cases doesn 't exceed 3 cdot 10^5 . For each test case, print "YES" (without quotes) if it is possible to erase the whole sequence using the aforementioned operation, print "NO" (without quotes) otherwise. You can print each letter in any register (upper or lower). In the first test case, YouKn0wWho can perform the following operations (the erased elements are underlined): [1, underline{2}, 3] rightarrow [ underline{1}, 3] rightarrow [ underline{3}] rightarrow [ ,]. In the second test case, it is impossible to erase the sequence as i can only be 1 , and when i=1 , a_1 = 2 is divisible by i + 1 = 2 . '... |
Editorial of Codeforces Round #752 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
133622564 | Gassa | A | Oct. 30, 2021, 2:42 p.m. | OK | D | TESTS | 32 | 109 | 16793600 | 1300 | |
133618559 | hos.lyric | A | Oct. 30, 2021, 2:39 p.m. | OK | D | TESTS | 32 | 124 | 16793600 | 1300 | |
133706193 | lelouch-of-the-code | A | Oct. 30, 2021, 9:51 p.m. | OK | GNU C11 | TESTS | 32 | 62 | 4505600 | 1300 | |
133690358 | rainboy | A | Oct. 30, 2021, 5:47 p.m. | OK | GNU C11 | TESTS | 32 | 93 | 3686400 | 1300 | |
133712199 | dianzikejidaxue | A | Oct. 31, 2021, 1:58 a.m. | OK | GNU C11 | TESTS | 32 | 93 | 4096000 | 1300 | |
133629338 | yx20201301 | A | Oct. 30, 2021, 2:49 p.m. | OK | GNU C++14 | TESTS | 32 | 31 | 2355200 | 1300 | |
133619464 | OguriCap | A | Oct. 30, 2021, 2:39 p.m. | OK | GNU C++14 | TESTS | 32 | 31 | 2764800 | 1300 | |
133617606 | jiangxuancheng | A | Oct. 30, 2021, 2:38 p.m. | OK | GNU C++14 | TESTS | 32 | 31 | 3174400 | 1300 | |
133624074 | lzr_010506 | A | Oct. 30, 2021, 2:44 p.m. | OK | GNU C++14 | TESTS | 32 | 31 | 3584000 | 1300 | |
133626557 | XYFAN | A | Oct. 30, 2021, 2:46 p.m. | OK | GNU C++14 | TESTS | 32 | 31 | 6451200 | 1300 | |
133716628 | Armata _zay Spitfirekindergarten | A | Oct. 31, 2021, 3:44 a.m. | OK | GNU C++14 | TESTS | 32 | 31 | 7168000 | 1300 | |
133643430 | cunzai_zsy0531 | A | Oct. 30, 2021, 3:08 p.m. | OK | GNU C++14 | TESTS | 32 | 31 | 220364800 | 1300 | |
133630990 | IRC | A | Oct. 30, 2021, 2:51 p.m. | OK | GNU C++14 | TESTS | 32 | 46 | 9830400 | 1300 | |
133621522 | anodaram | A | Oct. 30, 2021, 2:41 p.m. | OK | GNU C++14 | TESTS | 32 | 77 | 1024000 | 1300 | |
133714466 | Yugank_Singh | A | Oct. 31, 2021, 2:56 a.m. | OK | GNU C++14 | TESTS | 32 | 78 | 1024000 | 1300 | |
133641873 | xiaoxiaobaozi | A | Oct. 30, 2021, 3:06 p.m. | OK | GNU C++17 | TESTS | 32 | 31 | 4812800 | 1300 | |
133627012 | acwing_meow | A | Oct. 30, 2021, 2:47 p.m. | OK | GNU C++17 | TESTS | 32 | 62 | 1433600 | 1300 | |
133619336 | natsugiri | A | Oct. 30, 2021, 2:39 p.m. | OK | GNU C++17 | TESTS | 32 | 62 | 1843200 | 1300 | |
133620867 | ssamt | A | Oct. 30, 2021, 2:41 p.m. | OK | GNU C++17 | TESTS | 32 | 77 | 1433600 | 1300 | |
133625977 | Lius | A | Oct. 30, 2021, 2:46 p.m. | OK | GNU C++17 | TESTS | 32 | 77 | 1433600 | 1300 | |
133636764 | aa2985759 | A | Oct. 30, 2021, 2:58 p.m. | OK | GNU C++17 | TESTS | 32 | 77 | 1843200 | 1300 | |
133645300 | BenjaR | A | Oct. 30, 2021, 3:11 p.m. | OK | GNU C++17 | TESTS | 32 | 77 | 3993600 | 1300 | |
133678554 | spy20051623 | A | Oct. 30, 2021, 4:23 p.m. | OK | GNU C++17 | TESTS | 32 | 78 | 1024000 | 1300 | |
133620393 | Parliament | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++17 | TESTS | 32 | 78 | 1024000 | 1300 | |
133654862 | zhanxufeng | A | Oct. 30, 2021, 3:28 p.m. | OK | GNU C++17 | TESTS | 32 | 78 | 1433600 | 1300 | |
133620125 | yz6205 | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 30 | 2048000 | 1300 | |
133620543 | yosupo | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 31 | 2560000 | 1300 | |
133618069 | LayCurse | A | Oct. 30, 2021, 2:38 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 31 | 3686400 | 1300 | |
133619624 | BreezeMYqwq | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 31 | 43827200 | 1300 | |
133627244 | njwrz | A | Oct. 30, 2021, 2:47 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 31 | 68915200 | 1300 | |
133620273 | jkjung | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 61 | 1638400 | 1300 | |
133632623 | tnowak | A | Oct. 30, 2021, 2:53 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 61 | 2048000 | 1300 | |
133629356 | Lain | A | Oct. 30, 2021, 2:49 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 61 | 2048000 | 1300 | |
133628155 | Aging1986 | A | Oct. 30, 2021, 2:48 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 61 | 2048000 | 1300 | |
133688600 | HimanshuG | A | Oct. 30, 2021, 5:33 p.m. | OK | GNU C++17 (64) | TESTS | 32 | 61 | 2048000 | 1300 | |
133621344 | pufanyi | A | Oct. 30, 2021, 2:41 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 31 | 1843200 | 1300 | |
133622952 | risujiroh | A | Oct. 30, 2021, 2:43 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 31 | 1945600 | 1300 | |
133619982 | DPair | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 31 | 2150400 | 1300 | |
133619858 | Bizarrerie | A | Oct. 30, 2021, 2:40 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 31 | 9420800 | 1300 | |
133701636 | Mehul_Chauhan | A | Oct. 30, 2021, 8:06 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 46 | 1228800 | 1300 | |
133620827 | fatemetmhr | A | Oct. 30, 2021, 2:41 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 46 | 1228800 | 1300 | |
133623599 | HollwoQ_Pelw | A | Oct. 30, 2021, 2:43 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 46 | 1228800 | 1300 | |
133618254 | Trump_Constructs_China | A | Oct. 30, 2021, 2:38 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 46 | 1638400 | 1300 | |
133689893 | ScarletS | A | Oct. 30, 2021, 5:43 p.m. | OK | GNU C++20 (64) | TESTS | 32 | 46 | 1638400 | 1300 | |
133715100 | Nero | A | Oct. 31, 2021, 3:10 a.m. | OK | GNU C++20 (64) | TESTS | 32 | 46 | 2048000 | 1300 | |
133623390 | clyring | A | Oct. 30, 2021, 2:43 p.m. | OK | Haskell | TESTS | 32 | 62 | 14233600 | 1300 | |
133723801 | dhruvil8804 | A | Oct. 31, 2021, 5:46 a.m. | OK | Java 11 | TESTS | 32 | 233 | 25497600 | 1300 | |
133632248 | mphillotry | A | Oct. 30, 2021, 2:52 p.m. | OK | Java 11 | TESTS | 32 | 264 | 25600000 | 1300 | |
133625173 | bobib | A | Oct. 30, 2021, 2:45 p.m. | OK | Java 11 | TESTS | 32 | 265 | 25600000 | 1300 | |
133622772 | Apfeloxid | A | Oct. 30, 2021, 2:42 p.m. | OK | Java 11 | TESTS | 32 | 265 | 26009600 | 1300 | |
133710103 | uxie | A | Oct. 31, 2021, 12:43 a.m. | OK | Java 11 | TESTS | 32 | 327 | 25600000 | 1300 | |
133619262 | Discombobulated | A | Oct. 30, 2021, 2:39 p.m. | OK | Java 11 | TESTS | 32 | 358 | 27136000 | 1300 | |
133690271 | bobbilyking | A | Oct. 30, 2021, 5:47 p.m. | OK | Java 11 | TESTS | 32 | 483 | 25600000 | 1300 | |
133719850 | ygonepiece | A | Oct. 31, 2021, 4:49 a.m. | OK | Java 8 | TESTS | 32 | 171 | 19763200 | 1300 | |
133634806 | thedesalizes | A | Oct. 30, 2021, 2:56 p.m. | OK | Java 8 | TESTS | 32 | 171 | 19865600 | 1300 | |
133703566 | medude | A | Oct. 30, 2021, 8:43 p.m. | OK | Java 8 | TESTS | 32 | 171 | 19865600 | 1300 | |
133628131 | DarLam | A | Oct. 30, 2021, 2:48 p.m. | OK | Java 8 | TESTS | 32 | 171 | 20172800 | 1300 | |
133623786 | YahiaSherif | A | Oct. 30, 2021, 2:43 p.m. | OK | Java 8 | TESTS | 32 | 187 | 19865600 | 1300 | |
133623142 | Teban54 | A | Oct. 30, 2021, 2:43 p.m. | OK | Java 8 | TESTS | 32 | 249 | 25088000 | 1300 | |
133651922 | plusplus6408 | A | Oct. 30, 2021, 3:23 p.m. | OK | Java 8 | TESTS | 32 | 530 | 19660800 | 1300 | |
133619696 | arvindf232 | A | Oct. 30, 2021, 2:40 p.m. | OK | Kotlin 1.4 | TESTS | 32 | 171 | 19968000 | 1300 | |
133625345 | koper | A | Oct. 30, 2021, 2:45 p.m. | OK | Kotlin 1.4 | TESTS | 32 | 295 | 28467200 | 1300 | |
133620140 | Tlatoani | A | Oct. 30, 2021, 2:40 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 405 | 25600000 | 1300 | |
133697296 | darnley | A | Oct. 30, 2021, 7:04 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 421 | 32665600 | 1300 | |
133618535 | elizarov | A | Oct. 30, 2021, 2:39 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 436 | 32665600 | 1300 | |
133621307 | darnley | A | Oct. 30, 2021, 2:41 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 436 | 32665600 | 1300 | |
133697516 | darnley | A | Oct. 30, 2021, 7:06 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 436 | 33689600 | 1300 | |
133697446 | darnley | A | Oct. 30, 2021, 7:06 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 467 | 33689600 | 1300 | |
133626329 | Musin | A | Oct. 30, 2021, 2:46 p.m. | OK | Kotlin 1.5 | TESTS | 32 | 514 | 38604800 | 1300 | |
133634994 | ComPhyPark | A | Oct. 30, 2021, 2:56 p.m. | OK | MS C++ 2017 | TESTS | 32 | 93 | 1945600 | 1300 | |
133633591 | tarattata1 | A | Oct. 30, 2021, 2:54 p.m. | OK | MS C++ 2017 | TESTS | 32 | 109 | 1945600 | 1300 | |
133626634 | forest | A | Oct. 30, 2021, 2:46 p.m. | OK | MS C++ 2017 | TESTS | 32 | 280 | 1945600 | 1300 | |
133697687 | grey | A | Oct. 30, 2021, 7:09 p.m. | OK | MS C++ 2017 | TESTS | 32 | 311 | 2150400 | 1300 | |
133716475 | Shiny_ruo | A | Oct. 31, 2021, 3:40 a.m. | OK | MS C++ 2017 | TESTS | 32 | 358 | 1945600 | 1300 | |
133626922 | Yupiteru | A | Oct. 30, 2021, 2:46 p.m. | OK | .NET Core C# | TESTS | 32 | 109 | 11980800 | 1300 | |
133640727 | riantkb | A | Oct. 30, 2021, 3:04 p.m. | OK | .NET Core C# | TESTS | 32 | 140 | 35225600 | 1300 | |
133647488 | hxu10 | A | Oct. 30, 2021, 3:15 p.m. | OK | PyPy 3 | TESTS | 32 | 233 | 35328000 | 1300 | |
133627200 | SPD_9X2 | A | Oct. 30, 2021, 2:47 p.m. | OK | PyPy 3 | TESTS | 32 | 358 | 30822400 | 1300 | |
133704780 | wolfram_ | A | Oct. 30, 2021, 9:10 p.m. | OK | PyPy 3 | TESTS | 32 | 373 | 31129600 | 1300 | |
133621267 | conqueror_of_tourist | A | Oct. 30, 2021, 2:41 p.m. | OK | PyPy 3 | TESTS | 32 | 374 | 30720000 | 1300 | |
133710598 | whatshisbucket | A | Oct. 31, 2021, 1:03 a.m. | OK | PyPy 3 | TESTS | 32 | 374 | 30822400 | 1300 | |
133721977 | 3juhwan | A | Oct. 31, 2021, 5:22 a.m. | OK | PyPy 3 | TESTS | 32 | 389 | 33177600 | 1300 | |
133622742 | misorin | A | Oct. 30, 2021, 2:42 p.m. | OK | PyPy 3 | TESTS | 32 | 390 | 30720000 | 1300 | |
133622280 | VTifand | A | Oct. 30, 2021, 2:42 p.m. | OK | PyPy 3 | TESTS | 32 | 390 | 36249600 | 1300 | |
133710916 | whatshisbucket | A | Oct. 31, 2021, 1:15 a.m. | OK | PyPy 3 | TESTS | 32 | 545 | 31641600 | 1300 | |
133710694 | whatshisbucket | A | Oct. 31, 2021, 1:07 a.m. | OK | PyPy 3 | TESTS | 32 | 577 | 31744000 | 1300 | |
133662949 | manish.17 | A | Oct. 30, 2021, 3:45 p.m. | OK | PyPy 3-64 | TESTS | 32 | 218 | 57139200 | 1300 | |
133707911 | zobar | A | Oct. 30, 2021, 10:55 p.m. | OK | PyPy 3-64 | TESTS | 32 | 342 | 52838400 | 1300 | |
133637795 | zii.hrs | A | Oct. 30, 2021, 3 p.m. | OK | PyPy 3-64 | TESTS | 32 | 389 | 48640000 | 1300 | |
133618381 | asdsasd | A | Oct. 30, 2021, 2:38 p.m. | OK | PyPy 3-64 | TESTS | 32 | 421 | 49561600 | 1300 | |
133707939 | zobar | A | Oct. 30, 2021, 10:56 p.m. | OK | PyPy 3-64 | TESTS | 32 | 483 | 48640000 | 1300 | |
133623347 | chinerist | A | Oct. 30, 2021, 2:43 p.m. | OK | PyPy 3-64 | TESTS | 32 | 561 | 61542400 | 1300 | |
133625181 | nwi | A | Oct. 30, 2021, 2:45 p.m. | OK | Python 2 | TESTS | 32 | 249 | 11980800 | 1300 | |
133637447 | belkka | A | Oct. 30, 2021, 2:59 p.m. | OK | Python 3 | TESTS | 32 | 218 | 12288000 | 1300 | |
133633329 | r57shell | A | Oct. 30, 2021, 2:54 p.m. | OK | Python 3 | TESTS | 32 | 389 | 13516800 | 1300 | |
133618781 | sansen | A | Oct. 30, 2021, 2:39 p.m. | OK | Rust | TESTS | 32 | 46 | 7577600 | 1300 | |
133619033 | qwerty787788 | A | Oct. 30, 2021, 2:39 p.m. | OK | Rust | TESTS | 32 | 77 | 7680000 | 1300 | |
133629525 | orz_liuwei | A | Oct. 30, 2021, 2:49 p.m. | OK | Rust | TESTS | 32 | 139 | 7577600 | 1300 |
Back to search problems