Educational Codeforces Round 143 (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
1795 Educational Codeforces Round 143 (Rated for Div. 2) FINISHED False 7200 60708263 Feb. 16, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13248 ) C Tea Tasting PROGRAMMING binary search data structures implementation

B'A tea manufacturer decided to conduct a massive tea tasting. n sorts of tea will be tasted by n tasters. Both the sorts of tea and the tasters are numbered from 1 to n . The manufacturer prepared a_i milliliters of the i -th sort of tea. The j -th taster can drink b_j milliliters of tea at once. The tasting will be conducted in steps. During the first step, the i -th taster tastes the i -th sort of tea. The i -th taster drinks min(a_i, b_i) tea (how much is available of the i -th sort and how much the i -th taster can drink). a_i also decreases by this amount. Then all tasters move to the previous sort of tea. Thus, during the second step, the i -th taster tastes the (i-1) -st sort of tea. The i -th taster drinks min(a_{i-1}, b_i) tea. The 1 -st person ends the tasting. During the third step, the i -th taster tastes the (i-2) -nd sort of tea. The 2 -nd taster ends the tasting. This goes on until everyone ends the tasting. Take a look at the tasting process for n = 3 , a = [10, 20, 15] , b = [9, 8, 6] . In the left row, there are the current amounts of each sort of tea. In the right column, there are current amounts of tea each taster has drunk in total. The arrow tells which taster each tea goes to on the current step. The number on the arrow is the amount -- minimum of how much is available of the sort of tea and how much the taster can drink. For each taster, print how many milliliters of tea he/she will drink in total. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The first line of each testcase contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of sorts of tea and the number of tasters. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the amount of each sort of tea. The thi'...

Tutorials

