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 |
---|---|---|---|---|---|---|
1452 | Educational Codeforces Round 98 (Rated for Div. 2) | FINISHED | False | 7200 | 126026699 | Nov. 19, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 8017 ) | D | Radio Towers | PROGRAMMING | combinatorics dp math |
B"There are n + 2 towns located on a coordinate line, numbered from 0 to n + 1 . The i -th town is located at the point i . You build a radio tower in each of the towns 1, 2, ... , n with probability frac{1}{2} (these events are independent). After that, you want to set the signal power on each tower to some integer from 1 to n (signal powers are not necessarily the same, but also not necessarily different). The signal from a tower located in a town i with signal power p reaches every city c such that |c - i| < p . After building the towers, you want to choose signal powers in such a way that: For example, if n = 5 , and you have built the towers in towns 2 , 4 and 5 , you may set the signal power of the tower in town 2 to 2 , and the signal power of the towers in towns 4 and 5 to 1 . That way, towns 0 and n + 1 don't get the signal from any tower, towns 1 , 2 and 3 get the signal from the tower in town 2 , town 4 gets the signal from the tower in town 4 , and town 5 gets the signal from the tower in town 5 . Calculate the probability that, after building the towers, you will have a way to set signal powers to meet all constraints. The first (and only) line of the input contains one integer n ( 1 <= n <= 2 cdot 10^5 ). Print one integer -- the probability that there will be a way to set signal powers so that all constraints are met, taken modulo 998244353 . Formally, the probability can be expressed as an irreducible fraction frac{x}{y} . You have to print the value of x cdot y^{-1} bmod 998244353 , where y^{-1} is an integer such that y cdot y^{-1} bmod 998244353 = 1 . The real answer for the first example is frac{1}{4} : The real answer for the second example is frac{1}{4} : The real answer for the third example is fr"... |
84847 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
98938736 | ruban | D | Nov. 19, 2020, 4:09 p.m. | OK | Delphi | TESTS | 14 | 31 | 68812800 | ||
98979100 | rainboy | D | Nov. 19, 2020, 6:17 p.m. | OK | GNU C11 | TESTS | 14 | 30 | 0 | ||
98942477 | tejava | D | Nov. 19, 2020, 4:22 p.m. | OK | GNU C11 | TESTS | 14 | 31 | 1638400 | ||
98939804 | White_Li | D | Nov. 19, 2020, 4:13 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 0 | ||
98939343 | Tnxcdhy | D | Nov. 19, 2020, 4:11 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 0 | ||
98936109 | Arkmaki | D | Nov. 19, 2020, 4 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 0 | ||
98945014 | jdj1211 | D | Nov. 19, 2020, 4:31 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 0 | ||
98942332 | OrangeDog | D | Nov. 19, 2020, 4:22 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 0 | ||
98941441 | Carls | D | Nov. 19, 2020, 4:19 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 0 | ||
98948282 | mini4141 | D | Nov. 19, 2020, 4:49 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 819200 | ||
98947879 | Arian_Noorzadeh | D | Nov. 19, 2020, 4:45 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 819200 | ||
98944352 | void_basic_learner | D | Nov. 19, 2020, 4:29 p.m. | OK | GNU C++11 | TESTS | 14 | 15 | 819200 | ||
98998840 | uniopeter123456 | D | Nov. 20, 2020, 4:54 a.m. | OK | GNU C++11 | TESTS | 14 | 15 | 819200 | ||
98942371 | Nvq2309 | D | Nov. 19, 2020, 4:22 p.m. | OK | GNU C++14 | TESTS | 14 | 15 | 1740800 | ||
98947707 | Sezal0811 | D | Nov. 19, 2020, 4:44 p.m. | OK | GNU C++14 | TESTS | 14 | 15 | 4608000 | ||
98992543 | mesumit | D | Nov. 20, 2020, 1:53 a.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98978065 | rash42 | D | Nov. 19, 2020, 5:59 p.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98968964 | TrungDuc2k2 | D | Nov. 19, 2020, 5:17 p.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98948491 | Deilor | D | Nov. 19, 2020, 4:51 p.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98944589 | mdsaqib | D | Nov. 19, 2020, 4:30 p.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98940436 | yogeshguptakaithal | D | Nov. 19, 2020, 4:15 p.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98940277 | muk_mukul | D | Nov. 19, 2020, 4:14 p.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98999162 | _HonEy | D | Nov. 20, 2020, 5:01 a.m. | OK | GNU C++14 | TESTS | 14 | 30 | 0 | ||
98943126 | neew_B | D | Nov. 19, 2020, 4:25 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98977454 | Dark_Eyes | D | Nov. 19, 2020, 5:49 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98962165 | arpan_goswami | D | Nov. 19, 2020, 5:11 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98941723 | satur | D | Nov. 19, 2020, 4:20 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98937659 | rcxkk | D | Nov. 19, 2020, 4:05 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98936837 | Padmanabha | D | Nov. 19, 2020, 4:02 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98936609 | Yash.Amin.11 | D | Nov. 19, 2020, 4:02 p.m. | OK | GNU C++17 | TESTS | 14 | 15 | 1638400 | ||
98993609 | Nuwaisir_Rabi | D | Nov. 20, 2020, 2:36 a.m. | OK | GNU C++17 | TESTS | 14 | 30 | 0 | ||
98994756 | maomao90 | D | Nov. 20, 2020, 3:12 a.m. | OK | GNU C++17 | TESTS | 14 | 30 | 0 | ||
98991394 | nuchenghao | D | Nov. 20, 2020, 1:01 a.m. | OK | GNU C++17 | TESTS | 14 | 30 | 0 | ||
98983323 | PurpleCrayon | D | Nov. 19, 2020, 7:38 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 0 | ||
98955458 | null0124 | D | Nov. 19, 2020, 5:07 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 819200 | ||
98979046 | keijak | D | Nov. 19, 2020, 6:16 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 819200 | ||
98938211 | contestswith5problems | D | Nov. 19, 2020, 4:07 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 819200 | ||
98947248 | egor.anisevich | D | Nov. 19, 2020, 4:40 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 1638400 | ||
98985991 | essi | D | Nov. 19, 2020, 8:49 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 1638400 | ||
98962580 | gameofcodes | D | Nov. 19, 2020, 5:17 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 1638400 | ||
98949528 | silverfish | D | Nov. 19, 2020, 4:56 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 1638400 | ||
98944939 | Ayalla | D | Nov. 19, 2020, 4:31 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 1638400 | ||
98943443 | jeaf_dean | D | Nov. 19, 2020, 4:26 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 15 | 1638400 | ||
98989762 | uc-nuts | D | Nov. 19, 2020, 11:30 p.m. | OK | Haskell | TESTS | 14 | 30 | 7372800 | ||
98938767 | soumit915 | D | Nov. 19, 2020, 4:09 p.m. | OK | Java 11 | TESTS | 14 | 170 | 0 | ||
98936471 | toxic4u | D | Nov. 19, 2020, 4:01 p.m. | OK | Java 11 | TESTS | 14 | 171 | 0 | ||
98987571 | bittubittu | D | Nov. 19, 2020, 9:42 p.m. | OK | Java 11 | TESTS | 14 | 171 | 0 | ||
98937817 | glider.g | D | Nov. 19, 2020, 4:06 p.m. | OK | Java 11 | TESTS | 14 | 171 | 0 | ||
98941858 | hoffrj | D | Nov. 19, 2020, 4:20 p.m. | OK | Java 11 | TESTS | 14 | 186 | 0 | ||
98937303 | nirvana_rsc | D | Nov. 19, 2020, 4:04 p.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
98987626 | OPyrohov | D | Nov. 19, 2020, 9:44 p.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
98984251 | Dukkha | D | Nov. 19, 2020, 8:02 p.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
98945154 | Apass.Jack | D | Nov. 19, 2020, 4:32 p.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
98937253 | chris_11 | D | Nov. 19, 2020, 4:04 p.m. | OK | Java 11 | TESTS | 14 | 187 | 0 | ||
98942303 | 189301019.akshay | D | Nov. 19, 2020, 4:22 p.m. | OK | Java 8 | TESTS | 14 | 93 | 0 | ||
98937316 | jaffy123 | D | Nov. 19, 2020, 4:04 p.m. | OK | Java 8 | TESTS | 14 | 108 | 0 | ||
98936992 | robinz62 | D | Nov. 19, 2020, 4:03 p.m. | OK | Java 8 | TESTS | 14 | 108 | 0 | ||
99002398 | adp527 | D | Nov. 20, 2020, 6:02 a.m. | OK | Java 8 | TESTS | 14 | 108 | 0 | ||
98941481 | shubhargava | D | Nov. 19, 2020, 4:19 p.m. | OK | Java 8 | TESTS | 14 | 108 | 0 | ||
98940268 | kingash101 | D | Nov. 19, 2020, 4:14 p.m. | OK | Java 8 | TESTS | 14 | 108 | 0 | ||
98988537 | sumitnitesh123 | D | Nov. 19, 2020, 10:24 p.m. | OK | Java 8 | TESTS | 14 | 109 | 0 | ||
98980888 | obsessed_titan | D | Nov. 19, 2020, 6:48 p.m. | OK | Java 8 | TESTS | 14 | 109 | 0 | ||
98996872 | eng_hardik | D | Nov. 20, 2020, 4:07 a.m. | OK | Java 8 | TESTS | 14 | 109 | 0 | ||
98981284 | kocko | D | Nov. 19, 2020, 6:55 p.m. | OK | Java 8 | TESTS | 14 | 109 | 0 | ||
98955412 | Scotty_pwnz | D | Nov. 19, 2020, 5:06 p.m. | OK | Kotlin | TESTS | 14 | 108 | 0 | ||
98977211 | sylvyrfysh | D | Nov. 19, 2020, 5:45 p.m. | OK | Kotlin | TESTS | 14 | 124 | 0 | ||
98982649 | tscha | D | Nov. 19, 2020, 7:24 p.m. | OK | Kotlin | TESTS | 14 | 124 | 0 | ||
98975985 | AryssonFigueiredo | D | Nov. 19, 2020, 5:27 p.m. | OK | Kotlin | TESTS | 14 | 155 | 6348800 | ||
98940517 | JackieLee | D | Nov. 19, 2020, 4:15 p.m. | OK | MS C++ 2017 | TESTS | 14 | 31 | 0 | ||
98991863 | frelion | D | Nov. 20, 2020, 1:23 a.m. | OK | MS C++ 2017 | TESTS | 14 | 31 | 0 | ||
98944400 | ChristianHou | D | Nov. 19, 2020, 4:29 p.m. | OK | MS C++ 2017 | TESTS | 14 | 31 | 1638400 | ||
98947054 | rafle | D | Nov. 19, 2020, 4:39 p.m. | OK | MS C++ 2017 | TESTS | 14 | 31 | 1638400 | ||
98936608 | nortonlrc | D | Nov. 19, 2020, 4:02 p.m. | OK | MS C++ 2017 | TESTS | 14 | 31 | 2457600 | ||
98937135 | rhksdn6227 | D | Nov. 19, 2020, 4:03 p.m. | OK | MS C++ 2017 | TESTS | 14 | 46 | 3174400 | ||
98988777 | EvgeniusASPX | D | Nov. 19, 2020, 10:34 p.m. | OK | MS C++ 2017 | TESTS | 14 | 46 | 17612800 | ||
98943659 | 127.0.0.1. | D | Nov. 19, 2020, 4:26 p.m. | OK | MS C++ 2017 | TESTS | 14 | 155 | 3174400 | ||
98947783 | MKSA0000 | D | Nov. 19, 2020, 4:45 p.m. | OK | MS C++ 2017 | TESTS | 14 | 156 | 3174400 | ||
98938421 | G4NP0N | D | Nov. 19, 2020, 4:08 p.m. | OK | .NET Core C# | TESTS | 14 | 77 | 0 | ||
98944102 | pajenegod | D | Nov. 19, 2020, 4:28 p.m. | OK | PyPy 2 | TESTS | 14 | 93 | 6758400 | ||
98947632 | realnimish | D | Nov. 19, 2020, 4:43 p.m. | OK | PyPy 2 | TESTS | 14 | 109 | 819200 | ||
98984363 | bazzyadb | D | Nov. 19, 2020, 8:04 p.m. | OK | PyPy 2 | TESTS | 14 | 374 | 23756800 | ||
98943505 | hxu10 | D | Nov. 19, 2020, 4:26 p.m. | OK | PyPy 2 | TESTS | 14 | 670 | 7475200 | ||
98945924 | hxu10 | D | Nov. 19, 2020, 4:34 p.m. | OK | PyPy 2 | TESTS | 14 | 686 | 7577600 | ||
98994262 | 2019ucp1350 | D | Nov. 20, 2020, 2:57 a.m. | OK | PyPy 3 | TESTS | 14 | 139 | 1433600 | ||
98989641 | taoboquan1 | D | Nov. 19, 2020, 11:22 p.m. | OK | PyPy 3 | TESTS | 14 | 139 | 2048000 | ||
98976936 | nandini18056 | D | Nov. 19, 2020, 5:41 p.m. | OK | PyPy 3 | TESTS | 14 | 139 | 2048000 | ||
98937114 | gintoki_s | D | Nov. 19, 2020, 4:03 p.m. | OK | PyPy 3 | TESTS | 14 | 139 | 2048000 | ||
98936082 | silvertint | D | Nov. 19, 2020, 4 p.m. | OK | PyPy 3 | TESTS | 14 | 139 | 2048000 | ||
98992223 | Coki628 | D | Nov. 20, 2020, 1:38 a.m. | OK | PyPy 3 | TESTS | 14 | 139 | 2867200 | ||
98982489 | Stephan | D | Nov. 19, 2020, 7:20 p.m. | OK | PyPy 3 | TESTS | 14 | 140 | 1228800 | ||
98962206 | akay_99 | D | Nov. 19, 2020, 5:12 p.m. | OK | PyPy 3 | TESTS | 14 | 140 | 1228800 | ||
98947286 | TolyaHo | D | Nov. 19, 2020, 4:41 p.m. | OK | PyPy 3 | TESTS | 14 | 140 | 1228800 | ||
98994236 | 2019ucp1350 | D | Nov. 20, 2020, 2:57 a.m. | OK | PyPy 3 | TESTS | 14 | 140 | 1331200 | ||
98935744 | yeswewillcode | D | Nov. 19, 2020, 3:59 p.m. | OK | Python 2 | TESTS | 14 | 202 | 4812800 | ||
98935997 | broken_coder | D | Nov. 19, 2020, 4 p.m. | OK | Python 2 | TESTS | 14 | 218 | 3481600 | ||
98993197 | biltharesatyendra | D | Nov. 20, 2020, 2:21 a.m. | OK | Python 2 | TESTS | 14 | 233 | 4403200 | ||
98989100 | shhrrtnvr | D | Nov. 19, 2020, 10:51 p.m. | OK | Python 3 | TESTS | 14 | 124 | 0 | ||
98988999 | shhrrtnvr | D | Nov. 19, 2020, 10:45 p.m. | OK | Python 3 | TESTS | 14 | 155 | 0 | ||
98988932 | shhrrtnvr | D | Nov. 19, 2020, 10:42 p.m. | OK | Python 3 | TESTS | 14 | 155 | 307200 | ||
98988878 | shhrrtnvr | D | Nov. 19, 2020, 10:39 p.m. | OK | Python 3 | TESTS | 14 | 155 | 307200 | ||
98980392 | sh1194 | D | Nov. 19, 2020, 6:39 p.m. | OK | Python 3 | TESTS | 14 | 171 | 6758400 | ||
98937324 | Khan17 | D | Nov. 19, 2020, 4:04 p.m. | OK | Python 3 | TESTS | 14 | 171 | 7065600 | ||
98948457 | hidir | D | Nov. 19, 2020, 4:50 p.m. | OK | Python 3 | TESTS | 14 | 186 | 5017600 | ||
98935849 | checkingagain | D | Nov. 19, 2020, 3:59 p.m. | OK | Python 3 | TESTS | 14 | 187 | 5120000 | ||
98937430 | codershuvo | D | Nov. 19, 2020, 4:04 p.m. | OK | Python 3 | TESTS | 14 | 187 | 6758400 | ||
98946909 | shubhambhadada7 | D | Nov. 19, 2020, 4:38 p.m. | OK | Python 3 | TESTS | 14 | 202 | 6758400 | ||
98984824 | dp0 | D | Nov. 19, 2020, 8:16 p.m. | OK | Rust | TESTS | 14 | 31 | 0 | ||
98940753 | GeoffreyY | D | Nov. 19, 2020, 4:16 p.m. | OK | Rust | TESTS | 14 | 31 | 0 | ||
98945237 | quickn_babo | D | Nov. 19, 2020, 4:32 p.m. | OK | Rust | TESTS | 14 | 46 | 1638400 |
Back to search problems