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 |
---|---|---|---|---|---|---|
1184 | Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) | FINISHED | False | 16200 | 174956087 | July 7, 2019, 7:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 5476 ) | B1 | The Doctor Meets Vader (Easy) | PROGRAMMING | binary search sortings | 1400 |
B"Heidi and Doctor Who hopped out of the TARDIS and found themselves at EPFL in 2018. They were surrounded by stormtroopers and Darth Vader was approaching. Miraculously, they managed to escape to a nearby rebel base but the Doctor was very confused. Heidi reminded him that last year's HC2 theme was Star Wars. Now he understood, and he's ready to face the evils of the Empire! The rebels have s spaceships, each with a certain attacking power a . They want to send their spaceships to destroy the empire bases and steal enough gold and supplies in order to keep the rebellion alive. The empire has b bases, each with a certain defensive power d , and a certain amount of gold g . A spaceship can attack all the bases which have a defensive power less than or equal to its attacking power. If a spaceship attacks a base, it steals all the gold in that base. The rebels are still undecided which spaceship to send out first, so they asked for the Doctor's help. They would like to know, for each spaceship, the maximum amount of gold it can steal. The first line contains integers s and b ( 1 <= q s, b <= q 10^5 ), the number of spaceships and the number of bases, respectively. The second line contains s integers a ( 0 <= q a <= q 10^9 ), the attacking power of each spaceship. The next b lines contain integers d, g ( 0 <= q d <= q 10^9 , 0 <= q g <= q 10^4 ), the defensive power and the gold of each base, respectively. Print s integers, the maximum amount of gold each spaceship can steal, in the same order as the spaceships are given in the input. The first spaceship can only attack the first base. The second spaceship can attack the first and third bases. The third spaceship can attack the first, second and third bases. "... |
helvetic-coding-contest-2019-editorial.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
56651908 | LaSWeeG romanporsh | B1 | July 7, 2019, 7:52 a.m. | OK | Delphi | TESTS | 31 | 155 | 2048000 | 1400 | |
56655951 | TranKha | B1 | July 7, 2019, 8:39 a.m. | OK | FPC | TESTS | 31 | 390 | 1638400 | 1400 | |
57642650 | minhquaningenious | B1 | July 24, 2019, 1:08 p.m. | OK | FPC | TESTS | 31 | 404 | 1331200 | 1400 | |
56649095 | TShT | B1 | July 7, 2019, 7:26 a.m. | OK | FPC | TESTS | 31 | 405 | 9625600 | 1400 | |
56657124 | Craspedacusta | B1 | July 7, 2019, 8:53 a.m. | OK | FPC | TESTS | 31 | 405 | 40140800 | 1400 | |
57322485 | Meibisu | B1 | July 19, 2019, 10:40 a.m. | OK | FPC | TESTS | 31 | 530 | 2764800 | 1400 | |
56652244 | pengin_2000 | B1 | July 7, 2019, 7:56 a.m. | OK | GNU C11 | TESTS | 31 | 436 | 2355200 | 1400 | |
68223361 | romarioputra | B1 | Jan. 5, 2020, 6:02 a.m. | OK | GNU C11 | TESTS | 31 | 451 | 2048000 | 1400 | |
56689491 | chenyewei_1234 | B1 | July 8, 2019, 2:38 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 3891200 | 1400 | |
56658448 | Kuroni Umi | B1 | July 7, 2019, 9:12 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 1228800 | 1400 | |
56863537 | Big_black_jujube | B1 | July 12, 2019, 1:28 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 1228800 | 1400 | |
56652141 | LJZ_C | B1 | July 7, 2019, 7:55 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 1331200 | 1400 | |
56647614 | wasa855 | B1 | July 7, 2019, 7:15 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 1638400 | 1400 | |
68338614 | monk | B1 | Jan. 7, 2020, 1:06 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 2048000 | 1400 | |
56693299 | Lugar | B1 | July 8, 2019, 5:33 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 2048000 | 1400 | |
56701110 | cznissnzg | B1 | July 8, 2019, 9:07 a.m. | OK | GNU C++11 | TESTS | 31 | 62 | 4812800 | 1400 | |
56654986 | memset0c Sooke LJC00118 | B1 | July 7, 2019, 8:27 a.m. | OK | GNU C++11 | TESTS | 31 | 77 | 2048000 | 1400 | |
56650403 | cuizhuyefei MarkF zx2003 | B1 | July 7, 2019, 7:38 a.m. | OK | GNU C++11 | TESTS | 31 | 77 | 2867200 | 1400 | |
56714280 | HipHop | B1 | July 8, 2019, 1:58 p.m. | OK | GNU C++14 | TESTS | 31 | 109 | 1126400 | 1400 | |
56861033 | _smhx | B1 | July 11, 2019, 10:21 p.m. | OK | GNU C++14 | TESTS | 31 | 109 | 1638400 | 1400 | |
56654651 | shdut | B1 | July 7, 2019, 8:23 a.m. | OK | GNU C++14 | TESTS | 31 | 109 | 2048000 | 1400 | |
56648486 | jcg | B1 | July 7, 2019, 7:21 a.m. | OK | GNU C++14 | TESTS | 31 | 109 | 2048000 | 1400 | |
56875349 | zhangrongxin | B1 | July 12, 2019, 8:05 a.m. | OK | GNU C++14 | TESTS | 31 | 109 | 2048000 | 1400 | |
56648579 | Andreasyan MrDecomposition | B1 | July 7, 2019, 7:22 a.m. | OK | GNU C++14 | TESTS | 31 | 109 | 2764800 | 1400 | |
56652016 | as_couple | B1 | July 7, 2019, 7:53 a.m. | OK | GNU C++14 | TESTS | 31 | 109 | 3481600 | 1400 | |
59507477 | sagor.. | B1 | Aug. 26, 2019, 6:43 a.m. | OK | GNU C++14 | TESTS | 31 | 124 | 1228800 | 1400 | |
67043116 | Helal | B1 | Dec. 16, 2019, 8:19 p.m. | OK | GNU C++14 | TESTS | 31 | 124 | 1228800 | 1400 | |
56697760 | Viet_Dung | B1 | July 8, 2019, 7:48 a.m. | OK | GNU C++14 | TESTS | 31 | 124 | 1228800 | 1400 | |
64882929 | TianPingXing | B1 | Nov. 14, 2019, 12:12 p.m. | OK | GNU C++17 | TESTS | 31 | 109 | 1945600 | 1400 | |
56649416 | JOHNKRAM | B1 | July 7, 2019, 7:29 a.m. | OK | GNU C++17 | TESTS | 31 | 109 | 2457600 | 1400 | |
56660458 | demonsbane | B1 | July 7, 2019, 9:43 a.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1228800 | 1400 | |
56647758 | waynetuinfor edisonhello skylinebaby | B1 | July 7, 2019, 7:16 a.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1228800 | 1400 | |
67269740 | Rahul_cpp | B1 | Dec. 20, 2019, 7:40 a.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1228800 | 1400 | |
67262655 | rama_pang | B1 | Dec. 20, 2019, 4:26 a.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1228800 | 1400 | |
60420538 | RNS_JKS RNS_KSB | B1 | Sept. 12, 2019, 5:41 a.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1638400 | 1400 | |
59948808 | nwpu_yyf | B1 | Sept. 3, 2019, 1:50 p.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1638400 | 1400 | |
60497824 | skshahra | B1 | Sept. 13, 2019, 5:09 p.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1638400 | 1400 | |
65023937 | LukaM10 | B1 | Nov. 15, 2019, 6:42 a.m. | OK | GNU C++17 | TESTS | 31 | 124 | 1638400 | 1400 | |
56648304 | VivekRamnani KharYusuf mufaddalnaya | B1 | July 7, 2019, 7:20 a.m. | OK | Java 8 | TESTS | 31 | 218 | 0 | 1400 | |
56657450 | insert_cool_handle | B1 | July 7, 2019, 8:58 a.m. | OK | Java 8 | TESTS | 31 | 233 | 0 | 1400 | |
56715855 | rahsutamrev | B1 | July 8, 2019, 2:37 p.m. | OK | Java 8 | TESTS | 31 | 233 | 3379200 | 1400 | |
67978094 | Apurva021 | B1 | Dec. 30, 2019, 5:51 p.m. | OK | Java 8 | TESTS | 31 | 248 | 0 | 1400 | |
56651046 | insane_28 | B1 | July 7, 2019, 7:44 a.m. | OK | Java 8 | TESTS | 31 | 248 | 0 | 1400 | |
58855840 | garnacha | B1 | Aug. 15, 2019, 9:15 a.m. | OK | Java 8 | TESTS | 31 | 249 | 0 | 1400 | |
56726251 | YahiaSherif | B1 | July 8, 2019, 7:56 p.m. | OK | Java 8 | TESTS | 31 | 249 | 0 | 1400 | |
60316662 | i_will_be_less_than_blue | B1 | Sept. 9, 2019, 6:14 p.m. | OK | Java 8 | TESTS | 31 | 264 | 0 | 1400 | |
59806325 | valerikk | B1 | Aug. 31, 2019, 12:02 p.m. | OK | Java 8 | TESTS | 31 | 264 | 0 | 1400 | |
56670702 | di_halt | B1 | July 7, 2019, 12:59 p.m. | OK | Java 8 | TESTS | 31 | 264 | 0 | 1400 | |
56689769 | Spheniscine | B1 | July 8, 2019, 2:50 a.m. | OK | Kotlin | TESTS | 31 | 702 | 17920000 | 1400 | |
56648679 | dinarisio | B1 | July 7, 2019, 7:23 a.m. | OK | Mono C# | TESTS | 31 | 342 | 27955200 | 1400 | |
56648554 | peregrinus BrainFreeze | B1 | July 7, 2019, 7:22 a.m. | OK | Mono C# | TESTS | 31 | 404 | 100147200 | 1400 | |
63684609 | ansergeyg | B1 | Oct. 28, 2019, 9:45 p.m. | OK | Mono C# | TESTS | 31 | 576 | 18534400 | 1400 | |
67254037 | Koscica | B1 | Dec. 19, 2019, 8:40 p.m. | OK | MS C++ | TESTS | 31 | 109 | 2048000 | 1400 | |
60909815 | vjudge4 | B1 | Sept. 20, 2019, 5:14 a.m. | OK | MS C++ | TESTS | 31 | 124 | 2457600 | 1400 | |
60924842 | vjudge5 | B1 | Sept. 20, 2019, 11:56 a.m. | OK | MS C++ | TESTS | 31 | 124 | 2457600 | 1400 | |
57836448 | TianJianXing | B1 | July 27, 2019, 7:44 a.m. | OK | MS C++ | TESTS | 31 | 124 | 2764800 | 1400 | |
64909202 | 1912607519 | B1 | Nov. 15, 2019, 1:37 a.m. | OK | MS C++ | TESTS | 31 | 140 | 3993600 | 1400 | |
64881910 | TianPingXing | B1 | Nov. 14, 2019, 11:54 a.m. | OK | MS C++ | TESTS | 31 | 140 | 3993600 | 1400 | |
64881752 | TianJianXing | B1 | Nov. 14, 2019, 11:51 a.m. | OK | MS C++ | TESTS | 31 | 156 | 6451200 | 1400 | |
57833283 | vjudge2 | B1 | July 27, 2019, 6:44 a.m. | OK | MS C++ | TESTS | 31 | 327 | 3993600 | 1400 | |
57854631 | TianPingXing | B1 | July 27, 2019, 2:31 p.m. | OK | MS C++ | TESTS | 31 | 327 | 3993600 | 1400 | |
57854632 | TianSunXing | B1 | July 27, 2019, 2:31 p.m. | OK | MS C++ | TESTS | 31 | 327 | 3993600 | 1400 | |
56658274 | xsc | B1 | July 7, 2019, 9:09 a.m. | OK | MS C++ 2017 | TESTS | 31 | 140 | 2048000 | 1400 | |
57919004 | TianZuiXing | B1 | July 29, 2019, 3:24 a.m. | OK | MS C++ 2017 | TESTS | 31 | 140 | 2457600 | 1400 | |
56654847 | RANCAFE | B1 | July 7, 2019, 8:26 a.m. | OK | MS C++ 2017 | TESTS | 31 | 155 | 2048000 | 1400 | |
56655289 | euqrry | B1 | July 7, 2019, 8:31 a.m. | OK | MS C++ 2017 | TESTS | 31 | 155 | 5632000 | 1400 | |
56655243 | querry | B1 | July 7, 2019, 8:31 a.m. | OK | MS C++ 2017 | TESTS | 31 | 155 | 5632000 | 1400 | |
56660658 | LawDecree | B1 | July 7, 2019, 9:47 a.m. | OK | MS C++ 2017 | TESTS | 31 | 202 | 4505600 | 1400 | |
56657175 | lokeshgovindu | B1 | July 7, 2019, 8:54 a.m. | OK | MS C++ 2017 | TESTS | 31 | 342 | 2048000 | 1400 | |
56649226 | redimer admarkov | B1 | July 7, 2019, 7:27 a.m. | OK | MS C++ 2017 | TESTS | 31 | 343 | 1638400 | 1400 | |
57834406 | TianSunXing | B1 | July 27, 2019, 7:04 a.m. | OK | MS C++ 2017 | TESTS | 31 | 358 | 1638400 | 1400 | |
57832895 | TianJianXing | B1 | July 27, 2019, 6:37 a.m. | OK | MS C++ 2017 | TESTS | 31 | 358 | 2048000 | 1400 | |
56683166 | mayakin | B1 | July 7, 2019, 7:57 p.m. | OK | PHP | TESTS | 31 | 561 | 41574400 | 1400 | |
56651682 | mastermindevil raj1307 snape_here | B1 | July 7, 2019, 7:50 a.m. | OK | PyPy 2 | TESTS | 31 | 421 | 18944000 | 1400 | |
56665604 | littlewhywhat | B1 | July 7, 2019, 11:07 a.m. | OK | PyPy 3 | TESTS | 31 | 655 | 18841600 | 1400 | |
57340375 | KirKhal | B1 | July 19, 2019, 6:11 p.m. | OK | PyPy 3 | TESTS | 31 | 686 | 19763200 | 1400 | |
56665745 | Akash_123 | B1 | July 7, 2019, 11:09 a.m. | OK | PyPy 3 | TESTS | 31 | 732 | 13619200 | 1400 | |
56735246 | ngs_436 | B1 | July 9, 2019, 4:44 a.m. | OK | PyPy 3 | TESTS | 31 | 842 | 15564800 | 1400 | |
56665226 | nikeshthapa255 | B1 | July 7, 2019, 11:02 a.m. | OK | PyPy 3 | TESTS | 31 | 858 | 18124800 | 1400 | |
56649171 | meooow algmyr pajenegod | B1 | July 7, 2019, 7:27 a.m. | OK | PyPy 3 | TESTS | 31 | 935 | 85196800 | 1400 | |
56721773 | ngs_436 | B1 | July 8, 2019, 5:13 p.m. | OK | PyPy 3 | TESTS | 31 | 951 | 23040000 | 1400 | |
56648730 | Warachia ngs_436 | B1 | July 7, 2019, 7:23 a.m. | OK | PyPy 3 | TESTS | 31 | 982 | 15974400 | 1400 | |
56721370 | ngs_436 | B1 | July 8, 2019, 5:01 p.m. | OK | PyPy 3 | TESTS | 31 | 982 | 21196800 | 1400 | |
56650016 | Paixao majinboo | B1 | July 7, 2019, 7:34 a.m. | OK | PyPy 3 | TESTS | 31 | 1029 | 16076800 | 1400 | |
58924056 | Helli.code | B1 | Aug. 16, 2019, 6:31 p.m. | OK | Python 2 | TESTS | 31 | 1185 | 14540800 | 1400 | |
64734814 | Annvv | B1 | Nov. 12, 2019, 9:53 a.m. | OK | Python 3 | TESTS | 31 | 732 | 13926400 | 1400 | |
56728338 | FlyingBag65 | B1 | July 8, 2019, 9:47 p.m. | OK | Python 3 | TESTS | 31 | 733 | 13926400 | 1400 | |
57118409 | teja_sayya8 | B1 | July 15, 2019, 10:12 p.m. | OK | Python 3 | TESTS | 31 | 764 | 15667200 | 1400 | |
56811114 | Alexsas | B1 | July 10, 2019, 4:11 p.m. | OK | Python 3 | TESTS | 31 | 779 | 15667200 | 1400 | |
56650175 | DAyamaCTF | B1 | July 7, 2019, 7:36 a.m. | OK | Python 3 | TESTS | 31 | 779 | 18227200 | 1400 | |
68340741 | nealzane | B1 | Jan. 7, 2020, 3:21 a.m. | OK | Python 3 | TESTS | 31 | 779 | 18944000 | 1400 | |
56651686 | PanZverski | B1 | July 7, 2019, 7:50 a.m. | OK | Python 3 | TESTS | 31 | 795 | 15667200 | 1400 | |
56669279 | Mad_Andrei | B1 | July 7, 2019, 12:20 p.m. | OK | Python 3 | TESTS | 31 | 841 | 14745600 | 1400 | |
56676200 | KanhuKeNanu | B1 | July 7, 2019, 3:39 p.m. | OK | Python 3 | TESTS | 31 | 857 | 16998400 | 1400 | |
56735485 | ngs_436 | B1 | July 9, 2019, 4:55 a.m. | OK | Python 3 | TESTS | 31 | 904 | 16691200 | 1400 | |
61101462 | chinmaykousik1 | B1 | Sept. 23, 2019, 7:01 a.m. | OK | Rust | TESTS | 31 | 1044 | 6860800 | 1400 |
Back to search problems