Codeforces Round 713 (Div. 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
1512 Codeforces Round 713 (Div. 3) FINISHED False 7200 119114663 April 10, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6340 ) F Education PROGRAMMING binary search greedy implementation math

B"Polycarp is wondering about buying a new computer, which costs c tugriks. To do this, he wants to get a job as a programmer in a big company. There are n positions in Polycarp's company, numbered starting from one. An employee in position i earns a[i] tugriks every day. The higher the position number, the more tugriks the employee receives. Initially, Polycarp gets a position with the number 1 and has 0 tugriks. Each day Polycarp can do one of two things: For example, if n=4 , c=15 , a=[1, 3, 10, 11] , b=[1, 2, 7] , then Polycarp can act like this: Find the minimum number of days after which Polycarp will be able to buy himself a new computer. The first line contains a single integer t ( 1 <= t <= 10^4 ). Then t test cases follow. The first line of each test case contains two integers n and c ( 2 <= n <= 2 cdot 10^5 , 1 <= c <= 10^9 ) -- the number of positions in the company and the cost of a new computer. The second line of each test case contains n integers a_1 <= a_2 <= ldots <= a_n ( 1 <= a_i <= 10^9 ). The third line of each test case contains n - 1 integer b_1, b_2, ldots, b_{n-1} ( 1 <= b_i <= 10^9 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output the minimum number of days after which Polycarp will be able to buy a new computer. "...

Tutorials