112963

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
193900614 W_Szymanski C Feb. 16, 2023, 4:23 p.m. OK C# 10 TESTS 10 717 65433600
193912597 acwing_liuliu C Feb. 16, 2023, 5:14 p.m. OK Clang++20 Diagnostics TESTS 10 452 15360000
193940452 SakurakoujiRuna C Feb. 16, 2023, 11:54 p.m. OK D TESTS 10 311 27545600
193946608 Smallorange C Feb. 17, 2023, 2:48 a.m. OK GNU C11 TESTS 10 1060 6451200
193943739 JoesSR C Feb. 17, 2023, 1:30 a.m. OK GNU C++14 TESTS 10 156 6451200
193942017 vjudge2 C Feb. 17, 2023, 12:40 a.m. OK GNU C++14 TESTS 10 156 28057600
193944380 __stick C Feb. 17, 2023, 1:48 a.m. OK GNU C++14 TESTS 10 170 6348800
193915008 vivk C Feb. 16, 2023, 5:34 p.m. OK GNU C++14 TESTS 10 171 4812800
193913299 yeVegetable C Feb. 16, 2023, 5:20 p.m. OK GNU C++14 TESTS 10 171 5632000
193948974 yeVegetable C Feb. 17, 2023, 3:45 a.m. OK GNU C++14 TESTS 10 171 5632000
193941583 Leonardo16 C Feb. 17, 2023, 12:28 a.m. OK GNU C++14 TESTS 10 171 6348800
193949766 broshen C Feb. 17, 2023, 4:02 a.m. OK GNU C++14 TESTS 10 171 6451200
193942256 bkifhr6 C Feb. 17, 2023, 12:47 a.m. OK GNU C++14 TESTS 10 171 7987200
193947398 pring C Feb. 17, 2023, 3:07 a.m. OK GNU C++14 TESTS 10 171 7987200
193938321 qyang0506 C Feb. 16, 2023, 10:55 p.m. OK GNU C++17 TESTS 10 156 5632000
193923717 agarwal_vaibhav C Feb. 16, 2023, 7:05 p.m. OK GNU C++17 TESTS 10 171 4812800
193928195 Aloui C Feb. 16, 2023, 8:01 p.m. OK GNU C++17 TESTS 10 171 5632000
193919041 deepak_2002 C Feb. 16, 2023, 6:13 p.m. OK GNU C++17 TESTS 10 171 5632000
193905378 SAM11 C Feb. 16, 2023, 4:34 p.m. OK GNU C++17 TESTS 10 171 5632000
193952391 Mamehinata C Feb. 17, 2023, 4:51 a.m. OK GNU C++17 TESTS 10 171 5632000
193925167 baspresso C Feb. 16, 2023, 7:22 p.m. OK GNU C++17 TESTS 10 171 6451200
193904269 bachvnk C Feb. 16, 2023, 4:32 p.m. OK GNU C++17 TESTS 10 171 7270400
193939040 qyang0506 C Feb. 16, 2023, 11:15 p.m. OK GNU C++17 TESTS 10 171 9625600
193930720 TroySigx C Feb. 16, 2023, 8:36 p.m. OK GNU C++17 TESTS 10 186 5632000
193917157 FredYourMind C Feb. 16, 2023, 5:54 p.m. OK GNU C++17 (64) TESTS 10 61 7372800
193916645 FredYourMind C Feb. 16, 2023, 5:50 p.m. OK GNU C++17 (64) TESTS 10 62 7372800
193916930 FredYourMind C Feb. 16, 2023, 5:52 p.m. OK GNU C++17 (64) TESTS 10 62 7372800
193917065 FredYourMind C Feb. 16, 2023, 5:53 p.m. OK GNU C++17 (64) TESTS 10 77 7372800
193952882 EduardoBrito C Feb. 17, 2023, 5 a.m. OK GNU C++17 (64) TESTS 10 108 7987200
193929640 FatihSolak C Feb. 16, 2023, 8:21 p.m. OK GNU C++17 (64) TESTS 10 109 5632000
193945937 cbyyx C Feb. 17, 2023, 2:31 a.m. OK GNU C++17 (64) TESTS 10 109 6451200
193935949 enslaved C Feb. 16, 2023, 10 p.m. OK GNU C++17 (64) TESTS 10 109 6451200
193944348 gluchie C Feb. 17, 2023, 1:47 a.m. OK GNU C++17 (64) TESTS 10 109 6451200
193941924 vjudge2 C Feb. 17, 2023, 12:37 a.m. OK GNU C++17 (64) TESTS 10 109 6451200
193911107 kitsune C Feb. 16, 2023, 5:04 p.m. OK GNU C++20 (64) TESTS 10 77 5632000
193948556 Fiatiustitia C Feb. 17, 2023, 3:36 a.m. OK GNU C++20 (64) TESTS 10 77 7987200
193918563 im_vengeance011 C Feb. 16, 2023, 6:08 p.m. OK GNU C++20 (64) TESTS 10 77 7987200
193931566 Manga_10 C Feb. 16, 2023, 8:47 p.m. OK GNU C++20 (64) TESTS 10 78 5632000
193955855 rakshith21mohan C Feb. 17, 2023, 5:46 a.m. OK GNU C++20 (64) TESTS 10 78 5632000
193954337 carre C Feb. 17, 2023, 5:22 a.m. OK GNU C++20 (64) TESTS 10 78 5632000
193941875 Thallium54 C Feb. 17, 2023, 12:36 a.m. OK GNU C++20 (64) TESTS 10 78 5632000
193936318 Big_Feky C Feb. 16, 2023, 10:07 p.m. OK GNU C++20 (64) TESTS 10 78 7475200
193955555 Phuccc C Feb. 17, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 10 78 7987200
193954664 SajidZakaria C Feb. 17, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 10 78 7987200
193901175 arun07 C Feb. 16, 2023, 4:25 p.m. OK Go TESTS 10 249 11776000
193955964 Reacher01 C Feb. 17, 2023, 5:48 a.m. OK Java 11 TESTS 10 312 40755200
193949610 HMETAO C Feb. 17, 2023, 3:59 a.m. OK Java 11 TESTS 10 327 12697600
193954974 Reacher01 C Feb. 17, 2023, 5:32 a.m. OK Java 11 TESTS 10 327 40755200
193929383 princeayush04 C Feb. 16, 2023, 8:17 p.m. OK Java 11 TESTS 10 342 6348800
193956444 __Serendipity C Feb. 17, 2023, 5:55 a.m. OK Java 11 TESTS 10 342 11059200
193901634 _sumitchavanM C Feb. 16, 2023, 4:26 p.m. OK Java 11 TESTS 10 342 11059200
193949451 HMETAO C Feb. 17, 2023, 3:56 a.m. OK Java 11 TESTS 10 343 12697600
193920162 Panther369 C Feb. 16, 2023, 6:24 p.m. OK Java 11 TESTS 10 358 6144000
193916704 NewbiePupil C Feb. 16, 2023, 5:50 p.m. OK Java 11 TESTS 10 358 6348800
193903267 vijender_8601 C Feb. 16, 2023, 4:30 p.m. OK Java 11 TESTS 10 577 31744000
193897161 nnaf C Feb. 16, 2023, 4:14 p.m. OK Java 17 TESTS 10 327 12492800
193920156 this.is.shivamsingh C Feb. 16, 2023, 6:24 p.m. OK Java 17 TESTS 10 373 8192000
193952848 Mamimi C Feb. 17, 2023, 4:59 a.m. OK Java 17 TESTS 10 374 7680000
193909451 Balasubramaniyan.D C Feb. 16, 2023, 4:54 p.m. OK Java 17 TESTS 10 389 6860800
193920305 this.is.shivamsingh C Feb. 16, 2023, 6:26 p.m. OK Java 17 TESTS 10 405 8192000
193910556 sduMamytbekov C Feb. 16, 2023, 5:01 p.m. OK Java 17 TESTS 10 420 12492800
193920226 not_just_rr C Feb. 16, 2023, 6:25 p.m. OK Java 17 TESTS 10 467 10854400
193918146 Hiranmoy C Feb. 16, 2023, 6:04 p.m. OK Java 17 TESTS 10 482 13824000
193902522 Saurabh_jayaswal C Feb. 16, 2023, 4:28 p.m. OK Java 17 TESTS 10 546 12492800
193948796 kit.24.20bec096 C Feb. 17, 2023, 3:42 a.m. OK Java 17 TESTS 10 670 47411200
193947104 tong96 C Feb. 17, 2023, 3 a.m. OK Java 8 TESTS 10 202 6860800
193921280 lpychemistry C Feb. 16, 2023, 6:37 p.m. OK Java 8 TESTS 10 280 17510400
193910623 sduMamytbekov C Feb. 16, 2023, 5:01 p.m. OK Java 8 TESTS 10 280 18124800
193923002 Blue_BEE C Feb. 16, 2023, 6:57 p.m. OK Java 8 TESTS 10 295 20070400
193942664 mohamedhassan_c C Feb. 17, 2023, 1 a.m. OK Java 8 TESTS 10 296 19251200
193908240 invincible777 C Feb. 16, 2023, 4:47 p.m. OK Java 8 TESTS 10 296 19660800
193902788 Mohamed_Ahmed C Feb. 16, 2023, 4:29 p.m. OK Java 8 TESTS 10 311 17510400
193898309 navpreetsingh951818 C Feb. 16, 2023, 4:17 p.m. OK Java 8 TESTS 10 343 19046400
193900051 gaju_01 C Feb. 16, 2023, 4:22 p.m. OK Java 8 TESTS 10 404 45465600
193903422 ak472003 C Feb. 16, 2023, 4:30 p.m. OK Java 8 TESTS 10 717 8806400
193899634 1434314294 C Feb. 16, 2023, 4:21 p.m. OK MS C++ 2017 TESTS 10 499 7987200
193948496 Tory_A C Feb. 17, 2023, 3:34 a.m. OK MS C++ 2017 TESTS 10 514 7987200
193944340 j_ghy_ C Feb. 17, 2023, 1:47 a.m. OK Node.js TESTS 10 358 54476800
193920415 j_ghy_ C Feb. 16, 2023, 6:27 p.m. OK Node.js TESTS 10 374 55910400
193941292 bpdolson C Feb. 17, 2023, 12:19 a.m. OK PyPy 3 TESTS 10 1029 37478400
193905195 sudmondal2002 C Feb. 16, 2023, 4:34 p.m. OK PyPy 3 TESTS 10 1044 41881600
193902927 A9_10 C Feb. 16, 2023, 4:29 p.m. OK PyPy 3 TESTS 10 1075 37580800
193949878 broshen C Feb. 17, 2023, 4:04 a.m. OK PyPy 3 TESTS 10 1122 41984000
193955327 hkwu6013 C Feb. 17, 2023, 5:37 a.m. OK PyPy 3-64 TESTS 10 202 49049600
193933789 oweijane C Feb. 16, 2023, 9:22 p.m. OK PyPy 3-64 TESTS 10 217 43315200
193943147 hxu10 C Feb. 17, 2023, 1:14 a.m. OK PyPy 3-64 TESTS 10 217 47104000
193905106 hxu10 C Feb. 16, 2023, 4:34 p.m. OK PyPy 3-64 TESTS 10 217 47104000
193921745 ossau_guildo C Feb. 16, 2023, 6:42 p.m. OK PyPy 3-64 TESTS 10 218 48332800
193923761 sameasothers C Feb. 16, 2023, 7:06 p.m. OK PyPy 3-64 TESTS 10 233 47001600
193948353 HimanshuRajput C Feb. 17, 2023, 3:31 a.m. OK PyPy 3-64 TESTS 10 249 35532800
193913382 HimanshuRajput C Feb. 16, 2023, 5:20 p.m. OK PyPy 3-64 TESTS 10 249 36044800
193913154 slugmoji C Feb. 16, 2023, 5:18 p.m. OK PyPy 3-64 TESTS 10 280 40140800
193951768 gardengnome C Feb. 17, 2023, 4:41 a.m. OK PyPy 3-64 TESTS 10 280 41164800
193923320 NS3081992 C Feb. 16, 2023, 7:01 p.m. OK Python 3 TESTS 10 639 46080000
193929802 khom C Feb. 16, 2023, 8:23 p.m. OK Python 3 TESTS 10 701 32051200
193929365 khom C Feb. 16, 2023, 8:17 p.m. OK Python 3 TESTS 10 826 54579200
193909998 khom C Feb. 16, 2023, 4:57 p.m. OK Python 3 TESTS 10 951 54886400
193905449 A_Ankit C Feb. 16, 2023, 4:34 p.m. OK Python 3 TESTS 10 1060 27238400
193902178 2000030824_klu C Feb. 16, 2023, 4:27 p.m. OK Python 3 TESTS 10 1060 27238400
193898170 prabal10 C Feb. 16, 2023, 4:17 p.m. OK Python 3 TESTS 10 1107 33382400
193901690 tadityareddy C Feb. 16, 2023, 4:26 p.m. OK Python 3 TESTS 10 1154 27238400
193898716 ALSTON16 C Feb. 16, 2023, 4:18 p.m. OK Python 3 TESTS 10 1419 54476800
193913951 iam_Lost C Feb. 16, 2023, 5:25 p.m. OK Python 3 TESTS 10 1574 42803200

remove filters

Back to search problems