Codeforces Round 733 (Div. 1 + Div. 2, based on VK Cup 2021 - Elimination (Engine))

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
1530 Codeforces Round 733 (Div. 1 + Div. 2, based on VK Cup 2021 - Elimination (Engine)) FINISHED False 10800 110647463 July 17, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14821 ) C Pursuit PROGRAMMING binary search greedy sortings

B"You and your friend Ilya are participating in an individual programming contest consisting of multiple stages. A contestant can get between 0 and 100 points, inclusive, for each stage, independently of other contestants. Points received by contestants in different stages are used for forming overall contest results. Suppose that k stages of the contest are completed. For each contestant, k - lfloor frac{k}{4} rfloor stages with the highest scores are selected, and these scores are added up. This sum is the overall result of the contestant. (Here lfloor t rfloor denotes rounding t down.) For example, suppose 9 stages are completed, and your scores are 50, 30, 50, 50, 100, 10, 30, 100, 50 . First, 7 stages with the highest scores are chosen -- for example, all stages except for the 2 -nd and the 6 -th can be chosen. Then your overall result is equal to 50 + 50 + 50 + 100 + 30 + 100 + 50 = 430 . As of now, n stages are completed, and you know the points you and Ilya got for these stages. However, it is unknown how many more stages will be held. You wonder what the smallest number of additional stages is, after which your result might become greater than or equal to Ilya's result, at least in theory. Find this number! Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 1000 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) -- the number of completed stages. The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 100 ) -- your points for the completed stages. The third line contains n integers b_1, b_2, ldots, b_n ( 0 <= b_i <= 100 ) -- Ilya's points for the completed stages. It is guaranteed that the sum of n over all test cases does not exceed 10^5 . For each test ca"...

Tutorials

