Educational Codeforces Round 53 (Rated for Div. 2)

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
1073 Educational Codeforces Round 53 (Rated for Div. 2) FINISHED False 7200 197047523 Oct. 25, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6479 ) D Berland Fair PROGRAMMING binary search brute force data structures greedy 1700

B"XXI Berland Annual Fair is coming really soon! Traditionally fair consists of n booths, arranged in a circle. The booths are numbered 1 through n clockwise with n being adjacent to 1 . The i -th booths sells some candies for the price of a_i burles per item. Each booth has an unlimited supply of candies. Polycarp has decided to spend at most T burles at the fair. However, he has some plan in mind for his path across the booths: Polycarp's money is finite, thus the process will end once he can no longer buy candy at any booth. Calculate the number of candies Polycarp will buy. The first line contains two integers n and T ( 1 <= n <= 2 cdot 10^5 , 1 <= T <= 10^{18} ) -- the number of booths at the fair and the initial amount of burles Polycarp has. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the price of the single candy at booth number i . Print a single integer -- the total number of candies Polycarp will buy. Let's consider the first example. Here are Polycarp's moves until he runs out of money: No candy can be bought later. The total number of candies bought is 10 . In the second example he has 1 burle left at the end of his path, no candy can be bought with this amount. "...

Tutorials

