Educational Codeforces Round 157 (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
1895 Educational Codeforces Round 157 (Rated for Div. 2) FINISHED False 7200 38157863 Nov. 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24694 ) A Treasure Chest PROGRAMMING math

B"Monocarp has found a treasure map. The map represents the treasure location as an OX axis. Monocarp is at 0 , the treasure chest is at x , the key to the chest is at y . Obviously, Monocarp wants to open the chest. He can perform the following actions: Monocarp can carry the chest, but the chest is pretty heavy. He knows that he can carry it for at most k seconds in total (putting it down and picking it back up doesn't reset his stamina). What's the smallest time required for Monocarp to open the chest? The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of testcases. The only line of each testcase contains three integers x, y and k ( 1 <= x, y <= 100 ; x neq y ; 0 <= k <= 100 ) -- the initial point of the chest, the point where the key is located, and the maximum time Monocarp can carry the chest for. For each testcase, print a single integer -- the smallest time required for Monocarp to open the chest. In the first testcase, Monocarp can open the chest in 7 seconds with the following sequence of moves: He only carries the chest for 2 seconds, which he has the stamina for. In the second testcase, Monocarp can pick up the key on his way to the chest. In the third testcase, Monocarp can't use the strategy from the first testcase because he would have to carry the chest for 3 seconds, while he only has the stamina for 2 seconds. Thus, he carries the chest to 7 , puts it down, moves 1 to the right to pick up the key and returns 1 left to open the chest. "...

Tutorials

