Educational Codeforces Round 159 (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
1902 Educational Codeforces Round 159 (Rated for Div. 2) FINISHED False 7200 35565863 Dec. 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14880 ) B Getting Points PROGRAMMING binary search math

B'Monocarp is a student at Berland State University. Due to recent changes in the Berland education system, Monocarp has to study only one subject -- programming. The academic term consists of n days, and in order not to get expelled, Monocarp has to earn at least P points during those n days. There are two ways to earn points -- completing practical tasks and attending lessons. For each practical task Monocarp fulfills, he earns t points, and for each lesson he attends, he earns l points. Practical tasks are unlocked "each week" as the term goes on: the first task is unlocked on day 1 (and can be completed on any day from 1 to n ), the second task is unlocked on day 8 (and can be completed on any day from 8 to n ), the third task is unlocked on day 15 , and so on. Every day from 1 to n , there is a lesson which can be attended by Monocarp. And every day, Monocarp chooses whether to study or to rest the whole day. When Monocarp decides to study, he attends a lesson and can complete no more than 2 tasks, which are already unlocked and not completed yet. If Monocarp rests the whole day, he skips a lesson and ignores tasks. Monocarp wants to have as many days off as possible, i. e. he wants to maximize the number of days he rests. Help him calculate the maximum number of days he can rest! The first line contains a single integer tc ( 1 <= tc <= 10^4 ) -- the number of test cases. The description of the test cases follows. The only line of each test case contains four integers n , P , l and t ( 1 <= n, l, t <= 10^9 ; 1 <= P <= 10^{18} ) -- the number of days, the minimum total points Monocarp has to earn, the points for attending one lesson and points for completing one task. It 's guaranteed for each test case that it 's possible not to be expelled if Monocarp will attend all lessons and will complete all tasks. For each te'...

Tutorials

