Technocup 2020 - Elimination Round 1

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
1223 Technocup 2020 - Elimination Round 1 FINISHED False 7200 167064887 Oct. 6, 2019, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8738 ) C Save the Nature PROGRAMMING binary search greedy 1600

B"You are an environmental activist at heart but the reality is harsh and you are just a cashier in a cinema. But you can still do something! You have n tickets to sell. The price of the i -th ticket is p_i . As a teller, you have a possibility to select the order in which the tickets will be sold (i.e. a permutation of the tickets). You know that the cinema participates in two ecological restoration programs applying them to the order you chose: If the ticket is in both programs then the (x + y) % are used for environmental activities. Also, it's known that all prices are multiples of 100 , so there is no need in any rounding. For example, if you'd like to sell tickets with prices [400, 100, 300, 200] and the cinema pays 10 % of each 2 -nd sold ticket and 20 % of each 3 -rd sold ticket, then arranging them in order [100, 200, 300, 400] will lead to contribution equal to 100 cdot 0 + 200 cdot 0.1 + 300 cdot 0.2 + 400 cdot 0.1 = 120 . But arranging them in order [100, 300, 400, 200] will lead to 100 cdot 0 + 300 cdot 0.1 + 400 cdot 0.2 + 200 cdot 0.1 = 130 . Nature can't wait, so you decided to change the order of tickets in such a way, so that the total contribution to programs will reach at least k in minimum number of sold tickets. Or say that it's impossible to do so. In other words, find the minimum number of tickets which are needed to be sold in order to earn at least k . The first line contains a single integer q ( 1 <= q <= 100 ) -- the number of independent queries. Each query consists of 5 lines. The first line of each query contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of tickets. The second line contains n integers p_1, p_2, ... , p_n ( 100 <= p_i <= 10^9 , p_i bmod 100 = 0 ) -- the corresponding prices of tickets. The third line contains two integers x and a$"...

Tutorials

