Codeforces Round 477 (rated, Div. 2, based on VK Cup 2018 Round 3)

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
967 Codeforces Round 477 (rated, Div. 2, based on VK Cup 2018 Round 3) FINISHED False 9000 212431487 April 29, 2018, 1:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7263 ) B Watering System PROGRAMMING math sortings 1000

B'Arkady wants to water his only flower. Unfortunately, he has a very poor watering system that was designed for n flowers and so it looks like a pipe with n holes. Arkady can only use the water that flows from the first hole. Arkady can block some of the holes, and then pour A liters of water into the pipe. After that, the water will flow out from the non-blocked holes proportionally to their sizes s_1, s_2, ldots, s_n . In other words, if the sum of sizes of non-blocked holes is S , and the i -th hole is not blocked, frac{s_i cdot A}{S} liters of water will flow out of it. What is the minimum number of holes Arkady should block to make at least B liters of water flow out of the first hole? The first line contains three integers n , A , B ( 1 <= n <= 100 ,000 , 1 <= B <= A <= 10^4 ) -- the number of holes, the volume of water Arkady will pour into the system, and the volume he wants to get out of the first hole. The second line contains n integers s_1, s_2, ldots, s_n ( 1 <= s_i <= 10^4 ) -- the sizes of the holes. Print a single integer -- the number of holes Arkady should block. In the first example Arkady should block at least one hole. After that, frac{10 cdot 2}{6} approx 3.333 liters of water will flow out of the first hole, and that suits Arkady. In the second example even without blocking any hole, frac{80 cdot 3}{10} = 24 liters will flow out of the first hole, that is not less than 20 . In the third example Arkady has to block all holes except the first to make all water flow out of the first hole. '...

Tutorials

