CodeCraft-21 and Codeforces Round 711 (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
1498 CodeCraft-21 and Codeforces Round 711 (Div. 2) FINISHED False 7200 120237863 March 29, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2357 ) D Bananas in a Microwave PROGRAMMING dfs and similar dp greedy shortest paths

B"You have a malfunctioning microwave in which you want to put some bananas. You have n time-steps before the microwave stops working completely. At each time-step, it displays a new operation. Let k be the number of bananas in the microwave currently. Initially, k = 0 . In the i -th operation, you are given three parameters t_i , x_i , y_i in the input. Based on the value of t_i , you must do one of the following: Type 1: ( t_i=1 , x_i , y_i ) -- pick an a_i , such that 0 <= a_i <= y_i , and perform the following update a_i times: k:= lceil (k + x_i) rceil . Type 2: ( t_i=2 , x_i , y_i ) -- pick an a_i , such that 0 <= a_i <= y_i , and perform the following update a_i times: k:= lceil (k cdot x_i) rceil . Note that x_i can be a fractional value. See input format for more details. Also, lceil x rceil is the smallest integer ge x . At the i -th time-step, you must apply the i -th operation exactly once. For each j such that 1 <= j <= m , output the earliest time-step at which you can create exactly j bananas. If you cannot create exactly j bananas, output -1 . The first line contains two space-separated integers n (1 <= n <= 200) and m (2 <= m <= 10^5) . Then, n lines follow, where the i -th line denotes the operation for the i -th timestep. Each such line contains three space-separated integers t_i , x'_i and y_i ( 1 <= t_i <= 2 , 1 <= y_i <= m ). Note that you are given x'_i , which is 10^5 cdot x_i . Thus, to obtain x_i , use the formula x_i= dfrac{x'_i} {10^5} . For type 1 operations, 1 <= x'_i <= 10^5 cdot m , and for type 2 operations, 10^5 < x'_i <= 10^5 cdot m . Print m integers, where the i -th integer is the earliest time-step when you can obtain exactly"...

Tutorials

CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
111398738 AC-Evil D March 29, 2021, 4:15 p.m. OK GNU C++11 TESTS 41 171 409600
111434051 SHHK_test D March 30, 2021, 4:28 a.m. OK GNU C++11 TESTS 41 186 512000
111433967 SHHK_test D March 30, 2021, 4:26 a.m. OK GNU C++11 TESTS 41 187 512000
111435098 magi1999 D March 30, 2021, 4:48 a.m. OK GNU C++11 TESTS 41 187 819200
111429019 gangpener D March 30, 2021, 2:18 a.m. OK GNU C++11 TESTS 41 187 819200
111399750 cunzai_zsy0531 D March 29, 2021, 4:19 p.m. OK GNU C++11 TESTS 41 187 819200
111433853 ASTROBOYZZ D March 30, 2021, 4:24 a.m. OK GNU C++11 TESTS 41 187 1638400
111431579 Dreamfarer D March 30, 2021, 3:27 a.m. OK GNU C++11 TESTS 41 187 3993600
111419969 Solstice D March 29, 2021, 8:25 p.m. OK GNU C++11 TESTS 41 202 409600
111425459 zech D March 29, 2021, 11:53 p.m. OK GNU C++11 TESTS 41 202 614400
111424994 Kwords D March 29, 2021, 11:29 p.m. OK GNU C++14 TESTS 41 139 1638400
111428027 _Ruri_ D March 30, 2021, 1:43 a.m. OK GNU C++14 TESTS 41 140 409600
111398569 Uzumaki_Narutoo D March 29, 2021, 4:15 p.m. OK GNU C++14 TESTS 41 155 819200
111407855 Gigaliths D March 29, 2021, 5:24 p.m. OK GNU C++14 TESTS 41 156 819200
111414846 Potassium D March 29, 2021, 6:52 p.m. OK GNU C++14 TESTS 41 156 819200
111402305 PrashantM D March 29, 2021, 4:29 p.m. OK GNU C++14 TESTS 41 156 1228800
111424361 utility D March 29, 2021, 10:52 p.m. OK GNU C++14 TESTS 41 171 1024000
111397069 RUSH_D_CAT D March 29, 2021, 4:09 p.m. OK GNU C++14 TESTS 41 171 3993600
111400756 NOOBxCODER D March 29, 2021, 4:23 p.m. OK GNU C++14 TESTS 41 186 1638400
111412194 alien_lover D March 29, 2021, 6:16 p.m. OK GNU C++14 TESTS 41 187 819200
111405858 EOT D March 29, 2021, 5:07 p.m. OK GNU C++17 TESTS 41 78 3174400
111406222 dyhaohaoxuexi D March 29, 2021, 5:10 p.m. OK GNU C++17 TESTS 41 78 3174400
111397907 vito1036 D March 29, 2021, 4:12 p.m. OK GNU C++17 TESTS 41 139 819200
111430401 R136a1 D March 30, 2021, 2:58 a.m. OK GNU C++17 TESTS 41 155 614400
111435987 Uchiha_Itachi_21 D March 30, 2021, 5:04 a.m. OK GNU C++17 TESTS 41 156 409600
111422383 mukherjee_soham D March 29, 2021, 9:31 p.m. OK GNU C++17 TESTS 41 156 819200
111417846 hearthewsong D March 29, 2021, 7:43 p.m. OK GNU C++17 TESTS 41 156 819200
111395841 Zain D March 29, 2021, 4:05 p.m. OK GNU C++17 TESTS 41 156 1638400
111436139 Asurudo_Jyo D March 30, 2021, 5:07 a.m. OK GNU C++17 TESTS 41 156 1638400
111406695 ZADaCHI D March 29, 2021, 5:13 p.m. OK GNU C++17 TESTS 41 156 2457600
111407900 udon1206 D March 29, 2021, 5:24 p.m. OK GNU C++17 (64) TESTS 41 46 819200
111414060 Sad_reacts_only D March 29, 2021, 6:40 p.m. OK GNU C++17 (64) TESTS 41 46 921600
111394915 sayanmedya D March 29, 2021, 4:01 p.m. OK GNU C++17 (64) TESTS 41 61 409600
111414125 Sad_reacts_only D March 29, 2021, 6:40 p.m. OK GNU C++17 (64) TESTS 41 61 921600
111431007 Lain D March 30, 2021, 3:14 a.m. OK GNU C++17 (64) TESTS 41 62 409600
111433296 gokul.raj D March 30, 2021, 4:10 a.m. OK GNU C++17 (64) TESTS 41 62 409600
111428128 sky_io D March 30, 2021, 1:47 a.m. OK GNU C++17 (64) TESTS 41 62 409600
111416403 rath772k D March 29, 2021, 7:18 p.m. OK GNU C++17 (64) TESTS 41 62 409600
111405771 viniciusth D March 29, 2021, 5:07 p.m. OK GNU C++17 (64) TESTS 41 62 409600
111438246 Ausmosian D March 30, 2021, 5:41 a.m. OK GNU C++17 (64) TESTS 41 62 819200
111417505 0x3F D March 29, 2021, 7:37 p.m. OK Go TESTS 41 483 409600
111417445 0x3F D March 29, 2021, 7:36 p.m. OK Go TESTS 41 733 409600
111416685 0x3F D March 29, 2021, 7:23 p.m. OK Go TESTS 41 764 409600
111416532 0x3F D March 29, 2021, 7:21 p.m. OK Go TESTS 41 810 409600
111400472 Apfeloxid D March 29, 2021, 4:22 p.m. OK Java 11 TESTS 41 545 0
111416141 HBP D March 29, 2021, 7:15 p.m. OK Java 11 TESTS 41 966 15360000
111395127 MichaelHyh D March 29, 2021, 4:02 p.m. OK Java 11 TESTS 41 1170 246988800
111416313 HBP D March 29, 2021, 7:17 p.m. OK Java 11 TESTS 41 1356 15360000
111397603 bobib D March 29, 2021, 4:11 p.m. OK Java 11 TESTS 41 1465 0
111404236 martins D March 29, 2021, 4:34 p.m. OK Java 8 TESTS 41 576 0
111435506 Prakrit18 D March 30, 2021, 4:55 a.m. OK Java 8 TESTS 41 608 0
111403124 Agnimandur D March 29, 2021, 4:32 p.m. OK Java 8 TESTS 41 717 0
111407987 ZerooCool D March 29, 2021, 5:25 p.m. OK Java 8 TESTS 41 748 0
111405675 TheSawan D March 29, 2021, 5:06 p.m. OK Java 8 TESTS 41 748 0
111401174 polyakoff D March 29, 2021, 4:25 p.m. OK Java 8 TESTS 41 810 0
111399458 pulkit1411 D March 29, 2021, 4:18 p.m. OK Java 8 TESTS 41 997 238489600
111402268 Dmitrenko D March 29, 2021, 4:29 p.m. OK MS C++ 2017 TESTS 41 561 1638400
111407863 breaknow D March 29, 2021, 5:24 p.m. OK MS C++ 2017 TESTS 41 1044 4300800
111409138 breaknow D March 29, 2021, 5:38 p.m. OK MS C++ 2017 TESTS 41 1076 4403200
111408199 breaknow D March 29, 2021, 5:27 p.m. OK MS C++ 2017 TESTS 41 1107 4403200
111409092 breaknow D March 29, 2021, 5:37 p.m. OK MS C++ 2017 TESTS 41 2199 5120000
111409042 breaknow D March 29, 2021, 5:37 p.m. OK MS C++ 2017 TESTS 41 2292 5427200
111399244 Arnyev D March 29, 2021, 4:17 p.m. OK .NET Core C# TESTS 41 186 4300800
111422716 jimm89 D March 29, 2021, 9:41 p.m. OK PyPy 3 TESTS 41 842 13107200
111422597 jimm89 D March 29, 2021, 9:38 p.m. OK PyPy 3 TESTS 41 982 14745600
111394954 at_f D March 29, 2021, 4:01 p.m. OK PyPy 3 TESTS 41 1091 15155200
111409967 at_f D March 29, 2021, 5:48 p.m. OK PyPy 3 TESTS 41 1107 15257600
111422735 jimm89 D March 29, 2021, 9:42 p.m. OK PyPy 3 TESTS 41 1247 13619200
111409714 at_f D March 29, 2021, 5:45 p.m. OK PyPy 3 TESTS 41 1871 15360000
111409369 at_f D March 29, 2021, 5:41 p.m. OK PyPy 3 TESTS 41 1996 21401600
111423443 b99202050 D March 29, 2021, 10:11 p.m. OK PyPy 3 TESTS 41 2230 9932800
111427070 marroncastle D March 30, 2021, 1:05 a.m. OK PyPy 3 TESTS 41 2277 10137600
111427096 marroncastle D March 30, 2021, 1:06 a.m. OK PyPy 3 TESTS 41 2339 13926400

remove filters

Back to search problems