Educational Codeforces Round 82 (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
1303 Educational Codeforces Round 82 (Rated for Div. 2) FINISHED False 7200 150305099 Feb. 12, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15859 ) B National Project PROGRAMMING math 1300

B"Your company was appointed to lay new asphalt on the highway of length n . You know that every day you can either repair one unit of the highway (lay new asphalt over one unit of the highway) or skip repairing. Skipping the repair is necessary because of the climate. The climate in your region is periodical: there are g days when the weather is good and if you lay new asphalt these days it becomes high-quality pavement; after that, the weather during the next b days is bad, and if you lay new asphalt these days it becomes low-quality pavement; again g good days, b bad days and so on. You can be sure that you start repairing at the start of a good season, in other words, days 1, 2, ... , g are good. You don't really care about the quality of the highway, you just want to make sure that at least half of the highway will have high-quality pavement. For example, if the n = 5 then at least 3 units of the highway should have high quality; if n = 4 then at least 2 units should have high quality. What is the minimum number of days is needed to finish the repair of the whole highway? The first line contains a single integer T ( 1 <= T <= 10^4 ) -- the number of test cases. Next T lines contain test cases -- one per line. Each line contains three integers n , g and b ( 1 <= n, g, b <= 10^9 ) -- the length of the highway and the number of good and bad days respectively. Print T integers -- one per test case. For each test case, print the minimum number of days required to repair the whole highway if at least half of it should have high quality. In the first test case, you can just lay new asphalt each day, since days 1, 3, 5 are good. In the second test case, you can also lay new asphalt each day, since days 1 - 8 are good. "...

Tutorials

