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 |
---|---|---|---|---|---|---|
1842 | CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) | FINISHED | False | 10800 | 49650863 | June 24, 2023, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 722 ) | H | Tenzing and Random Real Numbers | PROGRAMMING | 2-sat bitmasks dp probabilities |
B'There are n uniform random real variables between 0 and 1, inclusive, which are denoted as x_1, x_2, ldots, x_n . Tenzing has m conditions. Each condition has the form of x_i+x_j <= 1 or x_i+x_j ge 1 . Tenzing wants to know the probability that all the conditions are satisfied, modulo 998~244~353 . Formally, let M = 998~244~353 . It can be shown that the answer can be expressed as an irreducible fraction frac{p}{q} , where p and q are integers and q not equiv 0 pmod{M} . Output the integer equal to p cdot q^{-1} bmod M . In other words, output the integer x that 0 <= x < M and x cdot q equiv p pmod{M} . The first line contains two integers n and m ( 1 <= n <= 20 , 0 <= m <= n^2+n ). Then following m lines of input contains three integers t , i and j ( t in {0,1 } , 1 <= i <= j <= n ). It is guaranteed that all conditions are pairwise distinct. Output the probability that all the conditions are satisfied, modulo M = 998~244~353 . In the first test case, the conditions are x_1+x_2 <= 1 and x_3+x_3 ge 1 , and the probability that each condition is satisfied is frac 12 , so the probability that they are both satisfied is frac 12 cdot frac 12= frac 14 , modulo 998~244~353 is equal to 748683265 . In the second test case, the answer is frac 14 . In the third test case, the answer is frac 1{16} . In the fourth test case, the sum of all variables must equal 2 , so the probability is 0 . '... |
CodeTON Round 5 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
210964697 | rainboy | H | June 24, 2023, 7:45 p.m. | OK | GNU C11 | TESTS | 65 | 171 | 12595200 | ||
210944912 | gisp_zjz | H | June 24, 2023, 4:43 p.m. | OK | GNU C++14 | TESTS | 64 | 109 | 4198400 | ||
210985118 | KING_OF_TURTLE | H | June 25, 2023, 3:17 a.m. | OK | GNU C++14 | TESTS | 65 | 140 | 4198400 | ||
210946319 | newbie_wrz | H | June 24, 2023, 4:49 p.m. | OK | GNU C++14 | TESTS | 64 | 171 | 15667200 | ||
210945419 | dottle | H | June 24, 2023, 4:45 p.m. | OK | GNU C++14 | TESTS | 64 | 265 | 8499200 | ||
210969855 | Potassium | H | June 24, 2023, 8:58 p.m. | OK | GNU C++14 | TESTS | 65 | 546 | 8601600 | ||
210956795 | Ecrade_ | H | June 24, 2023, 6:19 p.m. | OK | GNU C++14 | TESTS | 65 | 998 | 8601600 | ||
210957505 | HuTao_Oya_OyaOya | H | June 24, 2023, 6:25 p.m. | OK | GNU C++17 | TESTS | 65 | 93 | 4198400 | ||
210979197 | OIerkzc_love_10circle | H | June 25, 2023, 12:39 a.m. | OK | GNU C++17 | TESTS | 65 | 93 | 4198400 | ||
210963608 | AliShahali1382 | H | June 24, 2023, 7:32 p.m. | OK | GNU C++17 | TESTS | 65 | 156 | 8396800 | ||
210945932 | yuto1115 | H | June 24, 2023, 4:47 p.m. | OK | GNU C++17 | TESTS | 64 | 342 | 8396800 | ||
210953974 | i_will_be_less_than_blue | H | June 24, 2023, 5:59 p.m. | OK | GNU C++17 | TESTS | 64 | 811 | 8396800 | ||
210987107 | Forested | H | June 25, 2023, 4:03 a.m. | OK | GNU C++17 | TESTS | 65 | 842 | 4710400 | ||
210978959 | Kubic | H | June 25, 2023, 12:32 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 78 | 4198400 | ||
210985313 | yyyyxh | H | June 25, 2023, 3:22 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 93 | 4096000 | ||
210987191 | Larry0101 | H | June 25, 2023, 4:05 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 93 | 4198400 | ||
210944029 | q-w-q-w-q | H | June 24, 2023, 4:39 p.m. | OK | GNU C++17 (64) | TESTS | 64 | 93 | 4198400 | ||
210981117 | neal | H | June 25, 2023, 1:33 a.m. | OK | GNU C++17 (64) | TESTS | 65 | 93 | 8192000 | ||
210966673 | PurpleCrayon | H | June 24, 2023, 8:13 p.m. | OK | GNU C++17 (64) | TESTS | 65 | 93 | 8396800 | ||
210943236 | kotatsugame | H | June 24, 2023, 4:36 p.m. | OK | GNU C++17 (64) | TESTS | 64 | 109 | 4198400 | ||
210937664 | noimi | H | June 24, 2023, 4:16 p.m. | OK | GNU C++17 (64) | TESTS | 64 | 109 | 4198400 | ||
210945702 | zihouzhong | H | June 24, 2023, 4:46 p.m. | OK | GNU C++17 (64) | TESTS | 64 | 109 | 4198400 | ||
210950277 | AoLiGei | H | June 24, 2023, 5:04 p.m. | OK | GNU C++17 (64) | TESTS | 64 | 109 | 8396800 | ||
210968778 | ikaurov | H | June 24, 2023, 8:42 p.m. | OK | GNU C++20 (64) | TESTS | 65 | 78 | 4198400 | ||
210988670 | juju527 | H | June 25, 2023, 4:37 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 78 | 12595200 | ||
210944236 | BeyondHeaven | H | June 24, 2023, 4:40 p.m. | OK | GNU C++20 (64) | TESTS | 64 | 93 | 4198400 | ||
210984934 | Elegia | H | June 25, 2023, 3:12 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 4198400 | ||
210989743 | xiaoziya | H | June 25, 2023, 4:59 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 4198400 | ||
210988505 | nishkarsh | H | June 25, 2023, 4:33 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 4198400 | ||
210982114 | xianboyu | H | June 25, 2023, 2:01 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 4198400 | ||
210980755 | sjc061031 | H | June 25, 2023, 1:23 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 4198400 | ||
210980618 | DerekFeng | H | June 25, 2023, 1:19 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 4198400 | ||
210985946 | 765 | H | June 25, 2023, 3:37 a.m. | OK | GNU C++20 (64) | TESTS | 65 | 93 | 8396800 | ||
210941747 | top73only | H | June 24, 2023, 4:30 p.m. | OK | Kotlin 1.6 | TESTS | 64 | 904 | 83660800 |
Back to search problems