Сodeforces Round 591 (and Technocup 2020 — Elimination Round 1) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65450347 gravity09 C Nov. 20, 2019, 5:48 p.m. OK Clang++17 Diagnostics TESTS 34 1513 44032000 1600
62052902 LaSWeeG C Oct. 7, 2019, 10:03 a.m. OK FPC TESTS 34 93 6451200 1600
62065513 LaSWeeG C Oct. 7, 2019, 3:04 p.m. OK FPC TESTS 34 108 16076800 1600
62074020 Craspedacusta C Oct. 7, 2019, 5:40 p.m. OK FPC TESTS 34 109 16076800 1600
62334624 AutumnKite C Oct. 10, 2019, 11:39 p.m. OK GNU C++11 TESTS 34 46 614400 1600
62193288 LV24twx C Oct. 9, 2019, 10:16 a.m. OK GNU C++11 TESTS 34 46 819200 1600
62558784 vjudge5 C Oct. 14, 2019, 11:23 a.m. OK GNU C++11 TESTS 34 46 1638400 1600
62095073 BeNoble C Oct. 8, 2019, 7:12 a.m. OK GNU C++11 TESTS 34 46 1740800 1600
62574187 huihao C Oct. 14, 2019, 3:23 p.m. OK GNU C++11 TESTS 34 61 1638400 1600
62558464 vjudge4 C Oct. 14, 2019, 11:18 a.m. OK GNU C++11 TESTS 34 61 1638400 1600
62061995 jinfeixibi C Oct. 7, 2019, 1:56 p.m. OK GNU C++11 TESTS 34 61 7987200 1600
62179746 _ShadowSong C Oct. 9, 2019, 6 a.m. OK GNU C++11 TESTS 34 62 819200 1600
62039485 Th3orie C Oct. 7, 2019, 5:24 a.m. OK GNU C++11 TESTS 34 62 819200 1600
62348653 Frame233 C Oct. 11, 2019, 8:35 a.m. OK GNU C++11 TESTS 34 62 1638400 1600
64303692 MatinZare C Nov. 5, 2019, 10:52 a.m. OK GNU C++14 TESTS 34 92 819200 1600
66630120 VietCT C Dec. 11, 2019, 10:51 a.m. OK GNU C++14 TESTS 34 93 819200 1600
66105524 vjudge2 C Dec. 1, 2019, 8:47 a.m. OK GNU C++14 TESTS 34 93 819200 1600
64315482 MatinZare C Nov. 5, 2019, 1:59 p.m. OK GNU C++14 TESTS 34 93 819200 1600
64314848 ilya-rv C Nov. 5, 2019, 1:49 p.m. OK GNU C++14 TESTS 34 93 819200 1600
62666912 frost_ C Oct. 16, 2019, 8:08 a.m. OK GNU C++14 TESTS 34 93 819200 1600
62662475 dev_gupta C Oct. 16, 2019, 6:18 a.m. OK GNU C++14 TESTS 34 93 819200 1600
62090477 VladKov C Oct. 8, 2019, 5:20 a.m. OK GNU C++14 TESTS 34 93 819200 1600
62086204 windhs C Oct. 8, 2019, 2:09 a.m. OK GNU C++14 TESTS 34 93 819200 1600
62075228 Md_Shamol_Ali C Oct. 7, 2019, 6:09 p.m. OK GNU C++14 TESTS 34 93 819200 1600
62212663 .tx C Oct. 9, 2019, 2:58 p.m. OK GNU C++17 TESTS 34 46 2457600 1600
64597188 ritik_patel05 C Nov. 9, 2019, 5:12 p.m. OK GNU C++17 TESTS 34 78 819200 1600
62214536 KiruxaLight C Oct. 9, 2019, 3:34 p.m. OK GNU C++17 TESTS 34 78 819200 1600
62026321 enabl3d C Oct. 6, 2019, 8:22 p.m. OK GNU C++17 TESTS 34 78 819200 1600
65889034 Muh C Nov. 28, 2019, 1:59 a.m. OK GNU C++17 TESTS 34 93 819200 1600
63685041 Abdelrhman_Akram C Oct. 28, 2019, 10:01 p.m. OK GNU C++17 TESTS 34 93 819200 1600
62985596 Sammarize C Oct. 20, 2019, 9:25 a.m. OK GNU C++17 TESTS 34 93 819200 1600
62918301 lam.le1512 C Oct. 19, 2019, 9:17 a.m. OK GNU C++17 TESTS 34 93 819200 1600
62463029 XRDS-BJFU101 C Oct. 13, 2019, 8:56 a.m. OK GNU C++17 TESTS 34 93 819200 1600
62115507 IWMG C Oct. 8, 2019, 1:16 p.m. OK GNU C++17 TESTS 34 93 819200 1600
62057036 jmazon C Oct. 7, 2019, 12:26 p.m. OK Haskell TESTS 34 1091 56832000 1600
62102410 4mda4mda C Oct. 8, 2019, 9:35 a.m. OK Java 8 TESTS 34 186 3379200 1600
63398664 prituladima C Oct. 25, 2019, 5:31 p.m. OK Java 8 TESTS 34 187 0 1600
62037224 LeamyCodes C Oct. 7, 2019, 4:25 a.m. OK Java 8 TESTS 34 218 3174400 1600
63397996 prituladima C Oct. 25, 2019, 5:18 p.m. OK Java 8 TESTS 34 233 0 1600
62027622 prem_cse C Oct. 6, 2019, 9:09 p.m. OK Java 8 TESTS 34 234 7372800 1600
63911575 Shark_Eater C Oct. 31, 2019, 8:29 a.m. OK Java 8 TESTS 34 248 0 1600
62010229 daniilzimin4 C Oct. 6, 2019, 3:44 p.m. OK Java 8 TESTS 34 249 4608000 1600
62027510 monsterr C Oct. 6, 2019, 9:04 p.m. OK Java 8 TESTS 34 249 7372800 1600
62047970 Witless_Deer C Oct. 7, 2019, 8:33 a.m. OK Java 8 TESTS 34 264 4608000 1600
62085218 derrick20 C Oct. 8, 2019, 1:03 a.m. OK Java 8 TESTS 34 265 0 1600
62527447 walborn C Oct. 13, 2019, 5:54 p.m. OK JavaScript TESTS 34 280 36147200 1600
62354567 NguyenfromVN C Oct. 11, 2019, 10:32 a.m. OK Kotlin TESTS 34 467 16384000 1600
62103027 nonamezzzz C Oct. 8, 2019, 9:47 a.m. OK Kotlin TESTS 34 468 16384000 1600
66097141 vjudge2 C Dec. 1, 2019, 8:03 a.m. OK MS C++ TESTS 34 109 1638400 1600
66180287 vjudge3 C Dec. 2, 2019, 12:36 p.m. OK MS C++ TESTS 34 109 4812800 1600
62460894 vjudge1 C Oct. 13, 2019, 8:12 a.m. OK MS C++ TESTS 34 124 2457600 1600
66452355 vjudge4 C Dec. 7, 2019, 11:56 a.m. OK MS C++ TESTS 34 171 5324800 1600
62909683 vjudge3 C Oct. 19, 2019, 6:55 a.m. OK MS C++ TESTS 34 187 2662400 1600
69029735 vjudge3 C Jan. 18, 2020, 7:53 a.m. OK MS C++ TESTS 34 217 1638400 1600
69495707 DumbDumb C Jan. 25, 2020, 3:45 a.m. OK MS C++ TESTS 34 218 1638400 1600
66579584 vjudge5 C Dec. 10, 2019, 8:46 a.m. OK MS C++ TESTS 34 218 3993600 1600
69471177 vjudge4 C Jan. 24, 2020, 2:35 p.m. OK MS C++ TESTS 34 233 1638400 1600
66233231 vjudge5 C Dec. 3, 2019, 3:12 p.m. OK MS C++ TESTS 34 234 3174400 1600
64468207 THTGAN C Nov. 7, 2019, 12:20 p.m. OK MS C++ 2017 TESTS 34 108 819200 1600
62055920 wust_mengzhennan C Oct. 7, 2019, 12:03 p.m. OK MS C++ 2017 TESTS 34 108 1638400 1600
66101074 vjudge2 C Dec. 1, 2019, 8:26 a.m. OK MS C++ 2017 TESTS 34 155 1638400 1600
65822786 kurs C Nov. 27, 2019, 11:18 a.m. OK MS C++ 2017 TESTS 34 218 2662400 1600
69829799 Mad112233 C Jan. 30, 2020, 10:08 a.m. OK MS C++ 2017 TESTS 34 233 1638400 1600
69209321 sergestus C Jan. 20, 2020, 7:14 p.m. OK MS C++ 2017 TESTS 34 233 1638400 1600
62011740 ialakhtin C Oct. 6, 2019, 3:49 p.m. OK MS C++ 2017 TESTS 34 233 2457600 1600
62005378 GandarfGamer C Oct. 6, 2019, 3:31 p.m. OK MS C++ 2017 TESTS 34 233 2457600 1600
69724731 vjudge3 C Jan. 29, 2020, 11:53 a.m. OK MS C++ 2017 TESTS 34 234 1638400 1600
62019425 rast.dan.rast C Oct. 6, 2019, 4:31 p.m. OK MS C++ 2017 TESTS 34 234 3993600 1600
64715260 aeternalis1 C Nov. 11, 2019, 9:24 p.m. OK PyPy 2 TESTS 34 280 14540800 1600
62759797 ac_97 C Oct. 17, 2019, 6:26 a.m. OK PyPy 3 TESTS 34 390 17203200 1600
66672132 sruthi_1729 C Dec. 12, 2019, 9:48 a.m. OK PyPy 3 TESTS 34 405 23859200 1600
62066212 ayshiff C Oct. 7, 2019, 3:17 p.m. OK PyPy 3 TESTS 34 421 16793600 1600
62589445 Razorlance C Oct. 14, 2019, 8:17 p.m. OK PyPy 3 TESTS 34 436 17305600 1600
62012376 Gleefre C Oct. 6, 2019, 3:51 p.m. OK PyPy 3 TESTS 34 436 19660800 1600
62014289 Arbuzniy_kekich C Oct. 6, 2019, 3:58 p.m. OK PyPy 3 TESTS 34 467 16486400 1600
62056837 squishy1337 C Oct. 7, 2019, 12:22 p.m. OK PyPy 3 TESTS 34 467 16793600 1600
62021642 megabluejay C Oct. 6, 2019, 4:49 p.m. OK PyPy 3 TESTS 34 483 17305600 1600
68751508 polingram C Jan. 14, 2020, 6:50 a.m. OK PyPy 3 TESTS 34 483 18329600 1600
62549981 arslnjmn C Oct. 14, 2019, 8:11 a.m. OK PyPy 3 TESTS 34 514 16793600 1600
62311688 jthuang41 C Oct. 10, 2019, 2:06 p.m. OK Python 2 TESTS 34 1653 20992000 1600
69211828 nealzane C Jan. 20, 2020, 8:31 p.m. OK Python 3 TESTS 34 311 16896000 1600
63197703 vishnutheerthep C Oct. 22, 2019, 7:10 p.m. OK Python 3 TESTS 34 311 17100800 1600
62379462 river_man C Oct. 11, 2019, 6:32 p.m. OK Python 3 TESTS 34 342 16588800 1600
62081473 Postlogic C Oct. 7, 2019, 9 p.m. OK Python 3 TESTS 34 404 16179200 1600
62081207 Postlogic C Oct. 7, 2019, 8:50 p.m. OK Python 3 TESTS 34 436 16179200 1600
62172926 rfi-cfif C Oct. 9, 2019, 2:16 a.m. OK Python 3 TESTS 34 468 16588800 1600
62012047 Kurisu__ C Oct. 6, 2019, 3:50 p.m. OK Python 3 TESTS 34 514 16588800 1600
62028584 FLOP C Oct. 6, 2019, 9:49 p.m. OK Python 3 TESTS 34 514 17203200 1600
62017364 IlyaProger C Oct. 6, 2019, 4:12 p.m. OK Python 3 TESTS 34 545 15769600 1600
62143495 Ortsb C Oct. 8, 2019, 3:56 p.m. OK Python 3 TESTS 34 545 17817600 1600

remove filters

Back to search problems