Educational Codeforces Round 82

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70926086 strelas B Feb. 13, 2020, 2:36 a.m. OK Clang++17 Diagnostics TESTS 5 264 0 1300
70877624 darkkcyan B Feb. 12, 2020, 3:29 p.m. OK FPC TESTS 5 46 102400 1300
70881648 PAG B Feb. 12, 2020, 3:39 p.m. OK FPC TESTS 5 61 0 1300
70886559 LaSWeeG B Feb. 12, 2020, 3:52 p.m. OK FPC TESTS 5 62 0 1300
70956849 canhtoannct B Feb. 13, 2020, 1:03 p.m. OK FPC TESTS 5 62 102400 1300
70910294 avadh14026 B Feb. 12, 2020, 6:06 p.m. OK GNU C11 TESTS 5 46 0 1300
71078418 akash19jain B Feb. 14, 2020, 6:08 p.m. OK GNU C11 TESTS 5 46 0 1300
70890468 Dream.to B Feb. 12, 2020, 4:03 p.m. OK GNU C11 TESTS 5 46 0 1300
70931768 UshanGhosh B Feb. 13, 2020, 5:23 a.m. OK GNU C11 TESTS 5 46 0 1300
70912415 miguelalves321 B Feb. 12, 2020, 6:41 p.m. OK GNU C11 TESTS 5 61 0 1300
70915095 kaiboy B Feb. 12, 2020, 7:31 p.m. OK GNU C11 TESTS 5 61 0 1300
70915088 khasrulShihab B Feb. 12, 2020, 7:31 p.m. OK GNU C11 TESTS 5 62 0 1300
70920023 NhatLe B Feb. 12, 2020, 9:40 p.m. OK GNU C11 TESTS 5 62 0 1300
70938037 hnust_yujunyang B Feb. 13, 2020, 7:23 a.m. OK GNU C11 TESTS 5 62 0 1300
70913169 Arihant_Garg B Feb. 12, 2020, 6:54 p.m. OK GNU C11 TESTS 5 62 0 1300
70955203 1250 B Feb. 13, 2020, 12:36 p.m. OK GNU C++11 TESTS 5 15 0 1300
70948906 luogu_bot4 B Feb. 13, 2020, 10:37 a.m. OK GNU C++11 TESTS 5 15 0 1300
70942627 ZASAZ_Admin B Feb. 13, 2020, 8:54 a.m. OK GNU C++11 TESTS 5 15 0 1300
70939911 luogu_bot5 B Feb. 13, 2020, 8:01 a.m. OK GNU C++11 TESTS 5 15 0 1300
70929840 lin_rany B Feb. 13, 2020, 4:37 a.m. OK GNU C++11 TESTS 5 15 0 1300
70923358 do_while_true B Feb. 13, 2020, 12:31 a.m. OK GNU C++11 TESTS 5 15 0 1300
71052941 loulingli B Feb. 14, 2020, 10:39 a.m. OK GNU C++11 TESTS 5 15 0 1300
71041200 MasonMount19 B Feb. 14, 2020, 6:58 a.m. OK GNU C++11 TESTS 5 15 0 1300
71029765 luogu_bot3 B Feb. 14, 2020, 2:34 a.m. OK GNU C++11 TESTS 5 15 0 1300
70955933 360528803 B Feb. 13, 2020, 12:48 p.m. OK GNU C++11 TESTS 5 15 0 1300
70937386 Testingmyskills B Feb. 13, 2020, 7:10 a.m. OK GNU C++14 TESTS 5 15 0 1300
70938362 Visoccer B Feb. 13, 2020, 7:29 a.m. OK GNU C++14 TESTS 5 15 0 1300
71013342 vishnu_m B Feb. 13, 2020, 6 p.m. OK GNU C++14 TESTS 5 15 0 1300
71077014 Robbens B Feb. 14, 2020, 5:40 p.m. OK GNU C++14 TESTS 5 15 0 1300
71090093 chw0501 B Feb. 15, 2020, 12:39 a.m. OK GNU C++14 TESTS 5 15 0 1300
71096151 viren15 B Feb. 15, 2020, 4:58 a.m. OK GNU C++14 TESTS 5 15 0 1300
70930562 NooB_inCsu B Feb. 13, 2020, 4:56 a.m. OK GNU C++14 TESTS 5 15 0 1300
70928701 vjudge5 B Feb. 13, 2020, 4:01 a.m. OK GNU C++14 TESTS 5 15 0 1300
70918115 harshitmadaan B Feb. 12, 2020, 8:39 p.m. OK GNU C++14 TESTS 5 15 0 1300
70915786 abhittal B Feb. 12, 2020, 7:45 p.m. OK GNU C++14 TESTS 5 15 0 1300
71031319 Hope_Y B Feb. 14, 2020, 3:24 a.m. OK GNU C++17 TESTS 5 15 0 1300
71091253 2017212212083 B Feb. 15, 2020, 1:47 a.m. OK GNU C++17 TESTS 5 15 0 1300
71055531 hrsh_panwar B Feb. 14, 2020, 11:35 a.m. OK GNU C++17 TESTS 5 15 0 1300
71036893 Snpilola B Feb. 14, 2020, 5:44 a.m. OK GNU C++17 TESTS 5 15 0 1300
71019258 kvutxdy B Feb. 13, 2020, 7:42 p.m. OK GNU C++17 TESTS 5 15 0 1300
70941083 vjudge2 B Feb. 13, 2020, 8:25 a.m. OK GNU C++17 TESTS 5 15 0 1300
70936716 tanxi B Feb. 13, 2020, 6:58 a.m. OK GNU C++17 TESTS 5 15 0 1300
70927500 huangzhenyuan B Feb. 13, 2020, 3:23 a.m. OK GNU C++17 TESTS 5 15 0 1300
70926075 wxbxcxuxnxy B Feb. 13, 2020, 2:35 a.m. OK GNU C++17 TESTS 5 15 0 1300
70923815 Sstee1XD B Feb. 13, 2020, 12:55 a.m. OK GNU C++17 TESTS 5 15 0 1300
70929192 ktateish B Feb. 13, 2020, 4:17 a.m. OK Go TESTS 5 31 0 1300
70897444 naipia B Feb. 12, 2020, 4:23 p.m. OK Go TESTS 5 61 0 1300
70887256 snow_bear_328 B Feb. 12, 2020, 3:54 p.m. OK Go TESTS 5 62 0 1300
70877754 synapse B Feb. 12, 2020, 3:29 p.m. OK Go TESTS 5 62 0 1300
70930414 synapse B Feb. 13, 2020, 4:53 a.m. OK Go TESTS 5 77 0 1300
70876948 nayix B Feb. 12, 2020, 3:27 p.m. OK Go TESTS 5 920 0 1300
71068972 Russell_Emerine B Feb. 14, 2020, 3:22 p.m. OK Haskell TESTS 5 93 102400 1300
71095090 flydzt B Feb. 15, 2020, 4:26 a.m. OK Java 11 TESTS 5 171 0 1300
70871979 codebhavan B Feb. 12, 2020, 3:16 p.m. OK Java 11 TESTS 5 171 0 1300
70916548 lightseba B Feb. 12, 2020, 8 p.m. OK Java 11 TESTS 5 186 0 1300
70897054 alankritanand001 B Feb. 12, 2020, 4:22 p.m. OK Java 11 TESTS 5 186 0 1300
71087497 about B Feb. 14, 2020, 10:17 p.m. OK Java 11 TESTS 5 187 0 1300
70951078 AbdallahArafa B Feb. 13, 2020, 11:22 a.m. OK Java 11 TESTS 5 202 0 1300
70894739 abhi123valani B Feb. 12, 2020, 4:15 p.m. OK Java 11 TESTS 5 202 0 1300
70878519 AbdallahArafa B Feb. 12, 2020, 3:31 p.m. OK Java 11 TESTS 5 202 0 1300
70878075 nick_301 B Feb. 12, 2020, 3:30 p.m. OK Java 11 TESTS 5 202 0 1300
70899254 p_unit B Feb. 12, 2020, 4:28 p.m. OK Java 11 TESTS 5 217 0 1300
70872002 shashwat07 B Feb. 12, 2020, 3:16 p.m. OK Java 8 TESTS 5 93 0 1300
70887501 pc_wallace B Feb. 12, 2020, 3:54 p.m. OK Java 8 TESTS 5 108 0 1300
70943707 MubtasimShahriar B Feb. 13, 2020, 9:09 a.m. OK Java 8 TESTS 5 109 0 1300
70928434 bluesky111 B Feb. 13, 2020, 3:53 a.m. OK Java 8 TESTS 5 109 0 1300
70905634 nalin_1000101 B Feb. 12, 2020, 5:05 p.m. OK Java 8 TESTS 5 109 0 1300
70893854 manish_98 B Feb. 12, 2020, 4:13 p.m. OK Java 8 TESTS 5 109 0 1300
70891436 kpark B Feb. 12, 2020, 4:05 p.m. OK Java 8 TESTS 5 109 0 1300
70877192 HoldTight B Feb. 12, 2020, 3:28 p.m. OK Java 8 TESTS 5 109 0 1300
70875147 rahsutamrev B Feb. 12, 2020, 3:23 p.m. OK Java 8 TESTS 5 109 0 1300
71077257 e_is_cool B Feb. 14, 2020, 5:46 p.m. OK Java 8 TESTS 5 124 0 1300
70903204 formalist B Feb. 12, 2020, 4:46 p.m. OK Kotlin TESTS 5 139 0 1300
70942504 Spheniscine B Feb. 13, 2020, 8:52 a.m. OK Kotlin TESTS 5 140 0 1300
70942104 Spheniscine B Feb. 13, 2020, 8:45 a.m. OK Kotlin TESTS 5 155 0 1300

remove filters

Back to search problems