Codeforces Round 568 (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
1185 Codeforces Round 568 (Div. 2) FINISHED False 8100 170867699 June 19, 2019, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11427 ) C1 Exam in BerSU (easy version) PROGRAMMING greedy sortings 1200

B"The only difference between easy and hard versions is constraints. A session has begun at Beland State University. Many students are taking exams. Polygraph Poligrafovich is going to examine a group of n students. Students will take the exam one-by-one in order from 1 -th to n -th. Rules of the exam are following: Students take the exam in the fixed order, one-by-one, without any interruption. At any moment of time, Polygraph Poligrafovich takes the answer from one student. The duration of the whole exam for all students is M minutes ( max t_i <= M ), so students at the end of the list have a greater possibility to run out of time to pass the exam. For each student i , you should count the minimum possible number of students who need to fail the exam so the i -th student has enough time to pass the exam. For each student i , find the answer independently. That is, if when finding the answer for the student i_1 some student j should leave, then while finding the answer for i_2 ( i_2>i_1 ) the student j student does not have to go home. The first line of the input contains two integers n and M ( 1 <= n <= 100 , 1 <= M <= 100 ) -- the number of students and the total duration of the exam in minutes, respectively. The second line of the input contains n integers t_i ( 1 <= t_i <= 100 ) -- time in minutes that i -th student spends to answer to a ticket. It's guaranteed that all values of t_i are not greater than M . Print n numbers: the i -th number must be equal to the minimum number of students who have to leave the exam in order to i -th student has enough time to pass the exam. The explanation for the example 1. Please note that the sum of the first five exam times does not exceed M=15 (the sum is 1+2+3+4+5=15 ). Thus, the first five students can pass the exam even if all the students before them al"...

Tutorials