Codeforces Round #733 Editorial (all problems)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
122870266 rainboy C July 17, 2021, 9:07 p.m. OK GNU C11 TESTS 33 46 4505600
122877610 ETK. C July 18, 2021, 1:26 a.m. OK GNU C++11 TESTS 33 31 4710400
122880595 fishcathu. C July 18, 2021, 2:40 a.m. OK GNU C++11 TESTS 33 31 4710400
122878134 comld C July 18, 2021, 1:40 a.m. OK GNU C++11 TESTS 33 31 4710400
122874850 Anonymous31416 C July 17, 2021, 11:55 p.m. OK GNU C++11 TESTS 33 31 88268800
122880339 wkywky C July 18, 2021, 2:35 a.m. OK GNU C++11 TESTS 33 46 7168000
122851880 CN__james1 C July 17, 2021, 5:16 p.m. OK GNU C++11 TESTS 33 46 8908800
122849519 _lbw_ C July 17, 2021, 5:09 p.m. OK GNU C++11 TESTS 33 46 19968000
122876680 Yang_Rick C July 18, 2021, 1:01 a.m. OK GNU C++11 TESTS 33 61 4710400
122883048 hnust_xiaoshun C July 18, 2021, 3:27 a.m. OK GNU C++11 TESTS 33 61 4710400
122889725 THE-Nuo C July 18, 2021, 5:15 a.m. OK GNU C++11 TESTS 33 61 6758400
122890321 Mr-leng C July 18, 2021, 5:24 a.m. OK GNU C++14 TESTS 33 62 4505600
122887951 RaHuL7 C July 18, 2021, 4:49 a.m. OK GNU C++14 TESTS 33 62 4505600
122881406 _Fake4Fun C July 18, 2021, 2:57 a.m. OK GNU C++14 TESTS 33 62 4505600
122878891 antrix1707 C July 18, 2021, 2:01 a.m. OK GNU C++14 TESTS 33 62 4505600
122877544 GennadyTran C July 18, 2021, 1:24 a.m. OK GNU C++14 TESTS 33 62 4505600
122892017 akashiSan C July 18, 2021, 5:47 a.m. OK GNU C++14 TESTS 33 62 4505600
122872870 royalrawal.2001 C July 17, 2021, 10:33 p.m. OK GNU C++14 TESTS 33 62 4505600
122871518 KNightMaReee C July 17, 2021, 9:44 p.m. OK GNU C++14 TESTS 33 62 4505600
122867468 sangarg1 C July 17, 2021, 8:07 p.m. OK GNU C++14 TESTS 33 62 4505600
122872988 royalrawal.2001 C July 17, 2021, 10:38 p.m. OK GNU C++14 TESTS 33 62 4505600
122866783 Amrharb C July 17, 2021, 7:56 p.m. OK GNU C++17 TESTS 33 61 4505600
122867081 Sheento C July 17, 2021, 8 p.m. OK GNU C++17 TESTS 33 61 4505600
122885992 extracheese C July 18, 2021, 4:16 a.m. OK GNU C++17 TESTS 33 62 3788800
122886685 pr0grammer C July 18, 2021, 4:29 a.m. OK GNU C++17 TESTS 33 62 3788800
122864592 err0r C July 17, 2021, 7:29 p.m. OK GNU C++17 TESTS 33 62 3788800
122891792 Rishab_177 C July 18, 2021, 5:44 a.m. OK GNU C++17 TESTS 33 62 4505600
122891664 srlabib C July 18, 2021, 5:43 a.m. OK GNU C++17 TESTS 33 62 4505600
122892761 programmer765 C July 18, 2021, 5:58 a.m. OK GNU C++17 TESTS 33 62 4505600
122893006 programmer765 C July 18, 2021, 6:01 a.m. OK GNU C++17 TESTS 33 62 4505600
122892576 AI47 C July 18, 2021, 5:55 a.m. OK GNU C++17 TESTS 33 62 4505600
122865766 JohnSmith0081 C July 17, 2021, 7:42 p.m. OK GNU C++17 (64) TESTS 33 31 10547200
122865199 abhishek855 C July 17, 2021, 7:36 p.m. OK GNU C++17 (64) TESTS 33 46 4300800
122887328 nikhilsh20 C July 18, 2021, 4:40 a.m. OK GNU C++17 (64) TESTS 33 46 4300800
122885017 Gats C July 18, 2021, 4 a.m. OK GNU C++17 (64) TESTS 33 46 5120000
122892773 alif_cse_ju C July 18, 2021, 5:58 a.m. OK GNU C++17 (64) TESTS 33 46 5120000
122890699 adityasonani C July 18, 2021, 5:29 a.m. OK GNU C++17 (64) TESTS 33 46 5120000
122885673 Gats C July 18, 2021, 4:12 a.m. OK GNU C++17 (64) TESTS 33 46 5120000
122877684 Hossam C July 18, 2021, 1:29 a.m. OK GNU C++17 (64) TESTS 33 46 5120000
122874436 xhdtlsid2 C July 17, 2021, 11:38 p.m. OK GNU C++17 (64) TESTS 33 46 5120000
122868465 captainxop C July 17, 2021, 8:25 p.m. OK GNU C++17 (64) TESTS 33 46 5120000
122872012 wphsucf C July 17, 2021, 10:02 p.m. OK Java 11 TESTS 33 218 24371200
122877415 5612 C July 18, 2021, 1:21 a.m. OK Java 11 TESTS 33 218 24473600
122855256 ujjwalbhan.ub C July 17, 2021, 5:27 p.m. OK Java 11 TESTS 33 218 24473600
122890827 Tharun0102 C July 18, 2021, 5:32 a.m. OK Java 11 TESTS 33 233 24473600
122877603 5612 C July 18, 2021, 1:26 a.m. OK Java 11 TESTS 33 233 24576000
122868548 Andwerp C July 17, 2021, 8:27 p.m. OK Java 11 TESTS 33 234 24473600
122847736 NussairHroub C July 17, 2021, 5:03 p.m. OK Java 11 TESTS 33 249 24473600
122877452 arpit31 C July 18, 2021, 1:22 a.m. OK Java 11 TESTS 33 249 24576000
122868165 _Body C July 17, 2021, 8:20 p.m. OK Java 11 TESTS 33 249 24985600
122855158 saurabh_kl C July 17, 2021, 5:27 p.m. OK Java 11 TESTS 33 264 24473600
122854718 sum_123 C July 17, 2021, 5:25 p.m. OK Java 8 TESTS 33 140 21299200
122868484 fan_balae C July 17, 2021, 8:26 p.m. OK Java 8 TESTS 33 155 20992000
122853520 smahajan54842 C July 17, 2021, 5:22 p.m. OK Java 8 TESTS 33 155 21094400
122888825 pikachu_pika_pika C July 18, 2021, 5:02 a.m. OK Java 8 TESTS 33 156 21401600
122867590 code.degub C July 17, 2021, 8:09 p.m. OK Java 8 TESTS 33 171 21196800
122852445 shubhamsb25 C July 17, 2021, 5:18 p.m. OK Java 8 TESTS 33 171 21196800
122854186 Akshay211 C July 17, 2021, 5:24 p.m. OK Java 8 TESTS 33 171 23859200
122877466 arpit31 C July 18, 2021, 1:22 a.m. OK Java 8 TESTS 33 186 21504000
122886666 alibaba C July 18, 2021, 4:29 a.m. OK Java 8 TESTS 33 202 21299200
122849477 athu18 C July 17, 2021, 5:09 p.m. OK Java 8 TESTS 33 202 22323200
122872234 codersanjeev C July 17, 2021, 10:10 p.m. OK Kotlin TESTS 33 327 26214400
122850726 glennsv C July 17, 2021, 5:13 p.m. OK Kotlin TESTS 33 514 24985600
122884105 OIerwsq C July 18, 2021, 3:45 a.m. OK MS C++ TESTS 33 62 7065600
122884569 chinaoierlby C July 18, 2021, 3:53 a.m. OK MS C++ TESTS 33 93 5529600
122882326 zhangpangpang C July 18, 2021, 3:14 a.m. OK MS C++ 2017 TESTS 33 77 11776000
122866720 Tangerine C July 17, 2021, 7:55 p.m. OK MS C++ 2017 TESTS 33 139 4608000
122858131 30SK5 C July 17, 2021, 5:34 p.m. OK MS C++ 2017 TESTS 33 140 5324800
122865646 Baobab0304 C July 17, 2021, 7:41 p.m. OK MS C++ 2017 TESTS 33 156 6860800
122879255 Xiaomostream C July 18, 2021, 2:11 a.m. OK MS C++ 2017 TESTS 33 343 11776000
122848112 Score12122 C July 17, 2021, 5:05 p.m. OK MS C++ 2017 TESTS 33 655 11776000
122885798 vjudge4 C July 18, 2021, 4:13 a.m. OK MS C++ 2017 TESTS 33 717 11776000
122865144 nitish420 C July 17, 2021, 7:35 p.m. OK PyPy 3 TESTS 33 202 31232000
122890696 piSquared C July 18, 2021, 5:29 a.m. OK PyPy 3 TESTS 33 202 33075200
122869841 _aadiupadhyay_ C July 17, 2021, 8:55 p.m. OK PyPy 3 TESTS 33 218 33382400
122873623 MongyTrad C July 17, 2021, 11:06 p.m. OK PyPy 3 TESTS 33 233 33382400
122872423 yash490 C July 17, 2021, 10:17 p.m. OK PyPy 3 TESTS 33 233 33894400
122886926 _Kumarmohit_ C July 18, 2021, 4:33 a.m. OK PyPy 3 TESTS 33 265 33280000
122883267 narayan94 C July 18, 2021, 3:31 a.m. OK PyPy 3 TESTS 33 280 33075200
122856769 Neji_Med C July 17, 2021, 5:31 p.m. OK PyPy 3 TESTS 33 280 33075200
122872681 suchadisappointmentiam C July 17, 2021, 10:26 p.m. OK PyPy 3 TESTS 33 280 33280000
122853164 Dablu_saha C July 17, 2021, 5:21 p.m. OK PyPy 3 TESTS 33 280 33280000
122850908 Raghav_nigam C July 17, 2021, 5:13 p.m. OK Python 3 TESTS 33 171 12902400
122889153 Sujith_ C July 18, 2021, 5:07 a.m. OK Python 3 TESTS 33 171 13107200
122872939 suchadisappointmentiam C July 17, 2021, 10:36 p.m. OK Python 3 TESTS 33 171 13209600
122853281 M0u1ea5 C July 17, 2021, 5:21 p.m. OK Python 3 TESTS 33 171 13209600
122865999 swapnilagarwal2001 C July 17, 2021, 7:45 p.m. OK Python 3 TESTS 33 171 13516800
122886380 Land_oF_cOdErS C July 18, 2021, 4:24 a.m. OK Python 3 TESTS 33 187 13312000
122866889 Kaatil C July 17, 2021, 7:57 p.m. OK Python 3 TESTS 33 202 13107200
122887512 elsageorge C July 18, 2021, 4:43 a.m. OK Python 3 TESTS 33 202 13209600
122872987 suchadisappointmentiam C July 17, 2021, 10:38 p.m. OK Python 3 TESTS 33 202 13209600
122855177 tle.ayush C July 17, 2021, 5:27 p.m. OK Python 3 TESTS 33 202 15257600
122875089 tG_steppenwolf C July 18, 2021, 12:04 a.m. OK Rust TESTS 33 62 9113600
122865439 IvanDyachenko C July 17, 2021, 7:38 p.m. OK Scala TESTS 33 608 45465600
122865496 IvanDyachenko C July 17, 2021, 7:39 p.m. OK Scala TESTS 33 623 45465600

remove filters

Back to search problems