62742

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45491886 Rimon_1703126 D Nov. 9, 2018, 7:37 p.m. OK Clang++17 Diagnostics TESTS 49 93 0 1700
45491840 Rimon_1703126 D Nov. 9, 2018, 7:34 p.m. OK Clang++17 Diagnostics TESTS 49 93 0 1700
45491678 Rimon_1703126 D Nov. 9, 2018, 7:28 p.m. OK Clang++17 Diagnostics TESTS 49 93 0 1700
50097776 yp0413170337 D Feb. 18, 2019, 1:31 p.m. OK Clang++17 Diagnostics TESTS 49 108 716800 1700
45206108 playerzhou D Nov. 2, 2018, 12:50 p.m. OK Clang++17 Diagnostics TESTS 49 920 1024000 1700
45565191 hector_ D Nov. 11, 2018, 2:01 p.m. OK Clang++17 Diagnostics TESTS 49 1060 1024000 1700
47091944 dlightny D Dec. 16, 2018, 6:29 a.m. OK FPC TESTS 49 77 819200 1700
45137972 cbl_nhathuy D Oct. 31, 2018, 1:13 p.m. OK FPC TESTS 49 77 819200 1700
45475825 hry D Nov. 9, 2018, 12:25 p.m. OK FPC TESTS 49 77 1638400 1700
45138288 cbl_nhathuy D Oct. 31, 2018, 1:21 p.m. OK FPC TESTS 49 77 1638400 1700
45137898 cbl_nhathuy D Oct. 31, 2018, 1:11 p.m. OK FPC TESTS 49 77 1638400 1700
45433263 chaorenhaha D Nov. 8, 2018, 6:07 a.m. OK FPC TESTS 49 77 7987200 1700
44898137 luogu_bot4 D Oct. 26, 2018, 7:39 a.m. OK FPC TESTS 49 93 1638400 1700
44874850 vanda D Oct. 25, 2018, 4:49 p.m. OK GNU C11 TESTS 49 46 2355200 1700
46091888 Asevenx D Nov. 22, 2018, 7:56 p.m. OK GNU C11 TESTS 49 61 819200 1700
45500458 DedMartyn D Nov. 10, 2018, 7:17 a.m. OK GNU C11 TESTS 49 61 819200 1700
46532435 shreya_2004 D Dec. 3, 2018, 6:43 a.m. OK GNU C11 TESTS 49 61 2355200 1700
45349201 Jousero D Nov. 6, 2018, 6:20 a.m. OK GNU C11 TESTS 49 62 819200 1700
46092089 Asevenx D Nov. 22, 2018, 8:03 p.m. OK GNU C11 TESTS 49 62 819200 1700
46721510 10Era10 D Dec. 7, 2018, 1:21 p.m. OK GNU C11 TESTS 49 62 819200 1700
64346740 rhratulhasan007 D Nov. 6, 2019, 6:40 a.m. OK GNU C11 TESTS 49 62 1638400 1700
68746523 ZH. D Jan. 14, 2020, 4:53 a.m. OK GNU C11 TESTS 49 62 1638400 1700
52254303 vjudge1 D April 3, 2019, 4:10 a.m. OK GNU C11 TESTS 49 62 2355200 1700
44895145 huadonff D Oct. 26, 2018, 6:14 a.m. OK GNU C++11 TESTS 49 30 160358400 1700
64673493 Mr_Kevin D Nov. 11, 2019, 7:03 a.m. OK GNU C++11 TESTS 49 31 614400 1700
48028641 luogu_bot1 D Jan. 6, 2019, 10:52 a.m. OK GNU C++11 TESTS 49 31 614400 1700
52560286 luogu_bot3 D April 10, 2019, 9:58 a.m. OK GNU C++11 TESTS 49 31 614400 1700
45033132 hoki_plus D Oct. 29, 2018, 5:52 a.m. OK GNU C++11 TESTS 49 31 819200 1700
44991389 zhou2003 D Oct. 28, 2018, 1:04 p.m. OK GNU C++11 TESTS 49 31 819200 1700
64340278 luogu_bot3 D Nov. 6, 2019, 2:03 a.m. OK GNU C++11 TESTS 49 31 819200 1700
48657234 ReaLNero1 D Jan. 21, 2019, 3:36 a.m. OK GNU C++11 TESTS 49 31 819200 1700
45033326 luogu_bot2 D Oct. 29, 2018, 6:02 a.m. OK GNU C++11 TESTS 49 31 819200 1700
63001940 Xing_Ling D Oct. 20, 2019, 10:35 a.m. OK GNU C++11 TESTS 49 31 1433600 1700
44877381 Linkus D Oct. 25, 2018, 5:37 p.m. OK GNU C++14 TESTS 49 31 819200 1700
46373194 wleung_bvg D Nov. 29, 2018, 5:01 p.m. OK GNU C++14 TESTS 49 31 2662400 1700
44911220 yangshuang D Oct. 26, 2018, 1:35 p.m. OK GNU C++14 TESTS 49 46 1536000 1700
44876985 Linkus D Oct. 25, 2018, 5:27 p.m. OK GNU C++14 TESTS 49 46 5017600 1700
45227279 vjudge4 D Nov. 3, 2018, 4:30 a.m. OK GNU C++14 TESTS 49 61 819200 1700
45310942 mean2k1 D Nov. 5, 2018, 3:54 a.m. OK GNU C++14 TESTS 49 61 819200 1700
45478179 xiaolongbao D Nov. 9, 2018, 1:27 p.m. OK GNU C++14 TESTS 49 61 819200 1700
44896911 vjudge2 D Oct. 26, 2018, 7:05 a.m. OK GNU C++14 TESTS 49 61 1638400 1700
44903607 Railgun D Oct. 26, 2018, 10:20 a.m. OK GNU C++14 TESTS 49 61 5324800 1700
60305458 dh_love_fzw D Sept. 9, 2019, 1:41 p.m. OK GNU C++14 TESTS 49 62 819200 1700
44910233 libra9z D Oct. 26, 2018, 1:11 p.m. OK GNU C++17 TESTS 49 46 819200 1700
45090760 xxtz D Oct. 30, 2018, 9:27 a.m. OK GNU C++17 TESTS 49 46 2867200 1700
50302818 LongChampion D Feb. 22, 2019, 3:51 a.m. OK GNU C++17 TESTS 49 61 819200 1700
69671554 vjudge5 D Jan. 28, 2020, 1:09 p.m. OK GNU C++17 TESTS 49 61 819200 1700
45055726 vjudge2 D Oct. 29, 2018, 12:38 p.m. OK GNU C++17 TESTS 49 61 819200 1700
69182461 thtsshz_bgwrswh D Jan. 20, 2020, 10:43 a.m. OK GNU C++17 TESTS 49 61 1740800 1700
50087473 Mynesis D Feb. 18, 2019, 8:21 a.m. OK GNU C++17 TESTS 49 61 3174400 1700
69456109 liyuchong2 D Jan. 24, 2020, 8:42 a.m. OK GNU C++17 TESTS 49 62 819200 1700
69645357 vjudge5 D Jan. 28, 2020, 12:38 a.m. OK GNU C++17 TESTS 49 62 819200 1700
69851138 Rahul_cpp D Jan. 30, 2020, 3:40 p.m. OK GNU C++17 TESTS 49 62 819200 1700
44977103 megaspazz D Oct. 28, 2018, 6:20 a.m. OK Go TESTS 49 46 5324800 1700
45193649 hqhs D Nov. 2, 2018, 5:15 a.m. OK Go TESTS 49 187 5222400 1700
45129020 Marii D Oct. 31, 2018, 9:24 a.m. OK Go TESTS 49 187 9728000 1700
64433350 pizzaEater D Nov. 6, 2019, 11:06 p.m. OK Java 11 TESTS 49 218 3993600 1700
68923129 bluesky111 D Jan. 16, 2020, 9:48 a.m. OK Java 8 TESTS 49 124 0 1700
46398055 NMouad21 D Nov. 30, 2018, 10:46 a.m. OK Java 8 TESTS 49 124 0 1700
46015856 tusharjape007 D Nov. 21, 2018, 3:17 a.m. OK Java 8 TESTS 49 124 0 1700
45265839 AJ47 D Nov. 4, 2018, 5:48 a.m. OK Java 8 TESTS 49 124 0 1700
45260075 rogernadal D Nov. 4, 2018, 12:26 a.m. OK Java 8 TESTS 49 124 0 1700
45069829 sooraj10 D Oct. 29, 2018, 7:04 p.m. OK Java 8 TESTS 49 124 0 1700
44975306 darshankdarji D Oct. 28, 2018, 4:57 a.m. OK Java 8 TESTS 49 124 0 1700
44962259 revanthreddy85 D Oct. 27, 2018, 5:08 p.m. OK Java 8 TESTS 49 124 0 1700
44945326 paranoidninja D Oct. 27, 2018, 9:51 a.m. OK Java 8 TESTS 49 124 0 1700
44941972 wery0 D Oct. 27, 2018, 8:15 a.m. OK Java 8 TESTS 49 124 0 1700
45205288 dimoff66 D Nov. 2, 2018, 12:23 p.m. OK JavaScript TESTS 49 249 37990400 1700
44874524 mihau D Oct. 25, 2018, 4:45 p.m. OK Kotlin TESTS 49 280 28569600 1700
56476243 og.kostya D July 3, 2019, 1:16 p.m. OK Mono C# TESTS 49 78 5222400 1700
46032639 om1042 D Nov. 21, 2018, 2:35 p.m. OK Mono C# TESTS 49 109 25600000 1700
45084198 tattosha_aptan D Oct. 30, 2018, 6:05 a.m. OK Mono C# TESTS 49 109 26316800 1700
46053163 rprakash15 D Nov. 22, 2018, 9:10 a.m. OK Mono C# TESTS 49 124 26419200 1700
47619353 Mem D Dec. 28, 2018, 12:06 p.m. OK Mono C# TESTS 49 140 32256000 1700
44890680 eki D Oct. 26, 2018, 3:03 a.m. OK Mono C# TESTS 49 140 36454400 1700
44878055 Roverandom D Oct. 25, 2018, 5:51 p.m. OK Mono C# TESTS 49 140 44134400 1700
45033660 Strelokask D Oct. 29, 2018, 6:18 a.m. OK Mono C# TESTS 49 155 32768000 1700
60168876 appalaswamy1990 D Sept. 6, 2019, 12:06 p.m. OK Mono C# TESTS 49 186 37273600 1700
44939067 phungchikien276 D Oct. 27, 2018, 6:55 a.m. OK Mono C# TESTS 49 187 36659200 1700
48867149 vjudge3 D Jan. 24, 2019, 3:56 a.m. OK MS C++ TESTS 49 46 819200 1700
48866232 vjudge2 D Jan. 24, 2019, 3:20 a.m. OK MS C++ TESTS 49 46 1638400 1700
46540171 vjudge5 D Dec. 3, 2018, 11:33 a.m. OK MS C++ TESTS 49 46 1638400 1700
45880683 Houbunsha D Nov. 17, 2018, 1:49 p.m. OK MS C++ TESTS 49 46 1638400 1700
68750109 vjudge4 D Jan. 14, 2020, 6:22 a.m. OK MS C++ TESTS 49 46 1843200 1700
45137345 vjudge1 D Oct. 31, 2018, 12:57 p.m. OK MS C++ TESTS 49 46 2457600 1700
44906165 TitorDong2333 D Oct. 26, 2018, 11:34 a.m. OK MS C++ TESTS 49 46 2457600 1700
45262423 vjudge2 D Nov. 4, 2018, 3:17 a.m. OK MS C++ TESTS 49 61 819200 1700
68717930 vjudge1 D Jan. 13, 2020, 3:09 p.m. OK MS C++ TESTS 49 61 1638400 1700
44940904 vjudge2 D Oct. 27, 2018, 7:44 a.m. OK MS C++ TESTS 49 61 1638400 1700
49684988 Young_Young D Feb. 10, 2019, 6:28 a.m. OK MS C++ 2017 TESTS 49 78 2457600 1700
68763560 vjudge1 D Jan. 14, 2020, 9:03 a.m. OK MS C++ 2017 TESTS 49 78 7987200 1700
54146924 Still_Theory D May 14, 2019, 8:09 p.m. OK MS C++ 2017 TESTS 49 202 1638400 1700
61925540 vjudge4 D Oct. 5, 2019, 2:31 p.m. OK MS C++ 2017 TESTS 49 202 1638400 1700
51868341 index_ D March 26, 2019, 4:14 p.m. OK MS C++ 2017 TESTS 49 218 1638400 1700
59821337 Spiritum D Aug. 31, 2019, 5:27 p.m. OK MS C++ 2017 TESTS 49 249 7270400 1700
45335969 KGYYT D Nov. 5, 2018, 5:39 p.m. OK PascalABC.NET TESTS 49 171 4403200 1700
44884631 BD_SM D Oct. 25, 2018, 8:58 p.m. OK PascalABC.NET TESTS 49 171 6963200 1700
45919234 AngryBunny D Nov. 18, 2018, 3:35 p.m. OK PascalABC.NET TESTS 49 186 3584000 1700
44871452 rsFalse D Oct. 25, 2018, 4:25 p.m. OK Perl TESTS 49 264 30515200 1700
44875149 rsFalse D Oct. 25, 2018, 4:53 p.m. OK Perl TESTS 49 311 42496000 1700
45139068 Onesh0t D Oct. 31, 2018, 1:41 p.m. OK PyPy 2 TESTS 49 171 13209600 1700
44911024 YESMAths D Oct. 26, 2018, 1:30 p.m. OK PyPy 2 TESTS 49 187 13107200 1700
46123913 IrOty1oX5uSp4 D Nov. 23, 2018, 5:51 p.m. OK PyPy 2 TESTS 49 187 15360000 1700
46123931 IrOty1oX5uSp4 D Nov. 23, 2018, 5:51 p.m. OK PyPy 2 TESTS 49 202 15564800 1700
44896024 c1729 D Oct. 26, 2018, 6:40 a.m. OK PyPy 2 TESTS 49 514 47308800 1700
44904176 YESMAths D Oct. 26, 2018, 10:37 a.m. OK PyPy 2 TESTS 49 1200 63590400 1700
47621879 yellowflash D Dec. 28, 2018, 1:11 p.m. OK PyPy 3 TESTS 49 296 26726400 1700
45226180 Firepaw D Nov. 3, 2018, 3:28 a.m. OK PyPy 3 TESTS 49 296 26726400 1700
45078485 D_J_Z D Oct. 30, 2018, 3:53 a.m. OK PyPy 3 TESTS 49 296 26726400 1700
55331594 fatnot D June 9, 2019, 11:19 a.m. OK PyPy 3 TESTS 49 296 26828800 1700
45105091 ulyabelyaeva D Oct. 30, 2018, 3:43 p.m. OK PyPy 3 TESTS 49 296 26828800 1700
44891308 tmsausa D Oct. 26, 2018, 3:28 a.m. OK PyPy 3 TESTS 49 311 21094400 1700
46036373 IrOty1oX5uSp4 D Nov. 21, 2018, 4:38 p.m. OK PyPy 3 TESTS 49 311 26624000 1700
45652629 omarnvidia D Nov. 13, 2018, 3:09 a.m. OK PyPy 3 TESTS 49 311 26726400 1700
45259799 homoeconomicus D Nov. 3, 2018, 11:59 p.m. OK PyPy 3 TESTS 49 311 26828800 1700
44872793 sound_of_silence D Oct. 25, 2018, 4:31 p.m. OK PyPy 3 TESTS 49 311 26828800 1700
45539288 ajitesh D Nov. 10, 2018, 6:31 p.m. OK Python 2 TESTS 49 451 11059200 1700
45188357 PBatch D Nov. 1, 2018, 10:33 p.m. OK Python 2 TESTS 49 483 11161600 1700
44882323 thuglife69 D Oct. 25, 2018, 7:44 p.m. OK Python 2 TESTS 49 483 11161600 1700
44925885 samchen123 D Oct. 26, 2018, 8:06 p.m. OK Python 2 TESTS 49 514 11059200 1700
52509091 chenvictor1999 D April 8, 2019, 8:45 p.m. OK Python 2 TESTS 49 529 11264000 1700
44994354 fatpuffer D Oct. 28, 2018, 2:38 p.m. OK Python 2 TESTS 49 545 12185600 1700
44872653 biltharesatyendra D Oct. 25, 2018, 4:31 p.m. OK Python 2 TESTS 49 607 11161600 1700
44881432 III_Wolverine_III D Oct. 25, 2018, 7:19 p.m. OK Python 3 TESTS 49 217 17612800 1700
45583216 nani_7 D Nov. 12, 2018, 6:18 a.m. OK Python 3 TESTS 49 264 18329600 1700
44875801 nikeshthapa255 D Oct. 25, 2018, 5:03 p.m. OK Python 3 TESTS 49 264 18329600 1700
47284199 malviyan_shiv D Dec. 20, 2018, 4:46 a.m. OK Python 3 TESTS 49 265 16896000 1700
44889794 kgmkr00001 D Oct. 26, 2018, 2:21 a.m. OK Python 3 TESTS 49 280 17612800 1700
44888443 EA5 D Oct. 26, 2018, 12:53 a.m. OK Python 3 TESTS 49 280 17612800 1700
44888411 EA5 D Oct. 26, 2018, 12:50 a.m. OK Python 3 TESTS 49 280 17612800 1700
45575967 LineGM D Nov. 11, 2018, 8:42 p.m. OK Python 3 TESTS 49 280 18227200 1700
44888579 EA5 D Oct. 26, 2018, 1:03 a.m. OK Python 3 TESTS 49 280 18329600 1700
44888014 EA5 D Oct. 26, 2018, 12:26 a.m. OK Python 3 TESTS 49 296 17100800 1700
45332217 Grevozin D Nov. 5, 2018, 3:47 p.m. OK Rust TESTS 49 62 6860800 1700
44879240 yakamoto D Oct. 25, 2018, 6:19 p.m. OK Scala TESTS 49 452 6246400 1700

remove filters

Back to search problems