Educational Codeforces Round 159 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235632385 ungerfall B Dec. 3, 2023, 8:25 p.m. OK C# 10 TESTS 3 108 3584000
235646346 bluemegane B Dec. 4, 2023, 1:47 a.m. OK C# 8 TESTS 3 155 3174400
235624348 Kushagra8009 B Dec. 3, 2023, 7:02 p.m. OK Clang++20 Diagnostics TESTS 3 280 0
235602862 savage_sharma B Dec. 3, 2023, 4:33 p.m. OK GNU C11 TESTS 3 62 0
235625022 Ronit5 B Dec. 3, 2023, 7:08 p.m. OK GNU C11 TESTS 3 62 0
235636452 iffatul_anon B Dec. 3, 2023, 9:45 p.m. OK GNU C11 TESTS 3 62 0
235601395 sabhinav22 B Dec. 3, 2023, 4:30 p.m. OK GNU C11 TESTS 3 62 0
235599657 avns21 B Dec. 3, 2023, 4:27 p.m. OK GNU C11 TESTS 3 62 0
235602727 hariom_nabira B Dec. 3, 2023, 4:32 p.m. OK GNU C11 TESTS 3 77 0
235607352 salehin_076923 B Dec. 3, 2023, 4:52 p.m. OK GNU C11 TESTS 3 78 0
235599834 huubinh B Dec. 3, 2023, 4:27 p.m. OK GNU C++14 TESTS 3 0 0
235598997 Misaka19280 B Dec. 3, 2023, 4:25 p.m. OK GNU C++14 TESTS 3 15 0
235599547 hua_xzx B Dec. 3, 2023, 4:26 p.m. OK GNU C++14 TESTS 3 15 0
235613888 i_am_eating_tle_and_wa B Dec. 3, 2023, 5:32 p.m. OK GNU C++14 TESTS 3 15 0
235614824 bb_16 B Dec. 3, 2023, 5:39 p.m. OK GNU C++14 TESTS 3 15 0
235643055 AFrAYuRmbrM B Dec. 4, 2023, 12:38 a.m. OK GNU C++14 TESTS 3 15 0
235659722 Reimp B Dec. 4, 2023, 5:37 a.m. OK GNU C++14 TESTS 3 15 0
235657991 prajwalpardhi2003 B Dec. 4, 2023, 5:14 a.m. OK GNU C++14 TESTS 3 15 0
235646517 kuguadawang B Dec. 4, 2023, 1:50 a.m. OK GNU C++14 TESTS 3 15 0
235652881 Mortal_shuyuan B Dec. 4, 2023, 3:53 a.m. OK GNU C++14 TESTS 3 15 102400
235608356 Portgas_D__Ace B Dec. 3, 2023, 4:57 p.m. OK GNU C++17 TESTS 3 0 0
235618034 TNYM2.3.exe B Dec. 3, 2023, 6:05 p.m. OK GNU C++17 TESTS 3 0 0
235638915 FzArK B Dec. 3, 2023, 10:50 p.m. OK GNU C++17 TESTS 3 0 0
235600546 Nawaz19 B Dec. 3, 2023, 4:28 p.m. OK GNU C++17 TESTS 3 0 0
235659299 MenaceJn B Dec. 4, 2023, 5:32 a.m. OK GNU C++17 TESTS 3 15 0
235658176 dhiru_16 B Dec. 4, 2023, 5:16 a.m. OK GNU C++17 TESTS 3 15 0
235658014 abhijay29 B Dec. 4, 2023, 5:14 a.m. OK GNU C++17 TESTS 3 15 0
235657151 Md.Salam_Uddin B Dec. 4, 2023, 5:02 a.m. OK GNU C++17 TESTS 3 15 0
235660756 RM001 B Dec. 4, 2023, 5:50 a.m. OK GNU C++17 TESTS 3 15 0
235659811 JanuaryZJY B Dec. 4, 2023, 5:38 a.m. OK GNU C++17 TESTS 3 15 0
235618091 rn201 B Dec. 3, 2023, 6:06 p.m. OK GNU C++17 (64) TESTS 3 0 0
235647582 Rosmontis_L B Dec. 4, 2023, 2:11 a.m. OK GNU C++17 (64) TESTS 3 0 0
235651734 N_z__ B Dec. 4, 2023, 3:30 a.m. OK GNU C++17 (64) TESTS 3 0 102400
235603190 HitoriGotoh B Dec. 3, 2023, 4:33 p.m. OK GNU C++17 (64) TESTS 3 0 204800
235657561 fs20091003 B Dec. 4, 2023, 5:08 a.m. OK GNU C++17 (64) TESTS 3 15 0
235660544 Dynamic_Pigeon B Dec. 4, 2023, 5:47 a.m. OK GNU C++17 (64) TESTS 3 15 0
235659403 shrey_12 B Dec. 4, 2023, 5:33 a.m. OK GNU C++17 (64) TESTS 3 15 0
235658856 qhnana7mi B Dec. 4, 2023, 5:26 a.m. OK GNU C++17 (64) TESTS 3 15 0
235657536 Senfuy B Dec. 4, 2023, 5:08 a.m. OK GNU C++17 (64) TESTS 3 15 0
235656532 JustA7 B Dec. 4, 2023, 4:52 a.m. OK GNU C++17 (64) TESTS 3 15 0
235625810 ivatopuria B Dec. 3, 2023, 7:15 p.m. OK GNU C++20 (64) TESTS 3 0 0
235620174 AmateurCode B Dec. 3, 2023, 6:23 p.m. OK GNU C++20 (64) TESTS 3 0 0
235616525 mr_sparkle70 B Dec. 3, 2023, 5:53 p.m. OK GNU C++20 (64) TESTS 3 0 0
235625862 Anas245 B Dec. 3, 2023, 7:15 p.m. OK GNU C++20 (64) TESTS 3 0 0
235638099 iAmadoldd B Dec. 3, 2023, 10:21 p.m. OK GNU C++20 (64) TESTS 3 0 0
235640570 llloserqz B Dec. 3, 2023, 11:31 p.m. OK GNU C++20 (64) TESTS 3 0 0
235655806 Lalapalaor B Dec. 4, 2023, 4:41 a.m. OK GNU C++20 (64) TESTS 3 0 0
235655825 SyedSohaib_SundarSTEM B Dec. 4, 2023, 4:42 a.m. OK GNU C++20 (64) TESTS 3 0 0
235657241 qqyrxbzdtx B Dec. 4, 2023, 5:04 a.m. OK GNU C++20 (64) TESTS 3 0 0
235659225 GodOfBug B Dec. 4, 2023, 5:31 a.m. OK GNU C++20 (64) TESTS 3 0 0
235600808 learnjava B Dec. 3, 2023, 4:29 p.m. OK Java 11 TESTS 3 186 0
235610257 ....----.... B Dec. 3, 2023, 5:08 p.m. OK Java 11 TESTS 3 264 0
235599743 lucifer1426 B Dec. 3, 2023, 4:27 p.m. OK Java 11 TESTS 3 327 0
235600472 NavneetKumar123 B Dec. 3, 2023, 4:28 p.m. OK Java 11 TESTS 3 342 0
235617046 TCchen B Dec. 3, 2023, 5:57 p.m. OK Java 17 TESTS 3 170 204800
235612622 tiger3768 B Dec. 3, 2023, 5:23 p.m. OK Java 17 TESTS 3 186 204800
235602179 dineshchandran311 B Dec. 3, 2023, 4:32 p.m. OK Java 17 TESTS 3 202 0
235607407 999ms_Clutch B Dec. 3, 2023, 4:52 p.m. OK Java 17 TESTS 3 202 42188800
235630392 Nagendravarma B Dec. 3, 2023, 7:59 p.m. OK Java 17 TESTS 3 233 409600
235643674 Xing_ke B Dec. 4, 2023, 12:52 a.m. OK Java 17 TESTS 3 280 0
235600233 garvit2435 B Dec. 3, 2023, 4:28 p.m. OK Java 17 TESTS 3 295 512000
235644465 Xing_ke B Dec. 4, 2023, 1:10 a.m. OK Java 17 TESTS 3 312 614400
235643537 Xing_ke B Dec. 4, 2023, 12:49 a.m. OK Java 17 TESTS 3 327 0
235621384 Ashuraj_Herode B Dec. 3, 2023, 6:34 p.m. OK Java 17 TESTS 3 342 204800
235652374 BloCamLimb B Dec. 4, 2023, 3:43 a.m. OK Java 21 TESTS 3 170 0
235604953 ramitg254 B Dec. 3, 2023, 4:42 p.m. OK Java 21 TESTS 3 265 0
235626269 Makhon58 B Dec. 3, 2023, 7:19 p.m. OK Java 21 TESTS 3 343 102400
235656300 kaushalyad321 B Dec. 4, 2023, 4:49 a.m. OK Java 21 TESTS 3 373 0
235625073 abhishekkumarsingh9585 B Dec. 3, 2023, 7:08 p.m. OK Java 21 TESTS 3 373 716800
235613949 V0ice B Dec. 3, 2023, 5:32 p.m. OK Java 21 TESTS 3 374 102400
235648103 Kasare_Boy B Dec. 4, 2023, 2:21 a.m. OK Java 21 TESTS 3 389 512000
235656196 kaushalyad321 B Dec. 4, 2023, 4:47 a.m. OK Java 21 TESTS 3 545 819200
235617263 priyaroy3370 B Dec. 3, 2023, 5:59 p.m. OK Java 8 TESTS 3 93 0
235620028 himanshubhardwaj169 B Dec. 3, 2023, 6:22 p.m. OK Java 8 TESTS 3 108 0
235599524 1091857051 B Dec. 3, 2023, 4:26 p.m. OK Java 8 TESTS 3 108 0
235620213 himanshubhardwaj169 B Dec. 3, 2023, 6:24 p.m. OK Java 8 TESTS 3 124 0
235619834 himanshubhardwaj169 B Dec. 3, 2023, 6:20 p.m. OK Java 8 TESTS 3 124 0
235600374 Yousef_Badr B Dec. 3, 2023, 4:28 p.m. OK Java 8 TESTS 3 124 0
235630869 mohamedhassan_c B Dec. 3, 2023, 8:07 p.m. OK Java 8 TESTS 3 124 5734400
235643594 gdax B Dec. 4, 2023, 12:51 a.m. OK Java 8 TESTS 3 171 0
235599344 choudharyjitendra7989 B Dec. 3, 2023, 4:26 p.m. OK Java 8 TESTS 3 202 15462400
235617994 ashraybharambe B Dec. 3, 2023, 6:05 p.m. OK Java 8 TESTS 3 249 0
235609034 brownfox2k6 B Dec. 3, 2023, 5:01 p.m. OK Kotlin 1.7 TESTS 3 436 20377600
235641287 cpchenpi B Dec. 3, 2023, 11:52 p.m. OK Kotlin 1.7 TESTS 3 499 20787200
235646410 wudao70 B Dec. 4, 2023, 1:48 a.m. OK MS C++ 2017 TESTS 3 15 0
235621233 devanshjain1712 B Dec. 3, 2023, 6:33 p.m. OK MS C++ 2017 TESTS 3 62 0
235656954 shiwang_ar B Dec. 4, 2023, 4:59 a.m. OK MS C++ 2017 TESTS 3 77 0
235656700 Lu_Kai B Dec. 4, 2023, 4:55 a.m. OK MS C++ 2017 TESTS 3 77 0
235600381 SUNIL_2928 B Dec. 3, 2023, 4:28 p.m. OK MS C++ 2017 TESTS 3 77 0
235656848 chayan.surana3 B Dec. 4, 2023, 4:58 a.m. OK MS C++ 2017 TESTS 3 93 0
235609083 Darooha B Dec. 3, 2023, 5:02 p.m. OK OCaml TESTS 3 78 409600
235602497 mkawa2 B Dec. 3, 2023, 4:32 p.m. OK PyPy 3 TESTS 3 233 8192000
235600732 JucuDynamics B Dec. 3, 2023, 4:29 p.m. OK PyPy 3 TESTS 3 327 8192000
235599450 brao72 B Dec. 3, 2023, 4:26 p.m. OK PyPy 3 TESTS 3 327 9420800
235652980 bunny_senpai B Dec. 4, 2023, 3:54 a.m. OK PyPy 3 TESTS 3 342 8192000
235601038 Hima_Gaya3 B Dec. 3, 2023, 4:29 p.m. OK PyPy 3 TESTS 3 342 8192000
235603512 rs.ravi B Dec. 3, 2023, 4:34 p.m. OK PyPy 3 TESTS 3 343 9318400
235621861 ipip B Dec. 3, 2023, 6:38 p.m. OK PyPy 3 TESTS 3 358 8806400
235618992 noob_username B Dec. 3, 2023, 6:13 p.m. OK PyPy 3 TESTS 3 405 9728000
235622455 zouyu9631 B Dec. 3, 2023, 6:44 p.m. OK PyPy 3-64 TESTS 3 77 5017600
235643677 Ayush___ B Dec. 4, 2023, 12:53 a.m. OK PyPy 3-64 TESTS 3 108 7577600
235613406 VitalyKo B Dec. 3, 2023, 5:28 p.m. OK PyPy 3-64 TESTS 3 108 8089600
235631516 daszybak B Dec. 3, 2023, 8:15 p.m. OK PyPy 3-64 TESTS 3 109 8908800
235644506 arausch B Dec. 4, 2023, 1:11 a.m. OK PyPy 3-64 TESTS 3 124 10137600
235603088 ProCoder12 B Dec. 3, 2023, 4:33 p.m. OK PyPy 3-64 TESTS 3 139 9728000
235659151 The_MazeRunner B Dec. 4, 2023, 5:29 a.m. OK PyPy 3-64 TESTS 3 140 9318400
235611196 RobinFromTheHood B Dec. 3, 2023, 5:14 p.m. OK PyPy 3-64 TESTS 3 140 9625600
235660298 harshk_52 B Dec. 4, 2023, 5:44 a.m. OK PyPy 3-64 TESTS 3 187 10854400
235640768 DarkTemplarDrop B Dec. 3, 2023, 11:37 p.m. OK PyPy 3-64 TESTS 3 217 9113600
235599677 aibek02 B Dec. 3, 2023, 4:27 p.m. OK Python 3 TESTS 3 93 0
235610699 89052100421dr B Dec. 3, 2023, 5:11 p.m. OK Python 3 TESTS 3 108 0
235609279 Ptsh_368 B Dec. 3, 2023, 5:03 p.m. OK Python 3 TESTS 3 108 0
235602003 rishabh_0602 B Dec. 3, 2023, 4:31 p.m. OK Python 3 TESTS 3 108 0
235600510 qawfg42 B Dec. 3, 2023, 4:28 p.m. OK Python 3 TESTS 3 108 0
235599687 Risshun B Dec. 3, 2023, 4:27 p.m. OK Python 3 TESTS 3 108 0
235603346 kushG1 B Dec. 3, 2023, 4:33 p.m. OK Python 3 TESTS 3 108 102400
235603137 AryanGoel575 B Dec. 3, 2023, 4:33 p.m. OK Python 3 TESTS 3 108 102400
235634194 mdsohelkhan B Dec. 3, 2023, 8:48 p.m. OK Python 3 TESTS 3 108 204800
235633943 ex_nihilo B Dec. 3, 2023, 8:45 p.m. OK Python 3 TESTS 3 108 204800
235638026 0x81 B Dec. 3, 2023, 10:20 p.m. OK Ruby 3 TESTS 3 452 716800
235636651 0x81 B Dec. 3, 2023, 9:50 p.m. OK Ruby 3 TESTS 3 514 1126400

remove filters

Back to search problems