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 |
---|---|---|---|---|---|---|
1292 | Codeforces Round 614 (Div. 1) | FINISHED | False | 7200 | 157911911 | Jan. 19, 2020, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2112 ) | C | Xenon's Attack on the Gangs | PROGRAMMING | combinatorics dfs and similar dp greedy trees | 2300 |
B'On another floor of the A.R.C. Markland-N, the young man Simon "Xenon" Jackson, takes a break after finishing his project early (as always). Having a lot of free time, he decides to put on his legendary hacker "X" instinct and fight against the gangs of the cyber world. His target is a network of n small gangs. This network contains exactly n - 1 direct links, each of them connecting two gangs together. The links are placed in such a way that every pair of gangs is connected through a sequence of direct links. By mining data, Xenon figured out that the gangs used a form of cross-encryption to avoid being busted: every link was assigned an integer from 0 to n - 2 such that all assigned integers are distinct and every integer was assigned to some link. If an intruder tries to access the encrypted data, they will have to surpass S password layers, with S being defined by the following formula: S = sum_{1 <= q u < v <= q n} mex(u, v) Here, mex(u, v) denotes the smallest non-negative integer that does not appear on any link on the unique simple path from gang u to gang v . Xenon doesn 't know the way the integers are assigned, but it 's not a problem. He decides to let his AI 's instances try all the passwords on his behalf, but before that, he needs to know the maximum possible value of S , so that the AIs can be deployed efficiently. Now, Xenon is out to write the AI scripts, and he is expected to finish them in two hours. Can you find the maximum possible S before he returns? The first line contains an integer n ( 2 <= q n <= q 3000 ), the number of gangs in the network. Each of the next n - 1 lines contains integers u_i and v_i ( 1 <= q u_i, v_i <= q n ; u_i neq v_i ), indicating there 's a direct link between gangs u_i and v_i . It 's guaranteed that links are placed in such a way that each pair of gangs will be connected by exactly one '... |
Codeforces Round #614 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
69597254 | Isonan | C | Jan. 27, 2020, 5:36 a.m. | OK | GNU C++11 | TESTS | 75 | 249 | 72294400 | 2300 | |
69158663 | xht37 | C | Jan. 19, 2020, 9:07 p.m. | OK | GNU C++11 | TESTS | 75 | 264 | 77209600 | 2300 | |
69138510 | nehnait | C | Jan. 19, 2020, 3:11 p.m. | OK | GNU C++11 | TESTS | 75 | 265 | 77107200 | 2300 | |
69142509 | duality | C | Jan. 19, 2020, 3:24 p.m. | OK | GNU C++11 | TESTS | 75 | 389 | 72499200 | 2300 | |
69131881 | asdfghjk | C | Jan. 19, 2020, 2:48 p.m. | OK | GNU C++11 | TESTS | 75 | 389 | 81510400 | 2300 | |
69512852 | critcore | C | Jan. 25, 2020, 11:02 a.m. | OK | GNU C++11 | TESTS | 75 | 389 | 144793600 | 2300 | |
69163782 | chenxiaoyan | C | Jan. 20, 2020, 2:18 a.m. | OK | GNU C++11 | TESTS | 75 | 405 | 144793600 | 2300 | |
69161014 | ddytxdy | C | Jan. 19, 2020, 11:39 p.m. | OK | GNU C++11 | TESTS | 75 | 405 | 291737600 | 2300 | |
69291014 | SOSCHINA | C | Jan. 22, 2020, 10:15 a.m. | OK | GNU C++11 | TESTS | 75 | 420 | 72499200 | 2300 | |
69144573 | chenxiaoyan | C | Jan. 19, 2020, 3:31 p.m. | OK | GNU C++11 | TESTS | 75 | 436 | 144793600 | 2300 | |
69143805 | mariand | C | Jan. 19, 2020, 3:28 p.m. | OK | GNU C++14 | TESTS | 75 | 187 | 72806400 | 2300 | |
69133280 | xyx0711 | C | Jan. 19, 2020, 2:53 p.m. | OK | GNU C++14 | TESTS | 75 | 249 | 73113600 | 2300 | |
69138041 | Joker_23 | C | Jan. 19, 2020, 3:09 p.m. | OK | GNU C++14 | TESTS | 75 | 327 | 74547200 | 2300 | |
69128175 | PinkieRabbit | C | Jan. 19, 2020, 2:37 p.m. | OK | GNU C++14 | TESTS | 75 | 327 | 201318400 | 2300 | |
69147841 | hocky | C | Jan. 19, 2020, 4:57 p.m. | OK | GNU C++14 | TESTS | 75 | 343 | 73113600 | 2300 | |
69138444 | shirakami.rin | C | Jan. 19, 2020, 3:11 p.m. | OK | GNU C++14 | TESTS | 75 | 358 | 73011200 | 2300 | |
69148433 | davidberard | C | Jan. 19, 2020, 5:03 p.m. | OK | GNU C++14 | TESTS | 75 | 405 | 88371200 | 2300 | |
69875179 | spacewalker | C | Jan. 31, 2020, 3:32 a.m. | OK | GNU C++14 | TESTS | 75 | 451 | 72704000 | 2300 | |
69299478 | gs15120 | C | Jan. 22, 2020, 1:22 p.m. | OK | GNU C++14 | TESTS | 75 | 451 | 135475200 | 2300 | |
69243714 | shamimjucse | C | Jan. 21, 2020, 12:16 p.m. | OK | GNU C++14 | TESTS | 75 | 452 | 109056000 | 2300 | |
69561021 | isaf27 | C | Jan. 26, 2020, 10:37 a.m. | OK | GNU C++17 | TESTS | 75 | 171 | 73216000 | 2300 | |
69120679 | AndreySergunin | C | Jan. 19, 2020, 2:17 p.m. | OK | GNU C++17 | TESTS | 75 | 171 | 74649600 | 2300 | |
69141143 | 8-_-8 | C | Jan. 19, 2020, 3:20 p.m. | OK | GNU C++17 | TESTS | 75 | 171 | 87449600 | 2300 | |
69130061 | brimix__ | C | Jan. 19, 2020, 2:42 p.m. | OK | GNU C++17 | TESTS | 75 | 249 | 74956800 | 2300 | |
69139302 | errorgorn | C | Jan. 19, 2020, 3:13 p.m. | OK | GNU C++17 | TESTS | 75 | 280 | 72908800 | 2300 | |
69159103 | AlesyaIvanova | C | Jan. 19, 2020, 9:28 p.m. | OK | GNU C++17 | TESTS | 75 | 295 | 73113600 | 2300 | |
69165431 | user202729_ | C | Jan. 20, 2020, 3:25 a.m. | OK | GNU C++17 | TESTS | 75 | 296 | 36659200 | 2300 | |
69149731 | IF_IR_A_1_IR | C | Jan. 19, 2020, 5:18 p.m. | OK | GNU C++17 | TESTS | 75 | 311 | 107008000 | 2300 | |
69134628 | includehdhd | C | Jan. 19, 2020, 2:58 p.m. | OK | GNU C++17 | TESTS | 75 | 358 | 108851200 | 2300 | |
69128675 | KrK | C | Jan. 19, 2020, 2:38 p.m. | OK | GNU C++17 | TESTS | 75 | 374 | 109056000 | 2300 | |
69159990 | RetiredProgrammer | C | Jan. 19, 2020, 10:21 p.m. | OK | Java 11 | TESTS | 75 | 1809 | 273305600 | 2300 | |
69139271 | Taran_1407 | C | Jan. 19, 2020, 3:13 p.m. | OK | Java 8 | TESTS | 75 | 950 | 136192000 | 2300 | |
69152568 | Akikaze | C | Jan. 19, 2020, 6:07 p.m. | OK | Java 8 | TESTS | 75 | 1450 | 276377600 | 2300 | |
69296099 | luchy0120 | C | Jan. 22, 2020, 12:16 p.m. | OK | Java 8 | TESTS | 75 | 1466 | 264499200 | 2300 | |
69158351 | fetetriste | C | Jan. 19, 2020, 8:53 p.m. | OK | Java 8 | TESTS | 75 | 1512 | 294400000 | 2300 | |
69156034 | icpc_loser | C | Jan. 19, 2020, 7:32 p.m. | OK | Java 8 | TESTS | 75 | 1559 | 242790400 | 2300 | |
69148111 | Xylenox | C | Jan. 19, 2020, 5 p.m. | OK | Java 8 | TESTS | 75 | 1606 | 82124800 | 2300 | |
69145587 | barakraganosungam | C | Jan. 19, 2020, 3:33 p.m. | OK | Java 8 | TESTS | 75 | 2028 | 259379200 | 2300 | |
69123642 | uwi | C | Jan. 19, 2020, 2:24 p.m. | OK | Java 8 | TESTS | 75 | 2074 | 439500800 | 2300 | |
69151992 | SecondThread | C | Jan. 19, 2020, 5:56 p.m. | OK | Java 8 | TESTS | 75 | 2090 | 82944000 | 2300 | |
69161138 | barakraganosungam | C | Jan. 19, 2020, 11:49 p.m. | OK | Java 8 | TESTS | 75 | 2744 | 259379200 | 2300 | |
69160342 | Tlatoani | C | Jan. 19, 2020, 10:49 p.m. | OK | Kotlin | TESTS | 75 | 1559 | 261632000 | 2300 | |
69206427 | darnley | C | Jan. 20, 2020, 6:09 p.m. | OK | Kotlin | TESTS | 75 | 2557 | 244224000 | 2300 | |
69206347 | darnley | C | Jan. 20, 2020, 6:08 p.m. | OK | Kotlin | TESTS | 75 | 2729 | 244224000 | 2300 | |
69207006 | darnley | C | Jan. 20, 2020, 6:21 p.m. | OK | Kotlin | TESTS | 75 | 2745 | 244224000 | 2300 | |
69127887 | darnley | C | Jan. 19, 2020, 2:36 p.m. | OK | Kotlin | TESTS | 75 | 2792 | 244224000 | 2300 | |
70034748 | camypaper | C | Feb. 2, 2020, 1:53 p.m. | OK | Mono C# | TESTS | 75 | 1622 | 116633600 | 2300 | |
69162132 | EmK | C | Jan. 20, 2020, 12:54 a.m. | OK | Mono C# | TESTS | 75 | 1918 | 263475200 | 2300 | |
69222152 | tarattata1 | C | Jan. 21, 2020, 5:20 a.m. | OK | MS C++ | TESTS | 75 | 498 | 144588800 | 2300 | |
69229090 | tarattata1 | C | Jan. 21, 2020, 8:41 a.m. | OK | MS C++ | TESTS | 75 | 1045 | 184627200 | 2300 | |
70482602 | math957963 | C | Feb. 7, 2020, 6:26 a.m. | OK | MS C++ | TESTS | 75 | 1107 | 352563200 | 2300 | |
69130622 | Apsara | C | Jan. 19, 2020, 2:44 p.m. | OK | MS C++ | TESTS | 75 | 2277 | 313753600 | 2300 | |
69152429 | AleksanderBalobanov | C | Jan. 19, 2020, 6:05 p.m. | OK | MS C++ 2017 | TESTS | 75 | 529 | 73011200 | 2300 | |
70620475 | itytwt | C | Feb. 9, 2020, 11:22 a.m. | OK | MS C++ 2017 | TESTS | 75 | 701 | 145612800 | 2300 | |
69144299 | pichulia | C | Jan. 19, 2020, 3:30 p.m. | OK | MS C++ 2017 | TESTS | 75 | 951 | 73113600 | 2300 | |
69137166 | alex_36 | C | Jan. 19, 2020, 3:06 p.m. | OK | MS C++ 2017 | TESTS | 75 | 1138 | 288870400 | 2300 | |
69679253 | _Ani | C | Jan. 28, 2020, 3:07 p.m. | OK | MS C++ 2017 | TESTS | 75 | 1231 | 180940800 | 2300 | |
69161128 | AlexanderL | C | Jan. 19, 2020, 11:48 p.m. | OK | MS C++ 2017 | TESTS | 75 | 1232 | 147968000 | 2300 | |
69140457 | ichyo | C | Jan. 19, 2020, 3:17 p.m. | OK | Rust | TESTS | 75 | 888 | 291430400 | 2300 | |
69148055 | sansen | C | Jan. 19, 2020, 4:59 p.m. | OK | Rust | TESTS | 75 | 1637 | 356249600 | 2300 | |
69132550 | sansen | C | Jan. 19, 2020, 2:50 p.m. | OK | Rust | TESTS | 75 | 2994 | 351641600 | 2300 |
Back to search problems