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 |
---|---|---|---|---|---|---|
1866 | COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 43437263 | Sept. 3, 2023, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 833 ) | M | Mighty Rock Tower | PROGRAMMING | combinatorics dp math probabilities |
B'Pak Chanek comes up with an idea in the midst of boredom to play a game. The game is a rock tower game. There is a big rock that is used as a base. There are also N small identical rocks that Pak Chanek will use to build a rock tower with a height of N above the base rock. Initially, there are no small rocks that are located above the base rock. In other words, the height of the tower above the base rock is initially 0 . In one move, Pak Chanek can place one small rock onto the top of the tower which makes the height of the tower above the base rock increase by 1 . Each time Pak Chanek place one small rock, the following will happen after the small rock is placed: If the tower successfully reaches a height of N without any rocks falling after that, then the game is ended. If given an integer array [P_1, P_2, ldots, P_N] , what is the expected value of the number of moves that Pak Chanek needs to do to end the game? It can be proven that the expected value can be represented as an simple fraction frac{P}{Q} where Q is coprime to 998 ,244 ,353 . Output the value of P x Q^{-1} modulo 998 ,244 ,353 . The first line contains a single integer N ( 1 <= q N <= q 2 cdot10^5 ) -- the required height of the rock tower. The second line contains N integers P_1, P_2, P_3, ldots, P_N ( 0 <= q P_i <= q 99 ). An integer representing the expected value of the number of moves that Pak Chanek needs to do to end the game, modulo 998 ,244 ,353 . In the first example, the expected value of the number of moves that Pak Chanek needs to do to end the game is frac{19}{2} . '... |
COMPFEST 15 Preliminary — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
221772019 | Sai_Rohit-30021 | M | Sept. 4, 2023, 5:02 a.m. | OK | Clang++20 Diagnostics | TESTS | 22 | 1887 | 0 | ||
221764451 | XZC__Bobby | M | Sept. 4, 2023, 2:52 a.m. | OK | GNU C++14 | TESTS | 22 | 312 | 2457600 | ||
221745256 | hhoangcp | M | Sept. 3, 2023, 7:50 p.m. | OK | GNU C++14 | TESTS | 22 | 358 | 409600 | ||
221697378 | StarSilk | M | Sept. 3, 2023, 1:55 p.m. | OK | GNU C++14 | TESTS | 22 | 373 | 165171200 | ||
221772566 | lamduybao03 | M | Sept. 4, 2023, 5:10 a.m. | OK | GNU C++14 | TESTS | 22 | 592 | 169779200 | ||
221706146 | pl_er yspm PureMotivation | M | Sept. 3, 2023, 2:43 p.m. | OK | GNU C++14 | TESTS | 22 | 655 | 163532800 | ||
221727365 | EasonLiang | M | Sept. 3, 2023, 5:10 p.m. | OK | GNU C++14 | TESTS | 22 | 1871 | 334336000 | ||
221770071 | hasithasowmya | M | Sept. 4, 2023, 4:29 a.m. | OK | GNU C++17 | TESTS | 22 | 358 | 165171200 | ||
221691754 | sapphire15 tokusakurai torisasami | M | Sept. 3, 2023, 1:26 p.m. | OK | GNU C++17 | TESTS | 22 | 405 | 2867200 | ||
221737687 | bobbilyking m0nster.eXe dbaumg | M | Sept. 3, 2023, 6:44 p.m. | OK | GNU C++17 | TESTS | 22 | 421 | 6451200 | ||
221775218 | Pyqe | M | Sept. 4, 2023, 5:48 a.m. | OK | GNU C++17 | TESTS | 22 | 468 | 3174400 | ||
221712441 | potato167 | M | Sept. 3, 2023, 3:23 p.m. | OK | GNU C++17 | TESTS | 22 | 499 | 1638400 | ||
221711613 | Lightwood13 | M | Sept. 3, 2023, 3:18 p.m. | OK | GNU C++17 | TESTS | 22 | 499 | 3993600 | ||
221709906 | VAntonuk dasha..zhilina i_love_penguins | M | Sept. 3, 2023, 3:06 p.m. | OK | GNU C++17 | TESTS | 22 | 530 | 164556800 | ||
221765185 | a757403 | M | Sept. 4, 2023, 3:06 a.m. | OK | GNU C++17 | TESTS | 22 | 576 | 162713600 | ||
221707754 | Potassium | M | Sept. 3, 2023, 2:53 p.m. | OK | GNU C++17 | TESTS | 22 | 655 | 3174400 | ||
221695080 | hank55663 | M | Sept. 3, 2023, 1:43 p.m. | OK | GNU C++17 | TESTS | 22 | 733 | 0 | ||
221751384 | wwdd | M | Sept. 3, 2023, 9:16 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 78 | 0 | ||
221716601 | SmartBamboo Misono_Mika Suiji_SUI | M | Sept. 3, 2023, 3:52 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 78 | 9625600 | ||
221707262 | Rubikun | M | Sept. 3, 2023, 2:50 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 93 | 819200 | ||
221719264 | yash_daga abhidot JaySharma1048576 | M | Sept. 3, 2023, 4:10 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 109 | 9625600 | ||
221712257 | Bucketsmith | M | Sept. 3, 2023, 3:22 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 124 | 1638400 | ||
221714874 | YocyCraft | M | Sept. 3, 2023, 3:40 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 140 | 5632000 | ||
221710004 | zhangjianjuncd Imakf -14 | M | Sept. 3, 2023, 3:07 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 156 | 2457600 | ||
221707230 | zihouzhong ttklwxx Arraiter | M | Sept. 3, 2023, 2:50 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 156 | 5222400 | ||
221747576 | like_a_dream | M | Sept. 3, 2023, 8:17 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 171 | 1638400 | ||
221694252 | tute7627 | M | Sept. 3, 2023, 1:39 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 171 | 1638400 | ||
221723038 | Leonardo16 dmga44 Giga_Cronos | M | Sept. 3, 2023, 4:39 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 78 | 1638400 | ||
221708245 | etherinmatic MihirK Azm1t | M | Sept. 3, 2023, 2:56 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 78 | 1638400 | ||
221708296 | BreakPlus | M | Sept. 3, 2023, 2:56 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 78 | 24883200 | ||
221692236 | Heltion | M | Sept. 3, 2023, 1:29 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 93 | 819200 | ||
221719024 | swz 1459007298 geospiza | M | Sept. 3, 2023, 4:08 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 93 | 3276800 | ||
221691690 | PEIMUDA bilibilitdasc Error_Yuan | M | Sept. 3, 2023, 1:26 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 109 | 0 | ||
221710889 | shiven GenghizKhan keyurchd_11 | M | Sept. 3, 2023, 3:13 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 109 | 2457600 | ||
221708405 | Arch_of_Triumph aibark | M | Sept. 3, 2023, 2:57 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 109 | 13209600 | ||
221708664 | zhaohaikun | M | Sept. 3, 2023, 2:59 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 109 | 81715200 | ||
221766077 | BuddhaBarFans | M | Sept. 4, 2023, 3:21 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 124 | 1638400 | ||
221707303 | arvindf232 | M | Sept. 3, 2023, 2:50 p.m. | OK | Kotlin 1.7 | TESTS | 22 | 467 | 307200 |
Back to search problems