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 |
---|---|---|---|---|---|---|
1302 | AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) | FINISHED | False | 10800 | 151076699 | Feb. 3, 2020, 4:15 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 46 ) | E | Amazing bitset | PROGRAMMING |
B'This is an unusual problem in an unusual contest, here is the announcement: http://codeforces.com/blog/entry/73543 Andrey has just started to study competitive programming and he is fascinated by bitsets and operations on them. For example, assume he has a bitset with n elements. He can change the values of the bitset in the following way: He calls a bitset amazing if he can flip all the bits using several such changes. Another topic Andrey is interested in is probability theory. For given n and p , where p is a rational number represented as frac{a}{b} with integer a, b , he considers all bitsets of length n , where each element is equal to 1 with probability p independently of the other elements. He wants to know the probability that a bitset generated by the described method is amazing. It is guaranteed that the answer to this problem can be represented as a rational number frac{x}{y} , where y is coprime with 1 ,234 ,567 ,891 . You need to output such integer z that x equiv yz pmod{1 ,234 ,567 ,891} and 0 <= q z < 1 ,234 ,567 ,891 . The only line contains three integers n, a, b ( 1 <= q n <= q 10^9 , 0 <= q a <= q 10^5 , 1 <= q b <= q 10^5 , a <= q b ), denoting the length of the bitset and the probability of an element to be 1 (probability is frac{a}{b} ). Output the answer to the problem in the only line. '... |
73599 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
70200124 | WZYYN | E | Feb. 4, 2020, 3:34 a.m. | OK | GNU C++11 | TESTS | 19 | 31 | 0 | ||
70173013 | BigBag Mustang98 shanin | E | Feb. 3, 2020, 5:50 p.m. | OK | GNU C++11 | TESTS | 19 | 31 | 0 | ||
70175923 | 300iq Kamfucius orz | E | Feb. 3, 2020, 6:30 p.m. | OK | GNU C++14 | TESTS | 19 | 31 | 819200 | ||
70611775 | lucifer1004 | E | Feb. 9, 2020, 8:40 a.m. | OK | GNU C++17 | TESTS | 19 | 15 | 0 | ||
70175308 | zscoder | E | Feb. 3, 2020, 6:21 p.m. | OK | GNU C++17 | TESTS | 19 | 15 | 0 | ||
70174228 | kefaa2 gepardo Fedosik | E | Feb. 3, 2020, 6:06 p.m. | OK | GNU C++17 | TESTS | 19 | 15 | 0 | ||
70186306 | ch_egor | E | Feb. 3, 2020, 10:12 p.m. | OK | GNU C++17 | TESTS | 19 | 30 | 0 | ||
70174219 | Denisson DmitryGrigorev ShadowLight | E | Feb. 3, 2020, 6:06 p.m. | OK | GNU C++17 | TESTS | 19 | 30 | 0 | ||
70173325 | AndreySergunin Nebuchadnezzar amethyst0 | E | Feb. 3, 2020, 5:54 p.m. | OK | GNU C++17 | TESTS | 19 | 30 | 0 | ||
70213060 | ecnerwala | E | Feb. 4, 2020, 8:52 a.m. | OK | GNU C++17 | TESTS | 19 | 31 | 0 | ||
70177612 | xman1024 I_love_chickpea | E | Feb. 3, 2020, 6:59 p.m. | OK | GNU C++17 | TESTS | 19 | 31 | 0 | ||
70177044 | denis2111 lungualex00 cristian1997 | E | Feb. 3, 2020, 6:49 p.m. | OK | GNU C++17 | TESTS | 19 | 31 | 0 | ||
70176934 | shadowatyy tabasz znirzej | E | Feb. 3, 2020, 6:47 p.m. | OK | GNU C++17 | TESTS | 19 | 31 | 0 | ||
70197988 | Spheniscine | E | Feb. 4, 2020, 2:10 a.m. | OK | Kotlin | TESTS | 19 | 124 | 0 |
Back to search problems