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 |
---|---|---|---|---|---|---|
1874 | Codeforces Round 901 (Div. 1) | FINISHED | False | 10800 | 35738699 | Sept. 30, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 215 ) | F | Jellyfish and OEIS | PROGRAMMING | dp |
B'Jellyfish always uses OEIS to solve math problems, but now she finds a problem that cannot be solved by OEIS: Count the number of permutations p of [1, 2, ... , n] such that for all (l, r) such that l <= q r <= q m_l , the subarray [p_l, p_{l+1}, ... , p_r] is not a permutation of [l, l+1, ... , r] . Since the answer may be large, you only need to find the answer modulo 10^9+7 . The first line of the input contains a single integer n ( 1 <= q n <= q 200 ) -- the length of the permutation. The second line of the input contains n integers m_1, m_2, ... , m_n ( 0 <= q m_i <= q n ). Output the number of different permutations that satisfy the conditions, modulo 10^9+7 . In the first example, [2, 3, 1] and [3, 1, 2] satisfies the condition. '... |
Codeforces Round 901 (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 |
---|---|---|---|---|---|---|---|---|---|---|---|
226084082 | rainboy | F | Sept. 30, 2023, 9:08 p.m. | OK | GNU C11 | TESTS | 120 | 873 | 307200 | ||
226057161 | Salley-Garden | F | Sept. 30, 2023, 5:21 p.m. | OK | GNU C++17 (64) | TESTS | 120 | 124 | 307200 | ||
226099033 | Crystally | F | Oct. 1, 2023, 2:46 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 186 | 35532800 | ||
226098861 | Crystally | F | Oct. 1, 2023, 2:43 a.m. | OK | GNU C++17 (64) | TESTS | 120 | 218 | 35532800 | ||
226084133 | rainboy | F | Sept. 30, 2023, 9:09 p.m. | OK | GNU C++17 (64) | TESTS | 120 | 280 | 204800 | ||
226041334 | orzdevinwang | F | Sept. 30, 2023, 4:42 p.m. | OK | GNU C++17 (64) | TESTS | 120 | 327 | 716800 | ||
226045179 | amiya | F | Sept. 30, 2023, 4:51 p.m. | OK | GNU C++17 (64) | TESTS | 120 | 374 | 75161600 | ||
226024417 | ecnerwala | F | Sept. 30, 2023, 4:25 p.m. | OK | GNU C++20 (64) | TESTS | 120 | 140 | 512000 | ||
226105060 | zhouhuanyi | F | Oct. 1, 2023, 4:16 a.m. | OK | GNU C++20 (64) | TESTS | 120 | 156 | 33484800 | ||
226083158 | Benq | F | Sept. 30, 2023, 8:53 p.m. | OK | GNU C++20 (64) | TESTS | 120 | 312 | 819200 | ||
226100332 | bhavanamusini | F | Oct. 1, 2023, 3:07 a.m. | OK | GNU C++20 (64) | TESTS | 120 | 499 | 614400 | ||
226061315 | Qingyu | F | Sept. 30, 2023, 5:31 p.m. | OK | GNU C++20 (64) | TESTS | 120 | 514 | 614400 | ||
226055202 | tourist | F | Sept. 30, 2023, 5:15 p.m. | OK | GNU C++20 (64) | TESTS | 120 | 592 | 409600 | ||
226054781 | Benq | F | Sept. 30, 2023, 5:14 p.m. | OK | GNU C++20 (64) | TESTS | 120 | 1326 | 3584000 | ||
226001871 | i_will_be_less_than_blue | F | Sept. 30, 2023, 4 p.m. | OK | GNU C++20 (64) | TESTS | 120 | 1590 | 75366400 | ||
226094016 | cnnfls_csy | F | Oct. 1, 2023, 1:15 a.m. | OK | GNU C++20 (64) | TESTS | 120 | 1918 | 70041600 | ||
226097102 | hayley17 | F | Oct. 1, 2023, 2:14 a.m. | OK | GNU C++20 (64) | TESTS | 120 | 1918 | 70041600 |
Back to search problems