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 | 96218699 | Oct. 30, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 283 ) | F | October 18, 2017 | PROGRAMMING | combinatorics dp implementation math |
B'It was October 18, 2017. Shohag, a melancholic soul, made a strong determination that he will pursue Competitive Programming seriously, by heart, because he found it fascinating. Fast forward to 4 years, he is happy that he took this road. He is now creating a contest on Codeforces. He found an astounding problem but has no idea how to solve this. Help him to solve the final problem of the round. You are given three integers n , k and x . Find the number, modulo 998 ,244 ,353 , of integer sequences a_1, a_2, ldots, a_n such that the following conditions are satisfied: A sequence b is a subsequence of a sequence c if b can be obtained from c by deletion of several (possibly, zero or all) elements. The first line contains a single integer t ( 1 <= t <= 10^5 ) -- the number of test cases. The first and only line of each test case contains three space-separated integers n , k , and x ( 1 <= n <= 10^9 , 0 <= k <= 10^7 , 0 <= x lt 2^{ operatorname{min}(20, k)} ). It is guaranteed that the sum of k over all test cases does not exceed 5 cdot 10^7 . For each test case, print a single integer -- the answer to the problem. In the first test case, the valid sequences are [1, 2] , [1, 3] , [2, 1] , [2, 3] , [3, 1] and [3, 2] . In the second test case, the only valid sequence is [0, 0] . '... |
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 |
---|---|---|---|---|---|---|---|---|---|---|---|
133718559 | abcde1202 | F | Oct. 31, 2021, 4:24 a.m. | OK | GNU C++17 | TESTS | 55 | 2605 | 121344000 | ||
133669341 | djq_cpp | F | Oct. 30, 2021, 4 p.m. | OK | GNU C++17 | TESTS | 55 | 2651 | 121344000 | ||
133696846 | jtnydv25 | F | Oct. 30, 2021, 6:58 p.m. | OK | GNU C++17 | TESTS | 55 | 3821 | 81203200 | ||
133711345 | Alan233 | F | Oct. 31, 2021, 1:30 a.m. | OK | GNU C++17 (64) | TESTS | 55 | 514 | 121446400 | ||
133688639 | Nyaan | F | Oct. 30, 2021, 5:34 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 546 | 41369600 | ||
133700346 | ecnerwala | F | Oct. 30, 2021, 7:47 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 561 | 41267200 | ||
133709673 | Benq | F | Oct. 31, 2021, 12:23 a.m. | OK | GNU C++17 (64) | TESTS | 55 | 623 | 81408000 | ||
133667397 | Itst_boyfriend | F | Oct. 30, 2021, 3:55 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 1060 | 321843200 | ||
133713527 | q-w-q-w-q | F | Oct. 31, 2021, 2:34 a.m. | OK | GNU C++17 (64) | TESTS | 55 | 1138 | 121958400 | ||
133689451 | maroonrk | F | Oct. 30, 2021, 5:40 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 1294 | 281804800 | ||
133679782 | hos.lyric | F | Oct. 30, 2021, 4:26 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 1387 | 321843200 | ||
133694728 | Benq | F | Oct. 30, 2021, 6:32 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 1840 | 81920000 | ||
133688893 | Rafbill | F | Oct. 30, 2021, 5:35 p.m. | OK | GNU C++17 (64) | TESTS | 55 | 2370 | 179404800 | ||
133720215 | jiangly | F | Oct. 31, 2021, 4:55 a.m. | OK | GNU C++20 (64) | TESTS | 55 | 639 | 121548800 | ||
133708816 | lmnopqrst | F | Oct. 30, 2021, 11:40 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 982 | 241766400 | ||
133707601 | lmnopqrst | F | Oct. 30, 2021, 10:42 p.m. | OK | GNU C++20 (64) | TESTS | 55 | 1138 | 241766400 |
Back to search problems