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 |
---|---|---|---|---|---|---|
1039 | Codeforces Round 507 (Div. 1, based on Olympiad of Metropolises) | FINISHED | False | 7200 | 201273887 | Sept. 5, 2018, 4:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1383 ) | C | Network Safety | PROGRAMMING | dfs and similar ds graphs math sortings | 2300 |
B'The Metropolis computer network consists of n servers, each has an encryption key in the range from 0 to 2^k - 1 assigned to it. Let c_i be the encryption key assigned to the i -th server. Additionally, m pairs of servers are directly connected via a data communication channel. Because of the encryption algorithms specifics, a data communication channel can only be considered safe if the two servers it connects have distinct encryption keys. The initial assignment of encryption keys is guaranteed to keep all data communication channels safe. You have been informed that a new virus is actively spreading across the internet, and it is capable to change the encryption key of any server it infects. More specifically, the virus body contains some unknown number x in the same aforementioned range, and when server i is infected, its encryption key changes from c_i to c_i oplus x , where oplus denotes the bitwise XOR operation. Sadly, you know neither the number x nor which servers of Metropolis are going to be infected by the dangerous virus, so you have decided to count the number of such situations in which all data communication channels remain safe. Formally speaking, you need to find the number of pairs (A, x) , where A is some (possibly empty) subset of the set of servers and x is some number in the range from 0 to 2^k - 1 , such that when all servers from the chosen subset A and none of the others are infected by a virus containing the number x , all data communication channels remain safe. Since this number can be quite big, you are asked to find its remainder modulo 10^9 + 7 . The first line of input contains three integers n , m and k ( 1 <= q n <= q 500 ,000 , 0 <= q m <= q min( frac{n(n - 1)}{2}, 500 ,000) , 0 <= q k <= q 60 ) -- the number of servers, the number of pairs of servers directly connected by'... |
61668 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
49090735 | iftest614 | C | Jan. 28, 2019, 8:34 a.m. | OK | Clang++17 Diagnostics | TESTS | 87 | 1824 | 27340800 | 2300 | |
46756599 | mtmohim | C | Dec. 8, 2018, 12:03 p.m. | OK | GNU C++11 | TESTS | 87 | 124 | 16076800 | 2300 | |
67510354 | poaspoas | C | Dec. 24, 2019, 8:55 a.m. | OK | GNU C++11 | TESTS | 87 | 140 | 18022400 | 2300 | |
46954644 | Heaplax | C | Dec. 13, 2018, 2:09 a.m. | OK | GNU C++11 | TESTS | 87 | 155 | 32051200 | 2300 | |
67459994 | poaspoas | C | Dec. 23, 2019, 8:45 a.m. | OK | GNU C++11 | TESTS | 87 | 156 | 18022400 | 2300 | |
67457626 | poaspoas | C | Dec. 23, 2019, 7:42 a.m. | OK | GNU C++11 | TESTS | 87 | 156 | 18022400 | 2300 | |
42599734 | Anson529 | C | Sept. 7, 2018, 3:42 a.m. | OK | GNU C++11 | TESTS | 87 | 186 | 16076800 | 2300 | |
42695966 | ReaLNero1 | C | Sept. 9, 2018, 7:11 a.m. | OK | GNU C++11 | TESTS | 87 | 186 | 16384000 | 2300 | |
42604085 | vjudge5 | C | Sept. 7, 2018, 6:45 a.m. | OK | GNU C++11 | TESTS | 87 | 186 | 16384000 | 2300 | |
46935925 | __Ressed__ | C | Dec. 12, 2018, 1:52 p.m. | OK | GNU C++11 | TESTS | 87 | 187 | 18022400 | 2300 | |
43111126 | dengyixuan | C | Sept. 20, 2018, 11:45 a.m. | OK | GNU C++11 | TESTS | 87 | 202 | 20070400 | 2300 | |
52061019 | RNS_MHB | C | March 31, 2019, 12:57 a.m. | OK | GNU C++14 | TESTS | 87 | 546 | 12083200 | 2300 | |
43102892 | consecutivelimit | C | Sept. 20, 2018, 6:37 a.m. | OK | GNU C++14 | TESTS | 87 | 576 | 14336000 | 2300 | |
42786210 | zhangqingqi | C | Sept. 12, 2018, 4:32 a.m. | OK | GNU C++14 | TESTS | 87 | 576 | 18022400 | 2300 | |
56255883 | lolicon234 | C | June 29, 2019, 6:06 a.m. | OK | GNU C++14 | TESTS | 87 | 576 | 30924800 | 2300 | |
56255797 | _user090203 | C | June 29, 2019, 6:04 a.m. | OK | GNU C++14 | TESTS | 87 | 576 | 30924800 | 2300 | |
49229018 | yutaka1999 | C | Jan. 31, 2019, 3:48 a.m. | OK | GNU C++14 | TESTS | 87 | 576 | 37683200 | 2300 | |
42512024 | Anadi | C | Sept. 5, 2018, 5:25 p.m. | OK | GNU C++14 | TESTS | 87 | 592 | 16076800 | 2300 | |
42537404 | CuongCuong | C | Sept. 6, 2018, 2:54 a.m. | OK | GNU C++14 | TESTS | 87 | 592 | 22016000 | 2300 | |
43037154 | luhong | C | Sept. 18, 2018, 2:03 p.m. | OK | GNU C++14 | TESTS | 87 | 592 | 36659200 | 2300 | |
42536556 | apiadu | C | Sept. 6, 2018, 2:06 a.m. | OK | GNU C++14 | TESTS | 87 | 623 | 20070400 | 2300 | |
42514370 | MrDindows | C | Sept. 5, 2018, 5:35 p.m. | OK | GNU C++17 | TESTS | 87 | 217 | 18534400 | 2300 | |
44467873 | tEMMIE.w. | C | Oct. 18, 2018, 4:09 a.m. | OK | GNU C++17 | TESTS | 87 | 499 | 20275200 | 2300 | |
42783967 | endereye | C | Sept. 12, 2018, 1:45 a.m. | OK | GNU C++17 | TESTS | 87 | 576 | 18022400 | 2300 | |
46969743 | luogu_bot3 | C | Dec. 13, 2018, 1:13 p.m. | OK | GNU C++17 | TESTS | 87 | 577 | 14540800 | 2300 | |
62309597 | vjudge5 | C | Oct. 10, 2019, 1:35 p.m. | OK | GNU C++17 | TESTS | 87 | 592 | 14028800 | 2300 | |
42507516 | irkstepanov | C | Sept. 5, 2018, 5:06 p.m. | OK | GNU C++17 | TESTS | 87 | 608 | 19148800 | 2300 | |
42817734 | DAyamaCTF | C | Sept. 13, 2018, 3:18 a.m. | OK | GNU C++17 | TESTS | 87 | 623 | 20889600 | 2300 | |
42510157 | tlwpdus | C | Sept. 5, 2018, 5:17 p.m. | OK | GNU C++17 | TESTS | 87 | 639 | 14336000 | 2300 | |
46969331 | 374272 | C | Dec. 13, 2018, 1 p.m. | OK | GNU C++17 | TESTS | 87 | 639 | 14540800 | 2300 | |
42532624 | danielfleischman | C | Sept. 5, 2018, 9:44 p.m. | OK | GNU C++17 | TESTS | 87 | 639 | 21094400 | 2300 | |
42507347 | Petr | C | Sept. 5, 2018, 5:05 p.m. | OK | Java 8 | TESTS | 87 | 842 | 88985600 | 2300 | |
42515730 | yarrr | C | Sept. 5, 2018, 5:41 p.m. | OK | Java 8 | TESTS | 87 | 1013 | 84377600 | 2300 | |
42549350 | Taran_1407 | C | Sept. 6, 2018, 11:08 a.m. | OK | Java 8 | TESTS | 87 | 1044 | 86425600 | 2300 | |
42530450 | U_Square | C | Sept. 5, 2018, 8:33 p.m. | OK | Java 8 | TESTS | 87 | 1044 | 110182400 | 2300 | |
42517205 | uwi | C | Sept. 5, 2018, 5:48 p.m. | OK | Java 8 | TESTS | 87 | 1106 | 41984000 | 2300 | |
42514861 | Egor | C | Sept. 5, 2018, 5:37 p.m. | OK | Java 8 | TESTS | 87 | 1169 | 25804800 | 2300 | |
42802660 | SrapZark | C | Sept. 12, 2018, 3:16 p.m. | OK | Java 8 | TESTS | 87 | 1201 | 135884800 | 2300 | |
42802274 | SrapZark | C | Sept. 12, 2018, 3:02 p.m. | OK | Java 8 | TESTS | 87 | 1216 | 137932800 | 2300 | |
42802584 | SrapZark | C | Sept. 12, 2018, 3:13 p.m. | OK | Java 8 | TESTS | 87 | 1248 | 135884800 | 2300 | |
42822122 | 365050244 | C | Sept. 13, 2018, 7:21 a.m. | OK | Java 8 | TESTS | 87 | 1263 | 27750400 | 2300 | |
42523369 | leign | C | Sept. 5, 2018, 6:20 p.m. | OK | Mono C# | TESTS | 87 | 1107 | 112025600 | 2300 | |
58858172 | vjudge5 | C | Aug. 15, 2019, 10:21 a.m. | OK | MS C++ | TESTS | 87 | 810 | 58265600 | 2300 | |
42521573 | Taube | C | Sept. 5, 2018, 6:11 p.m. | OK | MS C++ | TESTS | 87 | 1435 | 179507200 | 2300 | |
42531761 | BaturaDima | C | Sept. 5, 2018, 9:11 p.m. | OK | MS C++ | TESTS | 87 | 2152 | 49049600 | 2300 | |
42531503 | BaturaDima | C | Sept. 5, 2018, 9:02 p.m. | OK | MS C++ | TESTS | 87 | 2417 | 40550400 | 2300 | |
42531563 | BaturaDima | C | Sept. 5, 2018, 9:04 p.m. | OK | MS C++ | TESTS | 87 | 2464 | 49049600 | 2300 | |
42530183 | BaturaDima | C | Sept. 5, 2018, 8:25 p.m. | OK | MS C++ | TESTS | 87 | 2729 | 40243200 | 2300 | |
42749066 | Ancient_mage | C | Sept. 10, 2018, 10:38 p.m. | OK | MS C++ | TESTS | 87 | 2729 | 78131200 | 2300 | |
64112936 | artyomonyanov | C | Nov. 2, 2019, 7:25 p.m. | OK | MS C++ 2017 | TESTS | 87 | 1887 | 23142400 | 2300 | |
57922113 | vjudge3 | C | July 29, 2019, 5:28 a.m. | OK | MS C++ 2017 | TESTS | 87 | 1918 | 23142400 | 2300 | |
57922239 | vjudge5 | C | July 29, 2019, 5:32 a.m. | OK | MS C++ 2017 | TESTS | 87 | 1918 | 23244800 | 2300 | |
57922238 | vjudge3 | C | July 29, 2019, 5:32 a.m. | OK | MS C++ 2017 | TESTS | 87 | 1918 | 23244800 | 2300 |
Back to search problems