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 |
---|---|---|---|---|---|---|
1295 | Educational Codeforces Round 81 (Rated for Div. 2) | FINISHED | False | 7200 | 151514699 | Jan. 29, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1272 ) | F | Good Contest | PROGRAMMING | combinatorics dp probabilities | 2600 |
B'An online contest will soon be held on ForceCoders, a large competitive programming platform. The authors have prepared n problems; and since the platform is very popular, 998244351 coder from all over the world is going to solve them. For each problem, the authors estimated the number of people who would solve it: for the i -th problem, the number of accepted solutions will be between l_i and r_i , inclusive. The creator of ForceCoders uses different criteria to determine if the contest is good or bad. One of these criteria is the number of inversions in the problem order. An inversion is a pair of problems (x, y) such that x is located earlier in the contest ( x < y ), but the number of accepted solutions for y is strictly greater. Obviously, both the creator of ForceCoders and the authors of the contest want the contest to be good. Now they want to calculate the probability that there will be no inversions in the problem order, assuming that for each problem i , any integral number of accepted solutions for it (between l_i and r_i ) is equally probable, and all these numbers are independent. The first line contains one integer n ( 2 <= n <= 50 ) -- the number of problems in the contest. Then n lines follow, the i -th line contains two integers l_i and r_i ( 0 <= l_i <= r_i <= 998244351 ) -- the minimum and maximum number of accepted solutions for the i -th problem, respectively. The probability that there will be no inversions in the contest can be expressed as an irreducible fraction frac{x}{y} , where y is coprime with 998244353 . Print one integer -- the value of xy^{-1} , taken modulo 998244353 , where y^{-1} is an integer such that yy^{-1} equiv 1 (mod 998244353) . The real answer in the first test is frac{1}{2} . '... |
Educational Codeforces Round 81 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
70187405 | alpeevandrey | F | Feb. 3, 2020, 11:03 p.m. | OK | GNU C11 | TESTS | 90 | 31 | 0 | 2600 | |
70161510 | 17wh1a1235 | F | Feb. 3, 2020, 3:22 p.m. | OK | GNU C11 | TESTS | 90 | 46 | 0 | 2600 | |
70537104 | skydogli | F | Feb. 8, 2020, 3:55 a.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70495382 | pyf | F | Feb. 7, 2020, 10:23 a.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70341540 | kal0rona | F | Feb. 5, 2020, 8:33 a.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70149006 | wasa855 | F | Feb. 3, 2020, 12:30 p.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70003471 | xyyf | F | Feb. 2, 2020, 3:22 a.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
69963659 | CTP_314 | F | Feb. 1, 2020, 12:08 p.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70565845 | KyuushuKyuuhai | F | Feb. 8, 2020, 1:09 p.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70562363 | yuzhechuan | F | Feb. 8, 2020, 12:14 p.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70790822 | hsfzLZH1 | F | Feb. 11, 2020, 2 p.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
70785805 | newbiechd | F | Feb. 11, 2020, 12:19 p.m. | OK | GNU C++11 | TESTS | 90 | 31 | 0 | 2600 | |
69784034 | natsugiri | F | Jan. 29, 2020, 4:52 p.m. | OK | GNU C++14 | TESTS | 90 | 30 | 1228800 | 2600 | |
69902274 | SidneySun | F | Jan. 31, 2020, 1:18 p.m. | OK | GNU C++14 | TESTS | 90 | 31 | 0 | 2600 | |
70527698 | Peti | F | Feb. 7, 2020, 8:26 p.m. | OK | GNU C++14 | TESTS | 90 | 31 | 0 | 2600 | |
70335782 | 860579 | F | Feb. 5, 2020, 7:10 a.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
70216776 | lztnb | F | Feb. 4, 2020, 9:56 a.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
70211850 | lztnb | F | Feb. 4, 2020, 8:30 a.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
69905371 | LODB---D | F | Jan. 31, 2020, 2 p.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
69839334 | ytriayggg | F | Jan. 30, 2020, 12:43 p.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
70235628 | Jian_Ron | F | Feb. 4, 2020, 1:32 p.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
70455719 | Siddique_Badhon | F | Feb. 6, 2020, 5:25 p.m. | OK | GNU C++14 | TESTS | 90 | 31 | 102400 | 2600 | |
69879879 | besieger | F | Jan. 31, 2020, 5:55 a.m. | OK | GNU C++17 | TESTS | 90 | 30 | 204800 | 2600 | |
70836985 | waynetuinfor | F | Feb. 12, 2020, 10:32 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
70567775 | Pi_Yuan_Yuan | F | Feb. 8, 2020, 1:37 p.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
70001418 | Primusa | F | Feb. 2, 2020, 1:56 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69953845 | ArshiaDadras | F | Feb. 1, 2020, 9:38 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69953754 | ltf0501 | F | Feb. 1, 2020, 9:37 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69940799 | Falcon__ | F | Feb. 1, 2020, 6:05 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69920490 | DamianS | F | Jan. 31, 2020, 6:16 p.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69910783 | ftiasch | F | Jan. 31, 2020, 3:19 p.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69875970 | Max.D. | F | Jan. 31, 2020, 4:02 a.m. | OK | GNU C++17 | TESTS | 90 | 31 | 0 | 2600 | |
69786269 | LorDick | F | Jan. 29, 2020, 5:17 p.m. | OK | Java 11 | TESTS | 90 | 187 | 0 | 2600 | |
69799274 | Dukkha | F | Jan. 29, 2020, 9:35 p.m. | OK | Java 11 | TESTS | 90 | 218 | 0 | 2600 | |
69905083 | BiIIy | F | Jan. 31, 2020, 1:56 p.m. | OK | Java 8 | TESTS | 90 | 124 | 0 | 2600 | |
69796989 | icpc_loser | F | Jan. 29, 2020, 8:31 p.m. | OK | Java 8 | TESTS | 90 | 124 | 0 | 2600 | |
69772489 | uwi | F | Jan. 29, 2020, 4:07 p.m. | OK | Java 8 | TESTS | 90 | 124 | 0 | 2600 | |
70012694 | dalt | F | Feb. 2, 2020, 7:22 a.m. | OK | Java 8 | TESTS | 90 | 139 | 19558400 | 2600 | |
70012533 | dalt | F | Feb. 2, 2020, 7:18 a.m. | OK | Java 8 | TESTS | 90 | 140 | 19456000 | 2600 | |
69904034 | BiIIy | F | Jan. 31, 2020, 1:42 p.m. | OK | Java 8 | TESTS | 90 | 156 | 0 | 2600 | |
69802314 | BiIIy | F | Jan. 29, 2020, 11:19 p.m. | OK | Java 8 | TESTS | 90 | 156 | 0 | 2600 | |
69921298 | Taran_1407 | F | Jan. 31, 2020, 6:30 p.m. | OK | Java 8 | TESTS | 90 | 233 | 0 | 2600 | |
69974968 | dalt | F | Feb. 1, 2020, 2:45 p.m. | OK | Java 8 | TESTS | 90 | 248 | 20889600 | 2600 | |
69974250 | dalt | F | Feb. 1, 2020, 2:34 p.m. | OK | Java 8 | TESTS | 90 | 623 | 20787200 | 2600 | |
69931200 | Spheniscine | F | Jan. 31, 2020, 11:56 p.m. | OK | Kotlin | TESTS | 90 | 171 | 1228800 | 2600 | |
69875737 | Spheniscine | F | Jan. 31, 2020, 3:53 a.m. | OK | Kotlin | TESTS | 90 | 171 | 1228800 | 2600 | |
70344874 | vjudge4 | F | Feb. 5, 2020, 9:22 a.m. | OK | MS C++ | TESTS | 90 | 171 | 1740800 | 2600 | |
69852909 | AleksanderBalobanov | F | Jan. 30, 2020, 4:09 p.m. | OK | MS C++ 2017 | TESTS | 90 | 31 | 1024000 | 2600 | |
69792320 | pichulia | F | Jan. 29, 2020, 6:54 p.m. | OK | MS C++ 2017 | TESTS | 90 | 546 | 307200 | 2600 | |
69791856 | pichulia | F | Jan. 29, 2020, 6:45 p.m. | OK | MS C++ 2017 | TESTS | 90 | 2682 | 307200 | 2600 | |
69980203 | pineriver | F | Feb. 1, 2020, 4:06 p.m. | OK | PyPy 3 | TESTS | 90 | 202 | 6553600 | 2600 | |
69787953 | s34vv1nd | F | Jan. 29, 2020, 5:41 p.m. | OK | PyPy 3 | TESTS | 90 | 436 | 8499200 | 2600 | |
70679977 | Erron | F | Feb. 9, 2020, 4:21 p.m. | OK | PyPy 3 | TESTS | 90 | 467 | 8601600 | 2600 | |
69955482 | prashanth7638 | F | Feb. 1, 2020, 10:02 a.m. | OK | Python 3 | TESTS | 90 | 2184 | 307200 | 2600 | |
69792134 | sansen | F | Jan. 29, 2020, 6:50 p.m. | OK | Rust | TESTS | 90 | 46 | 204800 | 2600 |
Back to search problems