Editorial for Codeforces Round #568 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55869919 Zeatea C1 June 21, 2019, 2:08 p.m. OK FPC TESTS 39 31 0 1200
57907560 cs234_shrey C1 July 28, 2019, 6:19 p.m. OK GNU C11 TESTS 39 31 0 1200
57631156 sansen C1 July 24, 2019, 8:47 a.m. OK GNU C11 TESTS 39 31 0 1200
56815381 kaiboy C1 July 10, 2019, 6:47 p.m. OK GNU C11 TESTS 39 31 0 1200
56280849 TsReaper C1 June 29, 2019, 4:42 p.m. OK GNU C11 TESTS 39 31 0 1200
56263173 Pratibha_ C1 June 29, 2019, 8:53 a.m. OK GNU C11 TESTS 39 31 0 1200
56212574 saspi C1 June 28, 2019, 9:31 a.m. OK GNU C11 TESTS 39 31 0 1200
56186539 dhruvil04 C1 June 28, 2019, 5:12 a.m. OK GNU C11 TESTS 39 31 0 1200
56168286 Rithik123 C1 June 27, 2019, 3:17 p.m. OK GNU C11 TESTS 39 31 0 1200
61062947 nikhilreddy123 C1 Sept. 22, 2019, 10:04 a.m. OK GNU C11 TESTS 39 31 0 1200
64714226 torque_459 C1 Nov. 11, 2019, 8:37 p.m. OK GNU C11 TESTS 39 31 0 1200
55852574 rokon.mdb C1 June 21, 2019, 5:01 a.m. OK GNU C++11 TESTS 39 15 0 1200
55849464 H_M_Vaghasiya C1 June 21, 2019, 2:12 a.m. OK GNU C++11 TESTS 39 30 0 1200
55843502 Jjjust4funnn C1 June 20, 2019, 7:32 p.m. OK GNU C++11 TESTS 39 30 0 1200
64856305 xiahongyu C1 Nov. 13, 2019, 11:18 p.m. OK GNU C++11 TESTS 39 30 0 1200
64461843 csj C1 Nov. 7, 2019, 10:39 a.m. OK GNU C++11 TESTS 39 30 0 1200
58533345 sinister_787 C1 Aug. 10, 2019, 10:40 a.m. OK GNU C++11 TESTS 39 30 0 1200
57709607 py_ultron C1 July 24, 2019, 10:40 p.m. OK GNU C++11 TESTS 39 30 0 1200
56062257 shahmeet541 C1 June 26, 2019, 6:09 a.m. OK GNU C++11 TESTS 39 30 0 1200
56050140 SaadAllah C1 June 25, 2019, 6:36 p.m. OK GNU C++11 TESTS 39 30 0 1200
55952047 Dark_Rider_0.0 C1 June 23, 2019, 3:30 a.m. OK GNU C++11 TESTS 39 30 0 1200
62600960 carbon24 C1 Oct. 15, 2019, 5:31 a.m. OK GNU C++14 TESTS 39 15 0 1200
67319016 chiraagmittal05 C1 Dec. 21, 2019, 7:16 a.m. OK GNU C++14 TESTS 39 15 0 1200
63722385 Asrapogorgon C1 Oct. 29, 2019, 11:43 a.m. OK GNU C++14 TESTS 39 15 0 1200
61777603 Ka_Kiye_Koot_Diye C1 Oct. 3, 2019, 12:10 p.m. OK GNU C++14 TESTS 39 15 0 1200
59859131 saranshbht C1 Sept. 1, 2019, 2:36 p.m. OK GNU C++14 TESTS 39 15 0 1200
58947970 john__wick C1 Aug. 17, 2019, 9:51 a.m. OK GNU C++14 TESTS 39 15 0 1200
58350204 pimpoponut C1 Aug. 5, 2019, 4:49 p.m. OK GNU C++14 TESTS 39 15 0 1200
57744804 chenyanbo C1 July 25, 2019, 12:39 p.m. OK GNU C++14 TESTS 39 15 0 1200
56523642 vineeth_18 C1 July 4, 2019, 4:07 p.m. OK GNU C++14 TESTS 39 15 0 1200
56308837 detaomega C1 June 30, 2019, 1:35 p.m. OK GNU C++14 TESTS 39 15 0 1200
57153905 maxnguyen C1 July 16, 2019, 3:55 p.m. OK GNU C++17 TESTS 39 15 0 1200
69463121 Sj2000 C1 Jan. 24, 2020, 11:41 a.m. OK GNU C++17 TESTS 39 15 0 1200
69282424 MdTanzimFerdous C1 Jan. 22, 2020, 6:35 a.m. OK GNU C++17 TESTS 39 15 0 1200
67001944 vjudge3 C1 Dec. 16, 2019, 6:12 a.m. OK GNU C++17 TESTS 39 15 0 1200
59686430 lrvideckis C1 Aug. 30, 2019, 2:02 a.m. OK GNU C++17 TESTS 39 15 0 1200
58510060 stupidshit C1 Aug. 9, 2019, 6:28 p.m. OK GNU C++17 TESTS 39 15 0 1200
57910578 _RibNat_ C1 July 28, 2019, 7:55 p.m. OK GNU C++17 TESTS 39 15 0 1200
57625191 Lixw C1 July 24, 2019, 6:45 a.m. OK GNU C++17 TESTS 39 15 0 1200
57346869 ahManoTravei C1 July 20, 2019, 12:09 a.m. OK GNU C++17 TESTS 39 15 0 1200
56692750 rmedeiros23 C1 July 8, 2019, 5:14 a.m. OK GNU C++17 TESTS 39 15 0 1200
56030865 RulVllad C1 June 25, 2019, 9:28 a.m. OK Go TESTS 39 31 0 1200
56178526 suryanshv23 C1 June 27, 2019, 8:52 p.m. OK Go TESTS 39 46 0 1200
56151159 bouncypi C1 June 27, 2019, 8:13 a.m. OK Haskell TESTS 39 31 102400 1200
68365268 YahiaMostafa C1 Jan. 7, 2020, 3:42 p.m. OK Java 11 TESTS 39 202 0 1200
65794332 Agnimandur C1 Nov. 27, 2019, 2:55 a.m. OK Java 8 TESTS 39 108 0 1200
55824520 Happy_Stove C1 June 20, 2019, 10:12 a.m. OK Java 8 TESTS 39 108 0 1200
68705355 akshVerma C1 Jan. 13, 2020, 11:05 a.m. OK Java 8 TESTS 39 109 0 1200
66621020 adzi C1 Dec. 11, 2019, 6:57 a.m. OK Java 8 TESTS 39 109 0 1200
63952327 arsh1598 C1 Oct. 31, 2019, 10:17 p.m. OK Java 8 TESTS 39 109 0 1200
63552097 Vishal_dhanani C1 Oct. 27, 2019, 11:55 a.m. OK Java 8 TESTS 39 109 0 1200
59692425 robinz62 C1 Aug. 30, 2019, 6:51 a.m. OK Java 8 TESTS 39 109 0 1200
59686060 satya26 C1 Aug. 30, 2019, 1:38 a.m. OK Java 8 TESTS 39 109 0 1200
58874186 LeamyCodes C1 Aug. 15, 2019, 4:55 p.m. OK Java 8 TESTS 39 109 0 1200
58505913 ISSAM_LAKOUAM C1 Aug. 9, 2019, 4:26 p.m. OK Java 8 TESTS 39 109 0 1200
55931727 fayzzz C1 June 22, 2019, 11:48 a.m. OK JavaScript TESTS 39 46 204800 1200
55849267 mendel_vv C1 June 21, 2019, 1:58 a.m. OK Kotlin TESTS 39 140 102400 1200
55921246 max_kibble C1 June 22, 2019, 7:32 a.m. OK Kotlin TESTS 39 155 102400 1200
56259031 Spheniscine C1 June 29, 2019, 7:19 a.m. OK Kotlin TESTS 39 155 204800 1200
56258329 Spheniscine C1 June 29, 2019, 7:02 a.m. OK Kotlin TESTS 39 155 307200 1200
59247196 david_varela C1 Aug. 22, 2019, 12:59 a.m. OK Kotlin TESTS 39 155 1228800 1200
55970541 -arg C1 June 23, 2019, 2:31 p.m. OK Kotlin TESTS 39 171 307200 1200
55822080 demon.machine C1 June 20, 2019, 9:03 a.m. OK Kotlin TESTS 39 171 1126400 1200
56255331 Spheniscine C1 June 29, 2019, 5:51 a.m. OK Kotlin TESTS 39 171 1433600 1200
55921562 SaurumanS lewasupaman LapsleyJuno C1 June 22, 2019, 7:39 a.m. OK Mono C# TESTS 39 46 0 1200
56307400 m1_k3 C1 June 30, 2019, 12:42 p.m. OK Mono C# TESTS 39 62 0 1200
55845735 downloads C1 June 20, 2019, 9:12 p.m. OK Mono C# TESTS 39 62 0 1200
55923850 MAKARonin C1 June 22, 2019, 8:31 a.m. OK Mono C# TESTS 39 62 0 1200
55837815 og.kostya C1 June 20, 2019, 4:19 p.m. OK Mono C# TESTS 39 62 102400 1200
62361152 nadilk C1 Oct. 11, 2019, 12:31 p.m. OK Mono C# TESTS 39 77 3584000 1200
56022184 SunriseVietnam C1 June 25, 2019, 4:30 a.m. OK Mono C# TESTS 39 92 3686400 1200
55868736 Hello_World3 C1 June 21, 2019, 1:34 p.m. OK MS C++ TESTS 39 30 0 1200
55809048 Mao_Z C1 June 20, 2019, 2:07 a.m. OK MS C++ TESTS 39 30 0 1200
59968977 shio C1 Sept. 3, 2019, 10:58 p.m. OK MS C++ TESTS 39 30 0 1200
56499407 vjudge4 C1 July 4, 2019, 5:32 a.m. OK MS C++ TESTS 39 30 0 1200
56495480 vjudge3 C1 July 4, 2019, 2:36 a.m. OK MS C++ TESTS 39 30 0 1200
60292196 DM1 C1 Sept. 9, 2019, 7:58 a.m. OK MS C++ TESTS 39 31 0 1200
61267181 vjudge4 C1 Sept. 25, 2019, 1:03 p.m. OK MS C++ TESTS 39 31 0 1200
67006436 vjudge3 C1 Dec. 16, 2019, 8:09 a.m. OK MS C++ TESTS 39 31 0 1200
57461243 vjudge4 C1 July 21, 2019, 1:44 p.m. OK MS C++ TESTS 39 31 0 1200
59425946 yznl C1 Aug. 25, 2019, 2:28 a.m. OK MS C++ TESTS 39 31 0 1200
55809920 RANCAFE C1 June 20, 2019, 2:55 a.m. OK MS C++ 2017 TESTS 39 30 1638400 1200
57182355 vjudge5 C1 July 17, 2019, 7:39 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
64116277 vladnoov C1 Nov. 2, 2019, 8:56 p.m. OK MS C++ 2017 TESTS 39 31 0 1200
61949882 Y_is_sunshine C1 Oct. 6, 2019, 2:46 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
59678184 webeseit C1 Aug. 29, 2019, 7:07 p.m. OK MS C++ 2017 TESTS 39 31 0 1200
58563878 2018qwer C1 Aug. 11, 2019, 7:04 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
57317588 suancaiyu C1 July 19, 2019, 8:46 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
57188971 vjudge1 C1 July 17, 2019, 9:44 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
57188170 vjudge3 C1 July 17, 2019, 9:27 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
57181956 vjudge3 C1 July 17, 2019, 7:32 a.m. OK MS C++ 2017 TESTS 39 31 0 1200
56821538 mojocerob C1 July 11, 2019, 12:55 a.m. OK Node.js TESTS 39 202 2048000 1200
55956790 Gimber C1 June 23, 2019, 7:30 a.m. OK PascalABC.NET TESTS 39 202 0 1200
56175358 mayakin C1 June 27, 2019, 6:48 p.m. OK PHP TESTS 39 46 0 1200
55841436 shanu_im C1 June 20, 2019, 6:14 p.m. OK PyPy 2 TESTS 39 124 204800 1200
58355116 KAin0 C1 Aug. 5, 2019, 7:05 p.m. OK PyPy 3 TESTS 39 124 1331200 1200
56177898 ParsaBahrami C1 June 27, 2019, 8:24 p.m. OK PyPy 3 TESTS 39 139 1228800 1200
55938335 Akash_123 C1 June 22, 2019, 3:07 p.m. OK PyPy 3 TESTS 39 139 1228800 1200
60454810 exception420 C1 Sept. 12, 2019, 5:29 p.m. OK PyPy 3 TESTS 39 139 1433600 1200
55853119 yamraj_1565 C1 June 21, 2019, 5:26 a.m. OK PyPy 3 TESTS 39 140 1228800 1200
63009254 essi C1 Oct. 20, 2019, 11:07 a.m. OK PyPy 3 TESTS 39 140 1228800 1200
58377081 xuzhengqi C1 Aug. 6, 2019, 8:37 a.m. OK PyPy 3 TESTS 39 140 1228800 1200
56797157 kchau C1 July 10, 2019, 12:57 p.m. OK PyPy 3 TESTS 39 140 1228800 1200
56008366 mlmaster C1 June 24, 2019, 4:46 p.m. OK PyPy 3 TESTS 39 140 1228800 1200
55873932 lollihunter C1 June 21, 2019, 4:33 p.m. OK PyPy 3 TESTS 39 140 1228800 1200
57552469 Helli.code C1 July 22, 2019, 6:05 p.m. OK Python 2 TESTS 39 171 0 1200
58182195 -Morass- C1 Aug. 2, 2019, 3:39 p.m. OK Python 2 TESTS 39 233 409600 1200
60454771 exception420 C1 Sept. 12, 2019, 5:27 p.m. OK Python 3 TESTS 39 109 0 1200
59244906 justinjchoice C1 Aug. 21, 2019, 10:33 p.m. OK Python 3 TESTS 39 109 0 1200
56818458 pmzi C1 July 10, 2019, 8:58 p.m. OK Python 3 TESTS 39 109 0 1200
56681435 pratikg1999 C1 July 7, 2019, 6:43 p.m. OK Python 3 TESTS 39 109 0 1200
56278275 epsilon729 C1 June 29, 2019, 3:24 p.m. OK Python 3 TESTS 39 109 0 1200
56173220 skyrahul98 C1 June 27, 2019, 5:41 p.m. OK Python 3 TESTS 39 109 0 1200
56054842 Mark_tven C1 June 25, 2019, 10:09 p.m. OK Python 3 TESTS 39 109 0 1200
56007178 helloworld1101 C1 June 24, 2019, 4:10 p.m. OK Python 3 TESTS 39 109 0 1200
55959554 somnath796 C1 June 23, 2019, 8:57 a.m. OK Python 3 TESTS 39 109 0 1200
55946938 maiti_prithvi_sh C1 June 22, 2019, 8:31 p.m. OK Python 3 TESTS 39 109 0 1200
56117834 zimpha C1 June 26, 2019, 4:34 p.m. OK Rust TESTS 39 31 0 1200

remove filters

Back to search problems