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 |
---|---|---|---|---|---|---|
1111 | CodeCraft-19 and Codeforces Round 537 (Div. 2) | FINISHED | False | 7200 | 182615099 | Feb. 3, 2019, 3:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 6287 ) | C | Creative Snap | PROGRAMMING | binary search brute force divide and conquer math | 1700 |
B'Thanos wants to destroy the avengers base, but he needs to destroy the avengers along with their base. Let we represent their base with an array, where each position can be occupied by many avengers, but one avenger can occupy only one position. Length of their base is a perfect power of 2 . Thanos wants to destroy the base using minimum power. He starts with the whole base and in one step he can do either of following: The first line contains four integers n , k , A and B ( 1 <= q n <= q 30 , 1 <= q k <= q 10^5 , 1 <= q A,B <= q 10^4 ), where 2^n is the length of the base, k is the number of avengers and A and B are the constants explained in the question. The second line contains k integers a_{1}, a_{2}, a_{3}, ldots, a_{k} ( 1 <= q a_{i} <= q 2^n ), where a_{i} represents the position of avenger in the base. Output one integer -- the minimum power needed to destroy the avengers base. Consider the first example. One option for Thanos is to burn the whole base 1-4 with power 2 cdot 2 cdot 4 = 16 . Otherwise he can divide the base into two parts 1-2 and 3-4 . For base 1-2 , he can either burn it with power 2 cdot 1 cdot 2 = 4 or divide it into 2 parts 1-1 and 2-2 . For base 1-1 , he can burn it with power 2 cdot 1 cdot 1 = 2 . For 2-2 , he can destroy it with power 1 , as there are no avengers. So, the total power for destroying 1-2 is 2 + 1 = 3 , which is less than 4 . Similarly, he needs 3 power to destroy 3-4 . The total minimum power needed is 6 . '... |
CodeCraft-19 and Codeforces Round #537 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
49612086 | mattkaminski | C | Feb. 8, 2019, 2:37 a.m. | OK | Clang++17 Diagnostics | TESTS | 132 | 233 | 10240000 | 1700 | |
49971042 | luogu_bot2 | C | Feb. 16, 2019, 2:09 a.m. | OK | FPC | TESTS | 132 | 171 | 102912000 | 1700 | |
51890653 | chaorenhaha | C | March 27, 2019, 8:57 a.m. | OK | FPC | TESTS | 132 | 234 | 2048000 | 1700 | |
49552122 | mattkaminski | C | Feb. 7, 2019, 6:52 a.m. | OK | GNU C11 | TESTS | 132 | 92 | 11980800 | 1700 | |
49446446 | MattG | C | Feb. 4, 2019, 3:34 a.m. | OK | GNU C11 | TESTS | 132 | 93 | 819200 | 1700 | |
49551851 | mattkaminski | C | Feb. 7, 2019, 6:38 a.m. | OK | GNU C11 | TESTS | 132 | 93 | 12083200 | 1700 | |
49474428 | warenzer | C | Feb. 4, 2019, 6:40 p.m. | OK | GNU C11 | TESTS | 132 | 139 | 409600 | 1700 | |
49763593 | DravenX618 | C | Feb. 11, 2019, 10:26 a.m. | OK | GNU C11 | TESTS | 132 | 265 | 409600 | 1700 | |
49443768 | MattG | C | Feb. 4, 2019, 12:17 a.m. | OK | GNU C11 | TESTS | 132 | 280 | 819200 | 1700 | |
49828454 | Siyuan | C | Feb. 12, 2019, 12:48 p.m. | OK | GNU C++11 | TESTS | 132 | 46 | 204800 | 1700 | |
49557823 | LittleBeetle | C | Feb. 7, 2019, 10:46 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 204800 | 1700 | |
49661257 | AntiQuality | C | Feb. 9, 2019, 12:30 p.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
49629559 | redbag | C | Feb. 8, 2019, 1:35 p.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
49488849 | luogu_bot2 | C | Feb. 5, 2019, 8:14 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
49447294 | shenji | C | Feb. 4, 2019, 4:23 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
49445539 | Alsophila | C | Feb. 4, 2019, 2:32 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
54263460 | Master_Yi | C | May 17, 2019, 4:02 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
49646470 | redbag | C | Feb. 9, 2019, 4:50 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 409600 | 1700 | |
49617919 | mattkaminski | C | Feb. 8, 2019, 7:24 a.m. | OK | GNU C++11 | TESTS | 132 | 46 | 31539200 | 1700 | |
49437295 | PaPaxe | C | Feb. 3, 2019, 7:27 p.m. | OK | GNU C++14 | TESTS | 132 | 61 | 614400 | 1700 | |
49445753 | Cwolf9.0 | C | Feb. 4, 2019, 2:46 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
57143967 | bluefi | C | July 16, 2019, 12:14 p.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
51002500 | Fantastic2009 | C | March 8, 2019, 7:24 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
49971551 | liulise | C | Feb. 16, 2019, 2:38 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
49545741 | krijgertje | C | Feb. 6, 2019, 10:09 p.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
49454848 | _HYX_ | C | Feb. 4, 2019, 9:39 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
49452629 | zerotohero | C | Feb. 4, 2019, 8:14 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
49450476 | hett | C | Feb. 4, 2019, 6:51 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
49441577 | gimme_danger | C | Feb. 3, 2019, 9:27 p.m. | OK | GNU C++14 | TESTS | 132 | 62 | 409600 | 1700 | |
50702458 | .tx | C | March 2, 2019, 11:21 p.m. | OK | GNU C++17 | TESTS | 132 | 46 | 409600 | 1700 | |
49620826 | theodor.moroianu | C | Feb. 8, 2019, 9:20 a.m. | OK | GNU C++17 | TESTS | 132 | 61 | 614400 | 1700 | |
49445109 | ZJNU_5taiwei | C | Feb. 4, 2019, 2:04 a.m. | OK | GNU C++17 | TESTS | 132 | 61 | 614400 | 1700 | |
69661212 | Rahul_cpp | C | Jan. 28, 2020, 9:29 a.m. | OK | GNU C++17 | TESTS | 132 | 62 | 409600 | 1700 | |
49441091 | lys1280023 | C | Feb. 3, 2019, 9:04 p.m. | OK | GNU C++17 | TESTS | 132 | 62 | 614400 | 1700 | |
49514097 | Gilgamesh_01 | C | Feb. 5, 2019, 11:40 p.m. | OK | GNU C++17 | TESTS | 132 | 62 | 614400 | 1700 | |
49617861 | cjnwq | C | Feb. 8, 2019, 7:21 a.m. | OK | GNU C++17 | TESTS | 132 | 62 | 614400 | 1700 | |
53216306 | TrivialMan | C | April 24, 2019, 8:59 a.m. | OK | GNU C++17 | TESTS | 132 | 62 | 819200 | 1700 | |
49442970 | The_Blitz | C | Feb. 3, 2019, 10:59 p.m. | OK | GNU C++17 | TESTS | 132 | 62 | 1024000 | 1700 | |
49447589 | komolakanto | C | Feb. 4, 2019, 4:38 a.m. | OK | GNU C++17 | TESTS | 132 | 77 | 409600 | 1700 | |
62603480 | synapse | C | Oct. 15, 2019, 6:42 a.m. | OK | Go | TESTS | 132 | 249 | 0 | 1700 | |
62603657 | synapse | C | Oct. 15, 2019, 6:47 a.m. | OK | Go | TESTS | 132 | 280 | 0 | 1700 | |
62602973 | synapse | C | Oct. 15, 2019, 6:30 a.m. | OK | Go | TESTS | 132 | 483 | 0 | 1700 | |
62602788 | synapse | C | Oct. 15, 2019, 6:25 a.m. | OK | Go | TESTS | 132 | 514 | 0 | 1700 | |
62602686 | synapse | C | Oct. 15, 2019, 6:22 a.m. | OK | Go | TESTS | 132 | 529 | 0 | 1700 | |
62602357 | synapse | C | Oct. 15, 2019, 6:13 a.m. | OK | Go | TESTS | 132 | 561 | 4505600 | 1700 | |
49931394 | 2008061626 | C | Feb. 15, 2019, 4:49 a.m. | OK | Go | TESTS | 132 | 561 | 54374400 | 1700 | |
59830702 | dehydratedwater | C | Aug. 31, 2019, 10:40 p.m. | OK | Java 8 | TESTS | 132 | 155 | 0 | 1700 | |
57263792 | Dejokz | C | July 18, 2019, 6:22 a.m. | OK | Java 8 | TESTS | 132 | 155 | 0 | 1700 | |
50056500 | mikkk | C | Feb. 17, 2019, 10:36 a.m. | OK | Java 8 | TESTS | 132 | 155 | 0 | 1700 | |
49640792 | sweiss | C | Feb. 8, 2019, 9:45 p.m. | OK | Java 8 | TESTS | 132 | 155 | 0 | 1700 | |
57890507 | JCKG | C | July 28, 2019, 11:39 a.m. | OK | Java 8 | TESTS | 132 | 171 | 0 | 1700 | |
57263908 | Dejokz | C | July 18, 2019, 6:25 a.m. | OK | Java 8 | TESTS | 132 | 171 | 0 | 1700 | |
49446037 | saurabh0611 | C | Feb. 4, 2019, 3:05 a.m. | OK | Java 8 | TESTS | 132 | 171 | 0 | 1700 | |
49440124 | saurabh0611 | C | Feb. 3, 2019, 8:32 p.m. | OK | Java 8 | TESTS | 132 | 171 | 0 | 1700 | |
57889878 | JCKG | C | July 28, 2019, 11:25 a.m. | OK | Java 8 | TESTS | 132 | 186 | 0 | 1700 | |
54812252 | azhar556 | C | May 29, 2019, 5:34 p.m. | OK | Java 8 | TESTS | 132 | 186 | 0 | 1700 | |
50772767 | exs | C | March 4, 2019, 6:14 a.m. | OK | Kotlin | TESTS | 132 | 608 | 69632000 | 1700 | |
56599349 | sashamc | C | July 5, 2019, 9:56 p.m. | OK | Kotlin | TESTS | 132 | 998 | 6348800 | 1700 | |
50037435 | lipmas | C | Feb. 16, 2019, 9:50 p.m. | OK | Mono C# | TESTS | 132 | 109 | 10137600 | 1700 | |
49440887 | orloffm | C | Feb. 3, 2019, 8:56 p.m. | OK | Mono C# | TESTS | 132 | 140 | 14438400 | 1700 | |
49445518 | eki | C | Feb. 4, 2019, 2:31 a.m. | OK | Mono C# | TESTS | 132 | 202 | 9523200 | 1700 | |
57237050 | og.kostya | C | July 17, 2019, 4:28 p.m. | OK | Mono C# | TESTS | 132 | 280 | 409600 | 1700 | |
49514845 | fastnoise | C | Feb. 6, 2019, 1:03 a.m. | OK | Mono C# | TESTS | 132 | 327 | 14131200 | 1700 | |
49439218 | Coder_D | C | Feb. 3, 2019, 8:07 p.m. | OK | Mono C# | TESTS | 132 | 358 | 9830400 | 1700 | |
49473577 | TaplierShiru | C | Feb. 4, 2019, 6:17 p.m. | OK | Mono C# | TESTS | 132 | 374 | 14131200 | 1700 | |
49443748 | SegaMegaDrive | C | Feb. 4, 2019, 12:15 a.m. | OK | Mono C# | TESTS | 132 | 421 | 14131200 | 1700 | |
54997884 | camypaper | C | June 3, 2019, 1:37 a.m. | OK | Mono C# | TESTS | 132 | 919 | 5017600 | 1700 | |
49450764 | XiaoHaoY | C | Feb. 4, 2019, 7:01 a.m. | OK | MS C++ | TESTS | 132 | 109 | 819200 | 1700 | |
61988396 | vjudge5 | C | Oct. 6, 2019, 2:18 p.m. | OK | MS C++ | TESTS | 132 | 140 | 96256000 | 1700 | |
61989070 | vjudge1 | C | Oct. 6, 2019, 2:33 p.m. | OK | MS C++ | TESTS | 132 | 171 | 96153600 | 1700 | |
54070706 | scorpiowf | C | May 13, 2019, 4:04 p.m. | OK | MS C++ | TESTS | 132 | 186 | 409600 | 1700 | |
51295417 | vjudge2 | C | March 14, 2019, 12:17 p.m. | OK | MS C++ | TESTS | 132 | 234 | 409600 | 1700 | |
53878297 | vjudge5 | C | May 8, 2019, 1:13 p.m. | OK | MS C++ | TESTS | 132 | 249 | 409600 | 1700 | |
53877328 | vjudge3 | C | May 8, 2019, 12:42 p.m. | OK | MS C++ | TESTS | 132 | 249 | 409600 | 1700 | |
62103116 | vjudge5 | C | Oct. 8, 2019, 9:48 a.m. | OK | MS C++ | TESTS | 132 | 249 | 819200 | 1700 | |
54790459 | vjudge2 | C | May 29, 2019, 6:50 a.m. | OK | MS C++ | TESTS | 132 | 265 | 1638400 | 1700 | |
54515659 | vjudge1 | C | May 23, 2019, 9:42 a.m. | OK | MS C++ | TESTS | 132 | 280 | 409600 | 1700 | |
62918119 | AleksanderBalobanov | C | Oct. 19, 2019, 9:14 a.m. | OK | MS C++ 2017 | TESTS | 132 | 78 | 3993600 | 1700 | |
63850249 | Koropok | C | Oct. 30, 2019, 3:30 p.m. | OK | MS C++ 2017 | TESTS | 132 | 140 | 819200 | 1700 | |
49546949 | elvinaa | C | Feb. 7, 2019, 12:15 a.m. | OK | MS C++ 2017 | TESTS | 132 | 187 | 409600 | 1700 | |
49812891 | tangbinjie | C | Feb. 12, 2019, 3:03 a.m. | OK | MS C++ 2017 | TESTS | 132 | 202 | 409600 | 1700 | |
53054752 | hwangganzi | C | April 20, 2019, 4:38 p.m. | OK | MS C++ 2017 | TESTS | 132 | 264 | 819200 | 1700 | |
49685051 | catplatypus | C | Feb. 10, 2019, 6:31 a.m. | OK | MS C++ 2017 | TESTS | 132 | 295 | 1126400 | 1700 | |
49435547 | Gladius_Smerch | C | Feb. 3, 2019, 7:02 p.m. | OK | MS C++ 2017 | TESTS | 132 | 311 | 1433600 | 1700 | |
50153950 | hahaleyile | C | Feb. 19, 2019, 8:58 a.m. | OK | MS C++ 2017 | TESTS | 132 | 312 | 409600 | 1700 | |
49882101 | MishaSm | C | Feb. 13, 2019, 6:42 p.m. | OK | MS C++ 2017 | TESTS | 132 | 327 | 819200 | 1700 | |
61949700 | vjudge1 | C | Oct. 6, 2019, 2:40 a.m. | OK | MS C++ 2017 | TESTS | 132 | 327 | 819200 | 1700 | |
49605738 | Darooha | C | Feb. 7, 2019, 7:22 p.m. | OK | Ocaml | TESTS | 132 | 420 | 5427200 | 1700 | |
49781652 | Stanislav666 | C | Feb. 11, 2019, 5:47 p.m. | OK | PascalABC.NET | TESTS | 132 | 608 | 0 | 1700 | |
49782081 | Stanislav666 | C | Feb. 11, 2019, 5:58 p.m. | OK | PascalABC.NET | TESTS | 132 | 654 | 0 | 1700 | |
57599725 | bcollet | C | July 23, 2019, 3:17 p.m. | OK | PyPy 2 | TESTS | 132 | 295 | 8396800 | 1700 | |
49506717 | frederika | C | Feb. 5, 2019, 5:52 p.m. | OK | PyPy 2 | TESTS | 132 | 296 | 11059200 | 1700 | |
49486502 | kipply | C | Feb. 5, 2019, 6:11 a.m. | OK | PyPy 2 | TESTS | 132 | 327 | 8704000 | 1700 | |
49506845 | frederika | C | Feb. 5, 2019, 5:56 p.m. | OK | PyPy 2 | TESTS | 132 | 358 | 8806400 | 1700 | |
49507057 | frederika | C | Feb. 5, 2019, 6:02 p.m. | OK | PyPy 2 | TESTS | 132 | 389 | 8806400 | 1700 | |
49435428 | supachai_pay | C | Feb. 3, 2019, 7:01 p.m. | OK | PyPy 2 | TESTS | 132 | 748 | 57753600 | 1700 | |
49440713 | div24ever | C | Feb. 3, 2019, 8:50 p.m. | OK | PyPy 2 | TESTS | 132 | 873 | 8499200 | 1700 | |
49435457 | YESMAths | C | Feb. 3, 2019, 7:01 p.m. | OK | PyPy 2 | TESTS | 132 | 919 | 9011200 | 1700 | |
49454933 | c1729 | C | Feb. 4, 2019, 9:41 a.m. | OK | PyPy 2 | TESTS | 132 | 936 | 8908800 | 1700 | |
49447112 | codeseeker | C | Feb. 4, 2019, 4:14 a.m. | OK | PyPy 2 | TESTS | 132 | 997 | 64000000 | 1700 | |
49456348 | c1729 | C | Feb. 4, 2019, 10:26 a.m. | OK | PyPy 3 | TESTS | 132 | 311 | 10240000 | 1700 | |
49455648 | c1729 | C | Feb. 4, 2019, 10:04 a.m. | OK | PyPy 3 | TESTS | 132 | 327 | 10444800 | 1700 | |
49446505 | Bovniova | C | Feb. 4, 2019, 3:38 a.m. | OK | PyPy 3 | TESTS | 132 | 342 | 13312000 | 1700 | |
49444764 | Yans | C | Feb. 4, 2019, 1:42 a.m. | OK | PyPy 3 | TESTS | 132 | 343 | 11468800 | 1700 | |
49502643 | TsutsukakushiTsukiko | C | Feb. 5, 2019, 3:58 p.m. | OK | PyPy 3 | TESTS | 132 | 343 | 11878400 | 1700 | |
49448305 | zlc1114 | C | Feb. 4, 2019, 5:14 a.m. | OK | PyPy 3 | TESTS | 132 | 343 | 12902400 | 1700 | |
49452288 | Infidelis | C | Feb. 4, 2019, 8:02 a.m. | OK | PyPy 3 | TESTS | 132 | 358 | 11878400 | 1700 | |
49452268 | Infidelis | C | Feb. 4, 2019, 8:01 a.m. | OK | PyPy 3 | TESTS | 132 | 358 | 11878400 | 1700 | |
49440521 | alexey_kuldoshin | C | Feb. 3, 2019, 8:44 p.m. | OK | PyPy 3 | TESTS | 132 | 358 | 11878400 | 1700 | |
51283944 | Ashishkapil | C | March 14, 2019, 6:07 a.m. | OK | PyPy 3 | TESTS | 132 | 358 | 12185600 | 1700 | |
51358563 | sumet123 | C | March 16, 2019, 5:56 a.m. | OK | Python 3 | TESTS | 132 | 872 | 39424000 | 1700 | |
49438802 | trishume | C | Feb. 3, 2019, 7:58 p.m. | OK | Rust | TESTS | 132 | 171 | 32870400 | 1700 |
Back to search problems