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 |
---|---|---|---|---|---|---|
1260 | Educational Codeforces Round 77 (Rated for Div. 2) | FINISHED | False | 7200 | 162317363 | Nov. 27, 2019, 1:50 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1758 ) | E | Tournament | PROGRAMMING | brute force dp greedy | 2400 |
B'You are organizing a boxing tournament, where n boxers will participate ( n is a power of 2 ), and your friend is one of them. All boxers have different strength from 1 to n , and boxer i wins in the match against boxer j if and only if i is stronger than j . The tournament will be organized as follows: n boxers will be divided into pairs; the loser in each pair leaves the tournament, and frac{n}{2} winners advance to the next stage, where they are divided into pairs again, and the winners in all pairs advance to the next stage, and so on, until only one boxer remains (who is declared the winner). Your friend really wants to win the tournament, but he may be not the strongest boxer. To help your friend win the tournament, you may bribe his opponents: if your friend is fighting with a boxer you have bribed, your friend wins even if his strength is lower. Furthermore, during each stage you distribute the boxers into pairs as you wish. The boxer with strength i can be bribed if you pay him a_i dollars. What is the minimum number of dollars you have to spend to make your friend win the tournament, provided that you arrange the boxers into pairs during each stage as you wish? The first line contains one integer n ( 2 <= n <= 2^{18} ) -- the number of boxers. n is a power of 2 . The second line contains n integers a_1 , a_2 , ..., a_n , where a_i is the number of dollars you have to pay if you want to bribe the boxer with strength i . Exactly one of a_i is equal to -1 -- it means that the boxer with strength i is your friend. All other values are in the range [1, 10^9] . Print one integer -- the minimum number of dollars you have to pay so your friend wins. In the first test case no matter how you will distribute boxers into pairs, your friend is the strongest boxer and anyway wins the tournament. In the seco'... |
Educational Codeforces Round 77 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
65942244 | DD_BOND | E | Nov. 29, 2019, 6:52 a.m. | OK | Clang++17 Diagnostics | TESTS | 41 | 1341 | 26726400 | 2400 | |
65911073 | DeadPillow | E | Nov. 28, 2019, 12:56 p.m. | OK | Clang++17 Diagnostics | TESTS | 41 | 1372 | 19558400 | 2400 | |
66265646 | __Darkmoon | E | Dec. 4, 2019, 10:21 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 2662400 | 2400 | |
65936726 | KaiserYang | E | Nov. 29, 2019, 2:48 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 3686400 | 2400 | |
66163566 | BeNoble | E | Dec. 2, 2019, 6:14 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 5017600 | 2400 | |
66046902 | BeNoble | E | Nov. 30, 2019, 3:29 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 5017600 | 2400 | |
67053821 | wasa855 | E | Dec. 17, 2019, 5:48 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 6758400 | 2400 | |
65919267 | nehnait | E | Nov. 28, 2019, 3:45 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 6860800 | 2400 | |
66402256 | Dilute | E | Dec. 6, 2019, 12:39 p.m. | OK | GNU C++11 | TESTS | 41 | 46 | 1228800 | 2400 | |
65862615 | etuliD | E | Nov. 27, 2019, 3:25 p.m. | OK | GNU C++11 | TESTS | 41 | 46 | 1228800 | 2400 | |
65941874 | qkoqhh | E | Nov. 29, 2019, 6:41 a.m. | OK | GNU C++11 | TESTS | 41 | 46 | 2764800 | 2400 | |
65889724 | Rivaille_Ackerman | E | Nov. 28, 2019, 2:29 a.m. | OK | GNU C++11 | TESTS | 41 | 46 | 2764800 | 2400 | |
65940080 | iefnah06 | E | Nov. 29, 2019, 5:37 a.m. | OK | GNU C++14 | TESTS | 41 | 77 | 1024000 | 2400 | |
66043594 | rabbita | E | Nov. 30, 2019, 2:25 p.m. | OK | GNU C++14 | TESTS | 41 | 77 | 5222400 | 2400 | |
67558819 | sudip10028 | E | Dec. 24, 2019, 5:05 p.m. | OK | GNU C++14 | TESTS | 41 | 77 | 6860800 | 2400 | |
65918824 | kut_ksr1994 | E | Nov. 28, 2019, 3:36 p.m. | OK | GNU C++14 | TESTS | 41 | 78 | 1536000 | 2400 | |
65875014 | Sugarii | E | Nov. 27, 2019, 4:43 p.m. | OK | GNU C++14 | TESTS | 41 | 78 | 1536000 | 2400 | |
66370821 | tbzard | E | Dec. 5, 2019, 10 p.m. | OK | GNU C++14 | TESTS | 41 | 78 | 2662400 | 2400 | |
66293909 | Sidiq_HA | E | Dec. 5, 2019, 2:15 a.m. | OK | GNU C++14 | TESTS | 41 | 78 | 2662400 | 2400 | |
66181931 | OMG_wc | E | Dec. 2, 2019, 1:07 p.m. | OK | GNU C++14 | TESTS | 41 | 78 | 2662400 | 2400 | |
65936595 | 2683331518 | E | Nov. 29, 2019, 2:42 a.m. | OK | GNU C++14 | TESTS | 41 | 78 | 2662400 | 2400 | |
65913290 | shehebe | E | Nov. 28, 2019, 1:41 p.m. | OK | GNU C++14 | TESTS | 41 | 78 | 2662400 | 2400 | |
66445987 | nickluo | E | Dec. 7, 2019, 9:41 a.m. | OK | GNU C++17 | TESTS | 41 | 31 | 3174400 | 2400 | |
66277451 | nickluo | E | Dec. 4, 2019, 3:20 p.m. | OK | GNU C++17 | TESTS | 41 | 31 | 3174400 | 2400 | |
65861659 | Aphelios | E | Nov. 27, 2019, 3:22 p.m. | OK | GNU C++17 | TESTS | 41 | 62 | 1024000 | 2400 | |
66016981 | HatsuneMikuo | E | Nov. 30, 2019, 5:52 a.m. | OK | GNU C++17 | TESTS | 41 | 62 | 44646400 | 2400 | |
65869500 | interestingLSY | E | Nov. 27, 2019, 3:47 p.m. | OK | GNU C++17 | TESTS | 41 | 62 | 44646400 | 2400 | |
69191906 | Hartley | E | Jan. 20, 2020, 1:45 p.m. | OK | GNU C++17 | TESTS | 41 | 78 | 2662400 | 2400 | |
68913035 | mimi9126 | E | Jan. 16, 2020, 7:59 a.m. | OK | GNU C++17 | TESTS | 41 | 78 | 2662400 | 2400 | |
66154766 | Nary | E | Dec. 1, 2019, 9:18 p.m. | OK | GNU C++17 | TESTS | 41 | 78 | 2662400 | 2400 | |
65900254 | bibibibi | E | Nov. 28, 2019, 8:24 a.m. | OK | GNU C++17 | TESTS | 41 | 78 | 2662400 | 2400 | |
65866720 | typhigh | E | Nov. 27, 2019, 3:38 p.m. | OK | GNU C++17 | TESTS | 41 | 78 | 2662400 | 2400 | |
65931165 | fau42 | E | Nov. 28, 2019, 9:11 p.m. | OK | Go | TESTS | 41 | 109 | 9728000 | 2400 | |
67062730 | motoras | E | Dec. 17, 2019, 9:50 a.m. | OK | Java 11 | TESTS | 41 | 249 | 3276800 | 2400 | |
65882871 | IslamTalipovTop | E | Nov. 27, 2019, 8:01 p.m. | OK | Java 11 | TESTS | 41 | 327 | 38604800 | 2400 | |
65882707 | IslamTalipovTop | E | Nov. 27, 2019, 7:55 p.m. | OK | Java 11 | TESTS | 41 | 436 | 74137600 | 2400 | |
65896269 | KharYusuf | E | Nov. 28, 2019, 6:22 a.m. | OK | Java 8 | TESTS | 41 | 140 | 1536000 | 2400 | |
65873588 | procrastinate7 | E | Nov. 27, 2019, 4:21 p.m. | OK | Java 8 | TESTS | 41 | 186 | 12902400 | 2400 | |
65865945 | nikolay.v.mikhaylov | E | Nov. 27, 2019, 3:36 p.m. | OK | Java 8 | TESTS | 41 | 186 | 13209600 | 2400 | |
65879494 | about | E | Nov. 27, 2019, 6:21 p.m. | OK | Java 8 | TESTS | 41 | 187 | 13209600 | 2400 | |
66134687 | polyakoff | E | Dec. 1, 2019, 11:47 a.m. | OK | Java 8 | TESTS | 41 | 187 | 13721600 | 2400 | |
65877728 | barakraganosungam | E | Nov. 27, 2019, 5:38 p.m. | OK | Java 8 | TESTS | 41 | 202 | 1740800 | 2400 | |
65863450 | SecondThread | E | Nov. 27, 2019, 3:28 p.m. | OK | Java 8 | TESTS | 41 | 202 | 10854400 | 2400 | |
65878911 | e_is_cool | E | Nov. 27, 2019, 6:06 p.m. | OK | Java 8 | TESTS | 41 | 202 | 13107200 | 2400 | |
65929119 | ijxjdjd | E | Nov. 28, 2019, 7:52 p.m. | OK | Java 8 | TESTS | 41 | 248 | 65945600 | 2400 | |
66562325 | beginner1010 | E | Dec. 9, 2019, 7:33 p.m. | OK | Java 8 | TESTS | 41 | 280 | 18432000 | 2400 | |
65895737 | Spheniscine | E | Nov. 28, 2019, 6:02 a.m. | OK | Kotlin | TESTS | 41 | 233 | 15667200 | 2400 | |
65876853 | youx | E | Nov. 27, 2019, 5:19 p.m. | OK | MS C++ 2017 | TESTS | 41 | 109 | 7168000 | 2400 | |
65882278 | MrLolthe1st | E | Nov. 27, 2019, 7:41 p.m. | OK | MS C++ 2017 | TESTS | 41 | 265 | 6246400 | 2400 | |
65948448 | omerb.zeybek | E | Nov. 29, 2019, 9:43 a.m. | OK | MS C++ 2017 | TESTS | 41 | 327 | 9523200 | 2400 | |
67183001 | TrickmanOff | E | Dec. 19, 2019, 1:49 a.m. | OK | MS C++ 2017 | TESTS | 41 | 327 | 50995200 | 2400 | |
67182994 | TrickmanOff | E | Dec. 19, 2019, 1:49 a.m. | OK | MS C++ 2017 | TESTS | 41 | 343 | 92979200 | 2400 | |
65882852 | MrLolthe1st | E | Nov. 27, 2019, 8:01 p.m. | OK | MS C++ 2017 | TESTS | 41 | 358 | 10854400 | 2400 | |
65860045 | astrom.lars | E | Nov. 27, 2019, 3:16 p.m. | OK | PyPy 2 | TESTS | 41 | 171 | 16793600 | 2400 | |
65863416 | bcollet | E | Nov. 27, 2019, 3:28 p.m. | OK | PyPy 2 | TESTS | 41 | 171 | 19148800 | 2400 | |
65871749 | pajenegod | E | Nov. 27, 2019, 3:59 p.m. | OK | PyPy 2 | TESTS | 41 | 187 | 21811200 | 2400 | |
67059447 | motoras | E | Dec. 17, 2019, 8:25 a.m. | OK | PyPy 3 | TESTS | 41 | 390 | 20275200 | 2400 | |
65917002 | titia | E | Nov. 28, 2019, 2:57 p.m. | OK | PyPy 3 | TESTS | 41 | 405 | 22835200 | 2400 | |
65921940 | PhilTheFish | E | Nov. 28, 2019, 4:41 p.m. | OK | PyPy 3 | TESTS | 41 | 405 | 23449600 | 2400 | |
65861699 | mitribunskiy | E | Nov. 27, 2019, 3:22 p.m. | OK | PyPy 3 | TESTS | 41 | 405 | 27955200 | 2400 | |
66458708 | bnaninaidu9949 | E | Dec. 7, 2019, 2:04 p.m. | OK | PyPy 3 | TESTS | 41 | 420 | 25292800 | 2400 | |
66537461 | Aita_Venkata_Rishmitha | E | Dec. 9, 2019, 10:12 a.m. | OK | PyPy 3 | TESTS | 41 | 420 | 25497600 | 2400 | |
66182345 | macleChen | E | Dec. 2, 2019, 1:15 p.m. | OK | PyPy 3 | TESTS | 41 | 1044 | 190668800 | 2400 | |
68044134 | chielo | E | Jan. 1, 2020, 3:40 p.m. | OK | PyPy 3 | TESTS | 41 | 1075 | 113152000 | 2400 | |
66297272 | tycyd | E | Dec. 5, 2019, 5:12 a.m. | OK | PyPy 3 | TESTS | 41 | 1185 | 103219200 | 2400 | |
68030489 | tamato | E | Jan. 1, 2020, 8:58 a.m. | OK | PyPy 3 | TESTS | 41 | 1575 | 258662400 | 2400 | |
67059400 | motoras | E | Dec. 17, 2019, 8:25 a.m. | OK | Python 3 | TESTS | 41 | 421 | 20889600 | 2400 | |
65873520 | sansen | E | Nov. 27, 2019, 4:20 p.m. | OK | Rust | TESTS | 41 | 62 | 9420800 | 2400 | |
65874259 | sansen | E | Nov. 27, 2019, 4:30 p.m. | OK | Rust | TESTS | 41 | 77 | 9420800 | 2400 | |
65872738 | sansen | E | Nov. 27, 2019, 4:10 p.m. | OK | Rust | TESTS | 41 | 78 | 9420800 | 2400 | |
66032427 | yakamoto | E | Nov. 30, 2019, 10:36 a.m. | OK | Scala | TESTS | 41 | 514 | 18124800 | 2400 |
Back to search problems