Educational Codeforces Round 157 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
231272270 sh_arman A Nov. 4, 2023, 3:46 a.m. OK C# 10 TESTS 2 139 0
231252102 bluemegane A Nov. 3, 2023, 10:01 p.m. OK C# 8 TESTS 2 61 0
231265037 hkng248 A Nov. 4, 2023, 2:10 a.m. OK Clang++17 Diagnostics TESTS 2 31 0
231206574 tushartitaniitr A Nov. 3, 2023, 4:38 p.m. OK Clang++17 Diagnostics TESTS 2 31 0
231235783 mohammed232003 A Nov. 3, 2023, 7:21 p.m. OK Clang++20 Diagnostics TESTS 2 15 0
231238479 10FilaTov01 A Nov. 3, 2023, 7:37 p.m. OK Clang++20 Diagnostics TESTS 2 30 0
231209243 Shovel314 A Nov. 3, 2023, 4:51 p.m. OK Clang++20 Diagnostics TESTS 2 30 0
231213412 Bhavya_2907 A Nov. 3, 2023, 5:16 p.m. OK Clang++20 Diagnostics TESTS 2 30 0
231274971 irentbread A Nov. 4, 2023, 4:25 a.m. OK GNU C11 TESTS 2 0 0
231271040 thunderstorm007 A Nov. 4, 2023, 3:29 a.m. OK GNU C11 TESTS 2 0 0
231275310 chicken_65 A Nov. 4, 2023, 4:30 a.m. OK GNU C11 TESTS 2 0 0
231198538 ABTurjo121 A Nov. 3, 2023, 4:22 p.m. OK GNU C11 TESTS 2 0 0
231204621 verywater A Nov. 3, 2023, 4:33 p.m. OK GNU C11 TESTS 2 0 0
231206331 roy.aavas A Nov. 3, 2023, 4:37 p.m. OK GNU C11 TESTS 2 0 0
231209571 Rafi_Wahid A Nov. 3, 2023, 4:53 p.m. OK GNU C11 TESTS 2 0 0
231263507 Kok666 A Nov. 4, 2023, 1:49 a.m. OK GNU C11 TESTS 2 0 0
231277913 Sahil_231020442 A Nov. 4, 2023, 5:06 a.m. OK GNU C11 TESTS 2 15 0
231279220 Adrenaline_00 A Nov. 4, 2023, 5:22 a.m. OK GNU C11 TESTS 2 15 0
231282950 THeri A Nov. 4, 2023, 6 a.m. OK GNU C++14 TESTS 2 0 0
231281556 hamzask.018 A Nov. 4, 2023, 5:48 a.m. OK GNU C++14 TESTS 2 0 0
231280890 j.uday A Nov. 4, 2023, 5:41 a.m. OK GNU C++14 TESTS 2 0 0
231280844 diya0131 A Nov. 4, 2023, 5:41 a.m. OK GNU C++14 TESTS 2 0 0
231280677 rakshitkaushal1528 A Nov. 4, 2023, 5:39 a.m. OK GNU C++14 TESTS 2 0 0
231280461 jaikhatri9827 A Nov. 4, 2023, 5:37 a.m. OK GNU C++14 TESTS 2 0 0
231280399 luogu_bot2 A Nov. 4, 2023, 5:36 a.m. OK GNU C++14 TESTS 2 0 0
231279894 vikramkr A Nov. 4, 2023, 5:31 a.m. OK GNU C++14 TESTS 2 0 0
231278678 Nishanth10 A Nov. 4, 2023, 5:16 a.m. OK GNU C++14 TESTS 2 0 0
231278531 zeroto A Nov. 4, 2023, 5:14 a.m. OK GNU C++14 TESTS 2 0 0
231281225 mayank9166 A Nov. 4, 2023, 5:44 a.m. OK GNU C++17 TESTS 2 0 0
231281499 khadyottakale A Nov. 4, 2023, 5:47 a.m. OK GNU C++17 TESTS 2 0 0
231281734 Spartan3002 A Nov. 4, 2023, 5:49 a.m. OK GNU C++17 TESTS 2 0 0
231281802 henauliumou A Nov. 4, 2023, 5:50 a.m. OK GNU C++17 TESTS 2 0 0
231282234 agniv123 A Nov. 4, 2023, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
231282237 shrimpballs A Nov. 4, 2023, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
231282254 manish1101 A Nov. 4, 2023, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
231282294 divye7461 A Nov. 4, 2023, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
231282837 SystemTesting A Nov. 4, 2023, 5:59 a.m. OK GNU C++17 TESTS 2 0 0
231282858 Code937 A Nov. 4, 2023, 5:59 a.m. OK GNU C++17 TESTS 2 0 0
231262590 long-long A Nov. 4, 2023, 1:36 a.m. OK GNU C++17 (64) TESTS 2 0 0
231277505 ramus A Nov. 4, 2023, 5:01 a.m. OK GNU C++17 (64) TESTS 2 0 0
231276149 tungsten_carbide A Nov. 4, 2023, 4:42 a.m. OK GNU C++17 (64) TESTS 2 0 0
231275309 yyxc_nasd A Nov. 4, 2023, 4:30 a.m. OK GNU C++17 (64) TESTS 2 0 0
231273481 xkcdjerry A Nov. 4, 2023, 4:03 a.m. OK GNU C++17 (64) TESTS 2 0 0
231270892 utkarshpra7856 A Nov. 4, 2023, 3:27 a.m. OK GNU C++17 (64) TESTS 2 0 0
231268961 SkySummer A Nov. 4, 2023, 3:04 a.m. OK GNU C++17 (64) TESTS 2 0 0
231267903 phantaihbl9102018 A Nov. 4, 2023, 2:50 a.m. OK GNU C++17 (64) TESTS 2 0 0
231267135 grass8sheep A Nov. 4, 2023, 2:39 a.m. OK GNU C++17 (64) TESTS 2 0 0
231266560 mistake12 A Nov. 4, 2023, 2:31 a.m. OK GNU C++17 (64) TESTS 2 0 0
231280853 Shivam-_- A Nov. 4, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 2 0 0
231281033 arsalan_cse786 A Nov. 4, 2023, 5:42 a.m. OK GNU C++20 (64) TESTS 2 0 0
231281205 singhmohak1604 A Nov. 4, 2023, 5:44 a.m. OK GNU C++20 (64) TESTS 2 0 0
231281270 weakweakweak A Nov. 4, 2023, 5:45 a.m. OK GNU C++20 (64) TESTS 2 0 0
231281279 Turag_130 A Nov. 4, 2023, 5:45 a.m. OK GNU C++20 (64) TESTS 2 0 0
231281317 anshuman_raj_20 A Nov. 4, 2023, 5:45 a.m. OK GNU C++20 (64) TESTS 2 0 0
231282271 Nabil34 A Nov. 4, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 2 0 0
231282577 Zhi_zI A Nov. 4, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 2 0 0
231282635 nurkeev-adil-019-2027 A Nov. 4, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 2 0 0
231283056 SwetabhSalampuria A Nov. 4, 2023, 6:01 a.m. OK GNU C++20 (64) TESTS 2 0 0
231215832 Atlasmoth A Nov. 3, 2023, 5:32 p.m. OK Haskell TESTS 2 15 0
231279509 foolcoder A Nov. 4, 2023, 5:26 a.m. OK Java 11 TESTS 2 155 0
231252226 Zakaria_Eysa A Nov. 3, 2023, 10:04 p.m. OK Java 11 TESTS 2 155 0
231204384 nvssdeepak1901 A Nov. 3, 2023, 4:33 p.m. OK Java 11 TESTS 2 155 0
231265318 rlubiniecki A Nov. 4, 2023, 2:14 a.m. OK Java 11 TESTS 2 156 0
231202687 skgupta28 A Nov. 3, 2023, 4:30 p.m. OK Java 11 TESTS 2 186 0
231271034 patorocks A Nov. 4, 2023, 3:29 a.m. OK Java 11 TESTS 2 186 0
231253172 VanshJ21 A Nov. 3, 2023, 10:22 p.m. OK Java 11 TESTS 2 186 0
231242313 Bhuvan_sai A Nov. 3, 2023, 8:04 p.m. OK Java 11 TESTS 2 186 0
231201540 prakhil_kumar A Nov. 3, 2023, 4:28 p.m. OK Java 11 TESTS 2 186 0
231201274 Sachin33 A Nov. 3, 2023, 4:27 p.m. OK Java 11 TESTS 2 186 0
231211175 Nagendravarma A Nov. 3, 2023, 5:02 p.m. OK Java 17 TESTS 2 139 614400
231202348 NitaiGupta2003 A Nov. 3, 2023, 4:29 p.m. OK Java 17 TESTS 2 155 716800
231201165 Kishan_143 A Nov. 3, 2023, 4:27 p.m. OK Java 17 TESTS 2 155 819200
231196110 klu_2100030819 A Nov. 3, 2023, 4:16 p.m. OK Java 17 TESTS 2 156 307200
231212783 dineshchandran311 A Nov. 3, 2023, 5:12 p.m. OK Java 17 TESTS 2 171 409600
231272070 ptycodes19 A Nov. 4, 2023, 3:43 a.m. OK Java 17 TESTS 2 171 409600
231202614 acsah_meduri A Nov. 3, 2023, 4:30 p.m. OK Java 17 TESTS 2 171 512000
231200197 Dibbu_19 A Nov. 3, 2023, 4:25 p.m. OK Java 17 TESTS 2 171 716800
231218631 Atlas A Nov. 3, 2023, 5:53 p.m. OK Java 17 TESTS 2 171 921600
231207649 madmankz A Nov. 3, 2023, 4:42 p.m. OK Java 17 TESTS 2 171 921600
231262923 Mahesh_kumar_godela A Nov. 4, 2023, 1:41 a.m. OK Java 21 TESTS 2 217 409600
231195936 CMRIT25_21R01A6666 A Nov. 3, 2023, 4:16 p.m. OK Java 21 TESTS 2 233 0
231196426 CMRIT25_21R01A0549 A Nov. 3, 2023, 4:17 p.m. OK Java 21 TESTS 2 233 1126400
231201372 surajkumar52 A Nov. 3, 2023, 4:27 p.m. OK Java 21 TESTS 2 264 0
231259504 yadavDipesh A Nov. 4, 2023, 12:48 a.m. OK Java 8 TESTS 2 77 0
231226982 Sumitsingh7 A Nov. 3, 2023, 6:34 p.m. OK Java 8 TESTS 2 77 6246400
231229914 vickythelonelinux A Nov. 3, 2023, 6:48 p.m. OK Java 8 TESTS 2 93 0
231203724 satwik1803 A Nov. 3, 2023, 4:32 p.m. OK Java 8 TESTS 2 108 0
231198974 satya_525 A Nov. 3, 2023, 4:23 p.m. OK Java 8 TESTS 2 108 0
231198011 2100030519 A Nov. 3, 2023, 4:21 p.m. OK Java 8 TESTS 2 109 0
231199426 vickythelonelinux A Nov. 3, 2023, 4:24 p.m. OK Java 8 TESTS 2 124 0
231223900 puriabhijit000 A Nov. 3, 2023, 6:20 p.m. OK Java 8 TESTS 2 124 0
231197714 lakshmimrudula A Nov. 3, 2023, 4:20 p.m. OK Java 8 TESTS 2 139 0
231273207 DK_Arya A Nov. 4, 2023, 4 a.m. OK Kotlin 1.7 TESTS 2 233 0
231282551 Lu_Kai A Nov. 4, 2023, 5:56 a.m. OK MS C++ 2017 TESTS 2 0 0
231255710 dhruvagrawal2205 A Nov. 3, 2023, 11:20 p.m. OK MS C++ 2017 TESTS 2 0 0
231238433 naman_017 A Nov. 3, 2023, 7:37 p.m. OK MS C++ 2017 TESTS 2 0 0
231205335 CholakIV_tgiek A Nov. 3, 2023, 4:34 p.m. OK MS C++ 2017 TESTS 2 0 0
231198073 OleksienkoDI_tgiek A Nov. 3, 2023, 4:21 p.m. OK MS C++ 2017 TESTS 2 0 0
231196617 sangamaryaveer A Nov. 3, 2023, 4:18 p.m. OK MS C++ 2017 TESTS 2 0 0
231202110 alone_gifted A Nov. 3, 2023, 4:29 p.m. OK MS C++ 2017 TESTS 2 15 0
231275911 Lu_Kai A Nov. 4, 2023, 4:38 a.m. OK MS C++ 2017 TESTS 2 15 0
231253941 Nuwo A Nov. 3, 2023, 10:38 p.m. OK MS C++ 2017 TESTS 2 15 0
231223876 samarthcode1 A Nov. 3, 2023, 6:19 p.m. OK MS C++ 2017 TESTS 2 15 0
231259356 lrx___ A Nov. 4, 2023, 12:45 a.m. OK PyPy 3 TESTS 2 46 0
231273024 letamquang220805 A Nov. 4, 2023, 3:57 a.m. OK PyPy 3 TESTS 2 62 0
231276696 Samyak_15 A Nov. 4, 2023, 4:50 a.m. OK PyPy 3 TESTS 2 77 0
231268599 deveshbedmutha A Nov. 4, 2023, 2:58 a.m. OK PyPy 3 TESTS 2 77 0
231211146 vjudge3 A Nov. 3, 2023, 5:02 p.m. OK PyPy 3 TESTS 2 77 0
231206274 CMRIT25_21R01A6638 A Nov. 3, 2023, 4:37 p.m. OK PyPy 3 TESTS 2 77 0
231196333 Pritesh_A0 A Nov. 3, 2023, 4:17 p.m. OK PyPy 3 TESTS 2 77 0
231229122 jvatsal0709 A Nov. 3, 2023, 6:44 p.m. OK PyPy 3 TESTS 2 92 0
231280955 nishchal22330 A Nov. 4, 2023, 5:42 a.m. OK PyPy 3 TESTS 2 93 0
231276031 MShah2003 A Nov. 4, 2023, 4:40 a.m. OK PyPy 3 TESTS 2 93 0
231219238 reijnnn A Nov. 3, 2023, 5:57 p.m. OK PyPy 3-64 TESTS 2 30 0
231281820 bessarab A Nov. 4, 2023, 5:50 a.m. OK PyPy 3-64 TESTS 2 31 0
231236446 rmr A Nov. 3, 2023, 7:25 p.m. OK PyPy 3-64 TESTS 2 31 0
231282141 Kaival A Nov. 4, 2023, 5:53 a.m. OK PyPy 3-64 TESTS 2 46 0
231277724 debashish_1 A Nov. 4, 2023, 5:04 a.m. OK PyPy 3-64 TESTS 2 46 0
231274671 Mr_Aflaton A Nov. 4, 2023, 4:20 a.m. OK PyPy 3-64 TESTS 2 46 0
231271756 booskako A Nov. 4, 2023, 3:39 a.m. OK PyPy 3-64 TESTS 2 46 0
231270280 Quick-One A Nov. 4, 2023, 3:19 a.m. OK PyPy 3-64 TESTS 2 46 0
231268771 harrylfoppa A Nov. 4, 2023, 3:01 a.m. OK PyPy 3-64 TESTS 2 46 0
231264808 MdAbedin A Nov. 4, 2023, 2:07 a.m. OK PyPy 3-64 TESTS 2 46 0
231279035 guguang A Nov. 4, 2023, 5:20 a.m. OK Python 3 TESTS 2 30 0
231235203 ebdollasign A Nov. 3, 2023, 7:18 p.m. OK Python 3 TESTS 2 30 0
231223824 TacoCC A Nov. 3, 2023, 6:19 p.m. OK Python 3 TESTS 2 30 0
231221339 Akhiroy A Nov. 3, 2023, 6:08 p.m. OK Python 3 TESTS 2 30 0
231211166 nk--3 A Nov. 3, 2023, 5:02 p.m. OK Python 3 TESTS 2 30 0
231208643 Anatoly12 A Nov. 3, 2023, 4:48 p.m. OK Python 3 TESTS 2 30 0
231204530 nirbhaysora A Nov. 3, 2023, 4:33 p.m. OK Python 3 TESTS 2 30 0
231199383 mishastrakhal A Nov. 3, 2023, 4:23 p.m. OK Python 3 TESTS 2 30 0
231197521 swetha_66h6 A Nov. 3, 2023, 4:20 p.m. OK Python 3 TESTS 2 30 0
231197329 TheMarioFan102 A Nov. 3, 2023, 4:19 p.m. OK Python 3 TESTS 2 30 0
231197597 1251514 A Nov. 3, 2023, 4:20 p.m. OK Rust 2021 TESTS 2 0 0
231249072 0npata A Nov. 3, 2023, 9:14 p.m. OK Rust 2021 TESTS 2 0 0

remove filters

Back to search problems