Codeforces Round #713 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
112567240 eastnman F April 10, 2021, 5:25 p.m. OK Delphi TESTS 7 93 12902400
112561844 sky123 F April 10, 2021, 4:48 p.m. OK GNU C++11 TESTS 7 31 1638400
112564159 ASTROBOYZZ F April 10, 2021, 5:01 p.m. OK GNU C++11 TESTS 7 31 3276800
112595781 bkifhr6 F April 11, 2021, 3:33 a.m. OK GNU C++11 TESTS 7 31 11673600
112597868 et3_tsy2.0 F April 11, 2021, 4:14 a.m. OK GNU C++11 TESTS 7 46 8089600
112592835 wangyitest F April 11, 2021, 2:20 a.m. OK GNU C++11 TESTS 7 46 16076800
112592242 allay F April 11, 2021, 2:02 a.m. OK GNU C++11 TESTS 7 46 23244800
112589130 Tidiane F April 11, 2021, 12:08 a.m. OK GNU C++11 TESTS 7 62 1638400
112568890 1637537024 F April 10, 2021, 5:39 p.m. OK GNU C++11 TESTS 7 62 4812800
112569846 julysky F April 10, 2021, 5:49 p.m. OK GNU C++11 TESTS 7 77 4608000
112610621 HHHEN F April 11, 2021, 5:39 a.m. OK GNU C++11 TESTS 7 78 1638400
112610523 Esquire F April 11, 2021, 5:38 a.m. OK GNU C++14 TESTS 7 93 3174400
112568054 prajjwal007 F April 10, 2021, 5:32 p.m. OK GNU C++14 TESTS 7 93 3174400
112561871 timeguy F April 10, 2021, 4:48 p.m. OK GNU C++14 TESTS 7 93 3174400
112576085 Mohammad.Nour F April 10, 2021, 6:51 p.m. OK GNU C++14 TESTS 7 93 3993600
112574337 guestIT F April 10, 2021, 6:33 p.m. OK GNU C++14 TESTS 7 93 4812800
112614438 toph3110 F April 11, 2021, 5:57 a.m. OK GNU C++14 TESTS 7 93 6451200
112597658 rahat.1722 F April 11, 2021, 4:11 a.m. OK GNU C++14 TESTS 7 108 3174400
112574384 mahim_mittal F April 10, 2021, 6:34 p.m. OK GNU C++14 TESTS 7 108 3174400
112574201 aksayush F April 10, 2021, 6:32 p.m. OK GNU C++14 TESTS 7 108 3174400
112599090 F1_rAcer F April 11, 2021, 4:37 a.m. OK GNU C++14 TESTS 7 108 4812800
112592643 zwu2020014736 F April 11, 2021, 2:14 a.m. OK GNU C++17 TESTS 7 31 23244800
112607035 goodnight007 F April 11, 2021, 5:27 a.m. OK GNU C++17 TESTS 7 93 1638400
112598298 324165877 F April 11, 2021, 4:22 a.m. OK GNU C++17 TESTS 7 93 1638400
112588004 khealer F April 10, 2021, 11:14 p.m. OK GNU C++17 TESTS 7 93 1638400
112581823 A.Freeman F April 10, 2021, 8:20 p.m. OK GNU C++17 TESTS 7 93 1638400
112586705 almost_bot F April 10, 2021, 10:26 p.m. OK GNU C++17 TESTS 7 93 1740800
112568365 Bench0310 F April 10, 2021, 5:35 p.m. OK GNU C++17 TESTS 7 93 3174400
112611620 anmichi F April 11, 2021, 5:54 a.m. OK GNU C++17 TESTS 7 108 1638400
112589807 JaxYoung F April 11, 2021, 12:40 a.m. OK GNU C++17 TESTS 7 108 1638400
112588418 Bakkar- F April 10, 2021, 11:35 p.m. OK GNU C++17 TESTS 7 108 1638400
112581580 HOW_ALL_HAPPY F April 10, 2021, 8:16 p.m. OK GNU C++17 (64) TESTS 7 61 1638400
112565966 czhang2718 F April 10, 2021, 5:14 p.m. OK GNU C++17 (64) TESTS 7 61 1638400
112595162 emorgan5289 F April 11, 2021, 3:21 a.m. OK GNU C++17 (64) TESTS 7 61 3174400
112576559 Abhichauhan F April 10, 2021, 6:56 p.m. OK GNU C++17 (64) TESTS 7 61 3174400
112562034 Aman_j1 F April 10, 2021, 4:49 p.m. OK GNU C++17 (64) TESTS 7 61 3174400
112595147 ginwAa F April 11, 2021, 3:21 a.m. OK GNU C++17 (64) TESTS 7 61 6451200
112589748 over_flow F April 11, 2021, 12:37 a.m. OK GNU C++17 (64) TESTS 7 62 1638400
112587198 livindragon F April 10, 2021, 10:41 p.m. OK GNU C++17 (64) TESTS 7 62 1638400
112565586 Priyam2k F April 10, 2021, 5:11 p.m. OK GNU C++17 (64) TESTS 7 62 1638400
112597684 M0riarty F April 11, 2021, 4:11 a.m. OK GNU C++17 (64) TESTS 7 62 3174400
112611587 soumit915 F April 11, 2021, 5:54 a.m. OK Java 11 TESTS 7 217 0
112584544 JigarNainuji F April 10, 2021, 9:20 p.m. OK Java 11 TESTS 7 233 0
112562698 Division_3_Bot F April 10, 2021, 4:52 p.m. OK Java 11 TESTS 7 249 4710400
112595592 _Body F April 11, 2021, 3:30 a.m. OK Java 11 TESTS 7 249 9625600
112588151 Andwerp F April 10, 2021, 11:21 p.m. OK Java 11 TESTS 7 264 512000
112568634 nirvana_rsc F April 10, 2021, 5:37 p.m. OK Java 11 TESTS 7 264 1638400
112568544 nirvana_rsc F April 10, 2021, 5:36 p.m. OK Java 11 TESTS 7 264 1638400
112584567 RainLiOfficial F April 10, 2021, 9:20 p.m. OK Java 11 TESTS 7 295 307200
112598614 tiwariabhishek F April 11, 2021, 4:28 a.m. OK Java 8 TESTS 7 171 5836800
112563647 _robindhankhar F April 10, 2021, 4:58 p.m. OK Java 8 TESTS 7 171 10035200
112563092 _robindhankhar F April 10, 2021, 4:55 p.m. OK Java 8 TESTS 7 171 10035200
112610562 thedesalizes F April 11, 2021, 5:38 a.m. OK Java 8 TESTS 7 202 9625600
112591409 NerfThis F April 11, 2021, 1:37 a.m. OK Java 8 TESTS 7 202 15360000
112590370 vaibhav7 F April 11, 2021, 1:02 a.m. OK Java 8 TESTS 7 311 0
112593185 Zahid_Hasan_Sahin F April 11, 2021, 2:30 a.m. OK Java 8 TESTS 7 561 0
112571494 setuid0 F April 10, 2021, 6:05 p.m. OK MS C++ 2017 TESTS 7 296 1536000
112578785 Izeytee F April 10, 2021, 7:34 p.m. OK MS C++ 2017 TESTS 7 327 6451200
112565501 qing_lin F April 10, 2021, 5:11 p.m. OK MS C++ 2017 TESTS 7 327 6451200
112569996 setuid0 F April 10, 2021, 5:50 p.m. OK MS C++ 2017 TESTS 7 342 3174400
112591107 hritik3878 F April 11, 2021, 1:27 a.m. OK PyPy 3 TESTS 7 202 23756800
112587931 nitish420 F April 10, 2021, 11:10 p.m. OK PyPy 3 TESTS 7 233 23756800
112598615 complexroots F April 11, 2021, 4:28 a.m. OK PyPy 3 TESTS 7 436 25702400
112597233 jhasaurav215 F April 11, 2021, 4:02 a.m. OK PyPy 3 TESTS 7 467 22835200
112562565 Lyamzin_alexandr F April 10, 2021, 4:51 p.m. OK PyPy 3 TESTS 7 483 20582400
112585537 MassimoG F April 10, 2021, 9:48 p.m. OK PyPy 3 TESTS 7 498 19865600
112585768 xfce8888 F April 10, 2021, 9:55 p.m. OK PyPy 3 TESTS 7 514 26112000
112577439 dear_mr_het F April 10, 2021, 7:15 p.m. OK PyPy 3 TESTS 7 764 32051200
112601925 anishde85 F April 11, 2021, 5:25 a.m. OK PyPy 3 TESTS 7 841 31641600
112562457 thumbd12856 F April 10, 2021, 4:51 p.m. OK Python 3 TESTS 7 530 18329600
112592804 ooozy F April 11, 2021, 2:19 a.m. OK Python 3 TESTS 7 592 17920000
112588272 newbie00 F April 10, 2021, 11:27 p.m. OK Python 3 TESTS 7 592 18124800
112579554 sushanthsamala F April 10, 2021, 7:45 p.m. OK Python 3 TESTS 7 592 18329600
112562791 manohar24 F April 10, 2021, 4:53 p.m. OK Python 3 TESTS 7 655 18329600
112576246 rahin1301 F April 10, 2021, 6:53 p.m. OK Python 3 TESTS 7 686 18739200
112610650 richenyunqi F April 11, 2021, 5:39 a.m. OK Python 3 TESTS 7 1029 27033600

remove filters

Back to search problems