Разбор VK 2018 Round 3 + Codeforces Round #477

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
37731741 arukuka B April 29, 2018, 6:39 p.m. OK D TESTS 26 46 8601600 1000
38314326 admire.japan B May 16, 2018, 8:39 a.m. OK D TESTS 26 46 8908800 1000
37714508 ruban B April 29, 2018, 1:51 p.m. OK Delphi TESTS 26 46 82534400 1000
47834587 chaorenhaha B Jan. 2, 2019, 9:21 a.m. OK FPC TESTS 26 31 409600 1000
37711332 Ahriman B April 29, 2018, 1:34 p.m. OK FPC TESTS 26 31 3481600 1000
37718199 Vint666 B April 29, 2018, 2:17 p.m. OK FPC TESTS 26 31 3584000 1000
64794763 luogu_bot1 B Nov. 13, 2019, 12:29 p.m. OK FPC TESTS 26 46 819200 1000
37712117 AHTOH._. B April 29, 2018, 1:38 p.m. OK FPC TESTS 26 46 3481600 1000
37711094 infmourir B April 29, 2018, 1:33 p.m. OK FPC TESTS 26 46 3481600 1000
37712851 rabbitcxk B April 29, 2018, 1:42 p.m. OK FPC TESTS 26 46 3891200 1000
37725728 MYNAMEISSHARIFUL B April 29, 2018, 3:24 p.m. OK GNU C TESTS 26 31 3379200 1000
39259799 jayantasadhu4557 B June 15, 2018, 7:15 a.m. OK GNU C TESTS 26 46 409600 1000
39793761 C1ariS B June 30, 2018, 9:50 a.m. OK GNU C TESTS 26 46 819200 1000
38059082 Kai.Lu B May 9, 2018, 2:54 a.m. OK GNU C TESTS 26 46 3686400 1000
38014241 Nimish B May 8, 2018, 7:31 a.m. OK GNU C TESTS 26 46 3686400 1000
37740249 yashk B April 30, 2018, 5:30 a.m. OK GNU C TESTS 26 46 3686400 1000
37718100 Gnest_Imp B April 29, 2018, 2:16 p.m. OK GNU C TESTS 26 46 3686400 1000
37715781 akog B April 29, 2018, 2 p.m. OK GNU C TESTS 26 46 3686400 1000
37711391 caen B April 29, 2018, 1:35 p.m. OK GNU C TESTS 26 46 3686400 1000
37799564 I_Love_U_Sohan B May 1, 2018, 1:14 p.m. OK GNU C TESTS 26 46 3891200 1000
39321128 luogu_bot2 B June 16, 2018, 11:43 p.m. OK GNU C++ TESTS 26 30 819200 1000
37716327 menjiantong B April 29, 2018, 2:03 p.m. OK GNU C++ TESTS 26 30 3891200 1000
37713037 divakar_tomar B April 29, 2018, 1:43 p.m. OK GNU C++ TESTS 26 30 3891200 1000
37716453 Position B April 29, 2018, 2:04 p.m. OK GNU C++ TESTS 26 30 4300800 1000
38423046 vjudge4 B May 19, 2018, 8:17 a.m. OK GNU C++ TESTS 26 31 204800 1000
40932326 ReaLNero1 B July 30, 2018, 1:43 a.m. OK GNU C++ TESTS 26 31 409600 1000
40766152 sudekidesu B July 26, 2018, 6:30 a.m. OK GNU C++ TESTS 26 31 409600 1000
38626287 Sola1Go B May 26, 2018, 7:03 a.m. OK GNU C++ TESTS 26 31 409600 1000
38391922 vjudge3 B May 18, 2018, 6:51 a.m. OK GNU C++ TESTS 26 31 512000 1000
38391256 vjudge3 B May 18, 2018, 6:25 a.m. OK GNU C++ TESTS 26 31 1126400 1000
37714379 york135 B April 29, 2018, 1:51 p.m. OK GNU C11 TESTS 26 31 3686400 1000
37714884 likcoras B April 29, 2018, 1:54 p.m. OK GNU C11 TESTS 26 31 3686400 1000
68967907 vjudge5 B Jan. 17, 2020, 5:51 a.m. OK GNU C11 TESTS 26 46 409600 1000
47877693 NoSoul B Jan. 3, 2019, 4:24 p.m. OK GNU C11 TESTS 26 46 409600 1000
63420004 DevJewel B Oct. 26, 2019, 6:04 a.m. OK GNU C11 TESTS 26 46 409600 1000
37748605 pakili B April 30, 2018, 1:01 p.m. OK GNU C11 TESTS 26 46 3686400 1000
37710855 sansen B April 29, 2018, 1:32 p.m. OK GNU C11 TESTS 26 46 4096000 1000
37889667 falcon_9 B May 4, 2018, 6:35 p.m. OK GNU C11 TESTS 26 46 4505600 1000
57323575 You_Know_Who B July 19, 2019, 11:07 a.m. OK GNU C11 TESTS 26 61 409600 1000
37713044 ConvexHalf B April 29, 2018, 1:43 p.m. OK GNU C11 TESTS 26 78 4915200 1000
38627799 HarvestWu B May 26, 2018, 7:59 a.m. OK GNU C++11 TESTS 26 31 204800 1000
51997195 KH18 B March 30, 2019, 3:22 a.m. OK GNU C++11 TESTS 26 31 409600 1000
44352691 Loi_tttty B Oct. 15, 2018, 10:58 a.m. OK GNU C++11 TESTS 26 31 409600 1000
44259105 vjudge5 B Oct. 13, 2018, 1:40 p.m. OK GNU C++11 TESTS 26 31 409600 1000
38627300 daixiongsheng B May 26, 2018, 7:41 a.m. OK GNU C++11 TESTS 26 31 409600 1000
38480775 New-ErA B May 21, 2018, 10:53 a.m. OK GNU C++11 TESTS 26 31 409600 1000
44352983 littlechai B Oct. 15, 2018, 11:06 a.m. OK GNU C++11 TESTS 26 31 409600 1000
40743259 hcmus_k14 B July 25, 2018, 1:19 p.m. OK GNU C++11 TESTS 26 31 512000 1000
43984880 tahiatul B Oct. 8, 2018, 6:24 a.m. OK GNU C++11 TESTS 26 31 716800 1000
49038335 user_of_CF B Jan. 27, 2019, 5:13 a.m. OK GNU C++11 TESTS 26 31 819200 1000
37713467 E.Vera.Tse B April 29, 2018, 1:45 p.m. OK GNU C++14 TESTS 26 30 4300800 1000
60648743 ratul_supertramp B Sept. 15, 2019, 6:13 p.m. OK GNU C++14 TESTS 26 31 409600 1000
48466830 iwgtg B Jan. 16, 2019, 5:42 p.m. OK GNU C++14 TESTS 26 31 409600 1000
37713285 OptimusPrime B April 29, 2018, 1:44 p.m. OK GNU C++14 TESTS 26 31 3481600 1000
37710592 Linkus B April 29, 2018, 1:31 p.m. OK GNU C++14 TESTS 26 31 3788800 1000
37714110 Acheing B April 29, 2018, 1:49 p.m. OK GNU C++14 TESTS 26 31 3788800 1000
37716299 Cooook B April 29, 2018, 2:03 p.m. OK GNU C++14 TESTS 26 31 3788800 1000
37733609 MR.INFLATED B April 29, 2018, 8:28 p.m. OK GNU C++14 TESTS 26 31 3788800 1000
37777882 MaxZubec B April 30, 2018, 5:28 p.m. OK GNU C++14 TESTS 26 31 3788800 1000
37715845 LIFEISNOTANINTENDOGAME B April 29, 2018, 2 p.m. OK GNU C++14 TESTS 26 31 3891200 1000
56544985 KaziMuktadir B July 5, 2019, 7:15 a.m. OK GNU C++17 TESTS 26 31 409600 1000
55691184 WTHM B June 17, 2019, 6:17 p.m. OK GNU C++17 TESTS 26 31 409600 1000
55691204 Saurav_Paul B June 17, 2019, 6:18 p.m. OK GNU C++17 TESTS 26 31 409600 1000
37740985 sicon54 B April 30, 2018, 6:06 a.m. OK GNU C++17 TESTS 26 31 4300800 1000
37716741 WBinyv B April 29, 2018, 2:06 p.m. OK GNU C++17 TESTS 26 31 4505600 1000
37718701 kuyeee B April 29, 2018, 2:21 p.m. OK GNU C++17 TESTS 26 31 7372800 1000
68358889 avibhar B Jan. 7, 2020, 1:17 p.m. OK GNU C++17 TESTS 26 46 409600 1000
68981493 PyAlpha B Jan. 17, 2020, 10:54 a.m. OK GNU C++17 TESTS 26 46 409600 1000
68954497 p4lacios B Jan. 16, 2020, 7:27 p.m. OK GNU C++17 TESTS 26 46 409600 1000
67520490 manovik18 B Dec. 24, 2019, 12:15 p.m. OK GNU C++17 TESTS 26 46 409600 1000
37715831 nieru B April 29, 2018, 2 p.m. OK Haskell TESTS 26 529 69120000 1000
45470758 I.A.K.O.V B Nov. 9, 2018, 9:28 a.m. OK Java 8 TESTS 26 109 0 1000
37713810 parth_15 B April 29, 2018, 1:47 p.m. OK Java 8 TESTS 26 124 20787200 1000
37730530 Harpae B April 29, 2018, 5:58 p.m. OK Java 8 TESTS 26 139 20787200 1000
37715250 jenish9599 B April 29, 2018, 1:56 p.m. OK Java 8 TESTS 26 139 21094400 1000
50276326 CharlesDai B Feb. 21, 2019, 10:13 a.m. OK Java 8 TESTS 26 140 0 1000
55215031 Mared_Coder B June 6, 2019, 4:18 p.m. OK Java 8 TESTS 26 140 0 1000
48194344 wadissimo B Jan. 10, 2019, 8:13 p.m. OK Java 8 TESTS 26 140 0 1000
41559746 sooraj10 B Aug. 13, 2018, 1:32 p.m. OK Java 8 TESTS 26 140 0 1000
40372668 Jay_13 B July 15, 2018, 9:02 a.m. OK Java 8 TESTS 26 140 0 1000
40067464 pratikwankhede B July 7, 2018, 5:53 p.m. OK Java 8 TESTS 26 140 0 1000
45252410 Killer45 B Nov. 3, 2018, 5:22 p.m. OK Kotlin TESTS 26 187 716800 1000
37711666 ymatsux B April 29, 2018, 1:36 p.m. OK Kotlin TESTS 26 218 22937600 1000
49289450 matej.pristak B Jan. 31, 2019, 6:51 p.m. OK Kotlin TESTS 26 233 25497600 1000
37724850 niksw7 B April 29, 2018, 3:16 p.m. OK Kotlin TESTS 26 280 25292800 1000
37718711 yajun B April 29, 2018, 2:21 p.m. OK Kotlin TESTS 26 358 22630400 1000
56507987 og.kostya B July 4, 2019, 9:15 a.m. OK Mono C# TESTS 26 77 3993600 1000
53308322 aleks180700 B April 26, 2019, 4:39 a.m. OK Mono C# TESTS 26 77 10649600 1000
41559027 mid_or_feed B Aug. 13, 2018, 1:09 p.m. OK Mono C# TESTS 26 77 14745600 1000
37722926 Dimon2305 B April 29, 2018, 2:57 p.m. OK Mono C# TESTS 26 77 18636800 1000
38572896 zazak B May 23, 2018, 10:20 p.m. OK Mono C# TESTS 26 93 12902400 1000
37731684 kuuso B April 29, 2018, 6:36 p.m. OK Mono C# TESTS 26 93 19456000 1000
47397873 tamunsio B Dec. 23, 2018, 12:23 p.m. OK Mono C# TESTS 26 108 10649600 1000
37726418 fastnoise B April 29, 2018, 3:30 p.m. OK Mono C# TESTS 26 576 22220800 1000
37884154 Zaczero B May 4, 2018, 1:31 p.m. OK Mono C# TESTS 26 826 21299200 1000
50926737 vjudge3 B March 7, 2019, 12:13 p.m. OK MS C++ TESTS 26 31 409600 1000
48559802 vjudge2 B Jan. 19, 2019, 6:54 a.m. OK MS C++ TESTS 26 31 409600 1000
48546785 vjudge1 B Jan. 18, 2019, 8:07 p.m. OK MS C++ TESTS 26 31 409600 1000
40606511 WangYuFengkk B July 21, 2018, 11:45 a.m. OK MS C++ TESTS 26 31 409600 1000
69035421 vjudge2 B Jan. 18, 2020, 8:56 a.m. OK MS C++ TESTS 26 31 409600 1000
50910768 vjudge5 B March 7, 2019, 1:52 a.m. OK MS C++ TESTS 26 31 819200 1000
37715597 wmt14 B April 29, 2018, 1:59 p.m. OK MS C++ TESTS 26 31 3891200 1000
37712112 CyrillN B April 29, 2018, 1:38 p.m. OK MS C++ TESTS 26 31 3891200 1000
37717452 swust5120175180 B April 29, 2018, 2:11 p.m. OK MS C++ TESTS 26 31 3891200 1000
37717691 Macha_2333 B April 29, 2018, 2:13 p.m. OK MS C++ TESTS 26 31 3891200 1000
55001513 wjli B June 3, 2019, 4:52 a.m. OK MS C++ 2017 TESTS 26 93 819200 1000
59915553 Moen1578 B Sept. 2, 2019, 7:01 p.m. OK MS C++ 2017 TESTS 26 109 409600 1000
57922634 Uj_employee B July 29, 2019, 5:44 a.m. OK MS C++ 2017 TESTS 26 109 1126400 1000
37722227 Lets_Do_It B April 29, 2018, 2:51 p.m. OK PascalABC.NET TESTS 26 62 16384000 1000
37711661 l-_-l B April 29, 2018, 1:36 p.m. OK PascalABC.NET TESTS 26 77 17920000 1000
37723461 Timofey2001 B April 29, 2018, 3:02 p.m. OK PascalABC.NET TESTS 26 77 20889600 1000
38976945 olpurgin B June 5, 2018, 6:48 p.m. OK PascalABC.NET TESTS 26 78 20582400 1000
37742295 mayakin B April 30, 2018, 7:17 a.m. OK PHP TESTS 26 139 15974400 1000
38108327 Ehzyo B May 11, 2018, 7:57 a.m. OK PyPy 2 TESTS 26 124 27648000 1000
37732516 inishchith. B April 29, 2018, 7:18 p.m. OK PyPy 2 TESTS 26 124 29081600 1000
37711811 gedymin B April 29, 2018, 1:37 p.m. OK PyPy 2 TESTS 26 124 29081600 1000
38929744 Onesh0t B June 3, 2018, 8:09 p.m. OK PyPy 2 TESTS 26 124 29491200 1000
37982403 wolffd B May 7, 2018, 12:48 a.m. OK PyPy 2 TESTS 26 124 29798400 1000
38978393 frmsaul B June 5, 2018, 8:07 p.m. OK PyPy 2 TESTS 26 124 29900800 1000
37715622 supachai_pay B April 29, 2018, 1:59 p.m. OK PyPy 2 TESTS 26 124 29900800 1000
48670076 vjudge5 B Jan. 21, 2019, 10:21 a.m. OK PyPy 2 TESTS 26 140 5427200 1000
40090852 aeternalis1 B July 8, 2018, 4:52 p.m. OK PyPy 2 TESTS 26 155 7372800 1000
37861544 neverwin B May 3, 2018, 12:10 p.m. OK PyPy 3 TESTS 26 140 26828800 1000
37713123 Candyman B April 29, 2018, 1:43 p.m. OK PyPy 3 TESTS 26 155 30617600 1000
37992952 madn B May 7, 2018, 11:28 a.m. OK PyPy 3 TESTS 26 156 30515200 1000
45220223 omarnvidia B Nov. 2, 2018, 8:29 p.m. OK PyPy 3 TESTS 26 170 9216000 1000
37717642 NewUser0 B April 29, 2018, 2:13 p.m. OK PyPy 3 TESTS 26 171 30924800 1000
37715865 yhn112 B April 29, 2018, 2 p.m. OK PyPy 3 TESTS 26 171 31334400 1000
37713276 kjnh10 B April 29, 2018, 1:44 p.m. OK PyPy 3 TESTS 26 186 30515200 1000
54283171 sonhuytranpython2 B May 17, 2019, 2:29 p.m. OK PyPy 3 TESTS 26 187 9216000 1000
60945972 zahra.kh B Sept. 20, 2019, 6:55 p.m. OK PyPy 3 TESTS 26 187 10956800 1000
37712383 pedrofreire B April 29, 2018, 1:40 p.m. OK PyPy 3 TESTS 26 187 30617600 1000
37982445 WyattWismer B May 7, 2018, 12:54 a.m. OK Python 2 TESTS 26 202 11366400 1000
37713265 asfd221 B April 29, 2018, 1:44 p.m. OK Python 2 TESTS 26 202 11366400 1000
38598540 biltharesatyendra B May 25, 2018, 12:58 a.m. OK Python 2 TESTS 26 218 5324800 1000
37742262 nealzane B April 30, 2018, 7:15 a.m. OK Python 2 TESTS 26 218 11366400 1000
37718005 Sehs B April 29, 2018, 2:16 p.m. OK Python 2 TESTS 26 218 11366400 1000
37748070 shailesh_24 B April 30, 2018, 12:36 p.m. OK Python 2 TESTS 26 233 11366400 1000
37724178 jooj B April 29, 2018, 3:09 p.m. OK Python 2 TESTS 26 233 11366400 1000
37748386 tnowakow B April 30, 2018, 12:50 p.m. OK Python 2 TESTS 26 249 11366400 1000
37709550 WNG B April 29, 2018, 1:26 p.m. OK Python 2 TESTS 26 249 12185600 1000
47608512 franckmy B Dec. 28, 2018, 6:47 a.m. OK Python 2 TESTS 26 280 5324800 1000
38586407 Olga333 B May 24, 2018, 12:31 p.m. OK Python 3 TESTS 26 140 6348800 1000
37791530 Yee_172 B May 1, 2018, 7:32 a.m. OK Python 3 TESTS 26 140 13414400 1000
37749701 sergovoy B April 30, 2018, 1:57 p.m. OK Python 3 TESTS 26 140 13414400 1000
37734690 denny_sem B April 29, 2018, 10:02 p.m. OK Python 3 TESTS 26 140 13414400 1000
37719316 IonicStrenth B April 29, 2018, 2:26 p.m. OK Python 3 TESTS 26 140 13414400 1000
37713663 belkka B April 29, 2018, 1:46 p.m. OK Python 3 TESTS 26 140 13414400 1000
55509593 chiragsoni812 B June 12, 2019, 8:45 p.m. OK Python 3 TESTS 26 155 6656000 1000
37712135 and800 B April 29, 2018, 1:38 p.m. OK Python 3 TESTS 26 155 13414400 1000
58920925 spellstaker B Aug. 16, 2019, 5:08 p.m. OK Python 3 TESTS 26 171 6656000 1000
55175085 ziddi B June 5, 2019, 6:18 p.m. OK Python 3 TESTS 26 171 6656000 1000
37792720 MisterZydeco B May 1, 2018, 8:25 a.m. OK Scala TESTS 26 702 47513600 1000

remove filters

Back to search problems