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 |
|---|---|---|---|---|---|---|
| 2260 | Educational Codeforces Round 194 (Rated for Div. 2) | FINISHED | False | 7200 | 2388300 | Sept. 8, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 232 ) | G | Sortable Permutations | PROGRAMMING | brute force combinatorics math number theory |
A permutation of size (n) is an array of length (n) in which every integer from (1) to (n) appears exactly once. We call a permutation sortable if there exists an integer (x\ge 2) such that the following property holds: if we remove from the permutation all elements at positions divisible by (x), then the remaining array is strictly increasing. In other words, the elements at positions (x,2x,3x,\ldots), not exceeding (n), are removed, the order of the remaining elements is unchanged, and the resulting array must be strictly increasing. Positions are numbered starting from (1). Count the number of sortable permutations of size (n). Since the answer may be very large, output it modulo (998244353). The only line contains one integer (n) ((1\le n\le 2\cdot10^5)) — the size of the permutation. Output one integer — the number of sortable permutations of size (n), taken modulo (998244353). In the first example, the only permutation is (1). For (x=2), nothing is removed, and the sequence is already sorted. In the second example, the sortable permutations are (1,2,3), (1,3,2), (2,1,3), and (2,3,1). For example, for the permutation (2,1,3), (x=2) works: after removing the second element, the sequence (2,3) remains. In the third example, one of the sortable permutations is (1,3,6,4,5,2). For (x=3), the elements at positions (3) and (6) are removed, after which the strictly increasing sequence (1,3,4,5) remains. |
| 156529 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 390146042 | Midhilesh | G | Sept. 9, 2026, 9 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 62 | 2048000 | ||
| 389969651 | 0nsec | G | Sept. 8, 2026, 7:08 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 78 | 13926400 | ||
| 389957474 | Shiv_am__08 | G | Sept. 8, 2026, 5:03 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 93 | 3276800 | ||
| 389966163 | subhankarsutradhar2004 | G | Sept. 8, 2026, 6:23 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 93 | 7270400 | ||
| 389989440 | hardikdhingra150 | G | Sept. 9, 2026, 3:53 a.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 781 | 70348800 | ||
| 390145871 | Midhilesh | G | Sept. 9, 2026, 8:56 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 796 | 70348800 | ||
| 390099965 | parthkumar1802 | G | Sept. 9, 2026, 2:14 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 843 | 103219200 | ||
| 390109354 | IlllIlll | G | Sept. 9, 2026, 3:14 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 1171 | 3891200 | ||
| 390063903 | JPMM | G | Sept. 9, 2026, 10:48 a.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 1484 | 105881600 | ||
| 389975852 | UltimateChoker | G | Sept. 8, 2026, 9:02 p.m. | OK | C++17 (GCC 7-32) | TESTS | 19 | 2750 | 205312000 | ||
| 390090143 | masy2011 | G | Sept. 9, 2026, 1:43 p.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 93 | 4403200 | ||
| 390005372 | Acc_Robin | G | Sept. 9, 2026, 7:58 a.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 93 | 5222400 | ||
| 389963371 | GrandMasterRED | G | Sept. 8, 2026, 5:54 p.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 93 | 6451200 | ||
| 390024460 | gopal.thecoder | G | Sept. 9, 2026, 9:34 a.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 93 | 7270400 | ||
| 390139304 | zapmind | G | Sept. 9, 2026, 6:59 p.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 140 | 11878400 | ||
| 389968462 | 415411 | G | Sept. 8, 2026, 6:51 p.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 734 | 116531200 | ||
| 390011070 | khanhtai | G | Sept. 9, 2026, 9:09 a.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 968 | 94822400 | ||
| 389970037 | d0610 | G | Sept. 8, 2026, 7:14 p.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 2031 | 404684800 | ||
| 389972449 | 11rrrr | G | Sept. 8, 2026, 7:53 p.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 2109 | 402022400 | ||
| 389988994 | no_more_noip258 | G | Sept. 9, 2026, 3:44 a.m. | OK | C++20 (GCC 13-64) | TESTS | 19 | 2187 | 500736000 | ||
| 390098559 | jiangly | G | Sept. 9, 2026, 2:02 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 78 | 2048000 | ||
| 389989366 | jackylova_fan_fan_fan | G | Sept. 9, 2026, 3:51 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 78 | 5324800 | ||
| 389996634 | ankitraj803120 | G | Sept. 9, 2026, 6:05 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 93 | 2150400 | ||
| 389968709 | adityajay6661 | G | Sept. 8, 2026, 6:55 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 93 | 4198400 | ||
| 390053097 | Tryent | G | Sept. 9, 2026, 9:42 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 93 | 7270400 | ||
| 389959707 | Suryansh129 | G | Sept. 8, 2026, 5:21 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 109 | 7270400 | ||
| 390076538 | liaoyanxu | G | Sept. 9, 2026, 12:56 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 109 | 13516800 | ||
| 389977550 | Mangooste | G | Sept. 8, 2026, 9:46 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 140 | 1740800 | ||
| 389977535 | Mangooste | G | Sept. 8, 2026, 9:45 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 156 | 1740800 | ||
| 389979227 | moonhero | G | Sept. 8, 2026, 10:46 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 19 | 218 | 16076800 | ||
| 390127372 | Maquia | G | Sept. 9, 2026, 5:11 p.m. | OK | FPC | TESTS | 19 | 78 | 1843200 | ||
| 389976175 | KAVTHI3125 | G | Sept. 8, 2026, 9:10 p.m. | OK | Go | TESTS | 19 | 5875 | 862412800 | ||
| 390133501 | Yashwanth_reddy124 | G | Sept. 9, 2026, 5:57 p.m. | OK | Java 21 | TESTS | 19 | 2281 | 292556800 | ||
| 390141362 | varshaps5610 | G | Sept. 9, 2026, 7:28 p.m. | OK | Java 21 | TESTS | 19 | 2421 | 286412800 | ||
| 390065466 | RITHIKA28 | G | Sept. 9, 2026, 11:07 a.m. | OK | Java 21 | TESTS | 19 | 2687 | 324403200 | ||
| 390148621 | updeshsingh010 | G | Sept. 9, 2026, 10:21 p.m. | OK | Java 21 | TESTS | 19 | 2796 | 282931200 | ||
| 390072017 | kembu | G | Sept. 9, 2026, 12:16 p.m. | OK | Java 8 | TESTS | 19 | 2703 | 89907200 | ||
| 390141008 | venkateshaa04 | G | Sept. 9, 2026, 7:23 p.m. | OK | Java 8 | TESTS | 19 | 2734 | 266342400 | ||
| 389991660 | BeforeRedemption | G | Sept. 9, 2026, 4:35 a.m. | OK | PyPy 3-64 | TESTS | 19 | 3593 | 398643200 | ||
| 390154647 | ramumali2002 | G | Sept. 10, 2026, 2:07 a.m. | OK | PyPy 3-64 | TESTS | 19 | 3656 | 265011200 | ||
| 390064370 | code.demon | G | Sept. 9, 2026, 10:54 a.m. | OK | Python 3 | TESTS | 19 | 7906 | 347852800 | ||
| 389995053 | SamarthMishra_29 | G | Sept. 9, 2026, 5:38 a.m. | OK | Python 3 | TESTS | 19 | 8000 | 347852800 |
Back to search problems