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 |
---|---|---|---|---|---|---|
1849 | Educational Codeforces Round 152 (Rated for Div. 2) | FINISHED | False | 7200 | 46711463 | July 27, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 30095 ) | A | Morning Sandwich | PROGRAMMING | implementation math |
B"Monocarp always starts his morning with a good ol' sandwich. Sandwiches Monocarp makes always consist of bread, cheese and/or ham. A sandwich always follows the formula: So it always has bread on top and at the bottom, and it alternates between bread and filling, where filling is a slice of either cheese or ham. Each piece of bread and each slice of cheese or ham is called a layer. Today Monocarp woke up and discovered that he has b pieces of bread, c slices of cheese and h slices of ham. What is the maximum number of layers his morning sandwich can have? The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of testcases. Each testcase consists of three integers b, c and h ( 2 <= b <= 100 ; 1 <= c, h <= 100 ) -- the number of pieces of bread, slices of cheese and slices of ham, respectively. For each testcase, print a single integer -- the maximum number of layers Monocarp's morning sandwich can have. In the first testcase, Monocarp can arrange a sandwich with three layers: either a piece of bread, a slice of cheese and another piece of bread, or a piece of bread, a slice of ham and another piece of bread. In the second testcase, Monocarp has a lot of bread, but not too much filling. He can arrange a sandwich with four pieces of bread, one slice of cheese and two slices of ham. In the third testcase, it's the opposite -- Monocarp has a lot of filling, but not too much bread. He can arrange a sandwich with three pieces of bread and two slices of cheese, for example. "... |
118752 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
216016499 | bluemegane | A | July 27, 2023, 10:14 p.m. | OK | C# 8 | TESTS | 3 | 77 | 614400 | ||
216016591 | bluemegane | A | July 27, 2023, 10:16 p.m. | OK | C# 8 | TESTS | 3 | 108 | 204800 | ||
216004334 | PLUTO_o | A | July 27, 2023, 7:25 p.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 46 | 0 | ||
216019295 | duymao | A | July 27, 2023, 11:11 p.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 46 | 0 | ||
215990990 | mahatabsheikh5 | A | July 27, 2023, 5:26 p.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 46 | 0 | ||
215982167 | appalasaisumanth | A | July 27, 2023, 4:38 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
216005276 | Md.Ehsanul | A | July 27, 2023, 7:35 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
216006513 | introspective | A | July 27, 2023, 7:50 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
216007740 | thowfiqul_58 | A | July 27, 2023, 8:04 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
216041481 | shadabtanjeed | A | July 28, 2023, 4:49 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
215991249 | 796Anuj19 | A | July 27, 2023, 5:28 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
216035785 | Discretedata | A | July 28, 2023, 3:34 a.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
216040821 | Manish_04 | A | July 28, 2023, 4:40 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216038829 | PHENOMENALAB | A | July 28, 2023, 4:13 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216036681 | Grey_track | A | July 28, 2023, 3:46 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216033745 | Fantasyli | A | July 28, 2023, 3:06 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216032955 | CLOCKS_PER_SEC | A | July 28, 2023, 2:57 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216032723 | Be_Hard_Worker | A | July 28, 2023, 2:54 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216032547 | 2625215223 | A | July 28, 2023, 2:52 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216030115 | I_am_fine_Thank_you | A | July 28, 2023, 2:22 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216045112 | 0x0000 | A | July 28, 2023, 5:36 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216041067 | I_AK_CCF | A | July 28, 2023, 4:44 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
216042322 | wangyujie123 | A | July 28, 2023, 5:01 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216042144 | amanraj87 | A | July 28, 2023, 4:58 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216042022 | krishnadk8203 | A | July 28, 2023, 4:57 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216043613 | slug. | A | July 28, 2023, 5:17 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216043915 | pvcks | A | July 28, 2023, 5:20 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216044257 | jiz | A | July 28, 2023, 5:25 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216045815 | dk111 | A | July 28, 2023, 5:44 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216046411 | Nahid_NHB | A | July 28, 2023, 5:52 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216043526 | Donjo69 | A | July 28, 2023, 5:15 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216042617 | SADMAN | A | July 28, 2023, 5:05 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
216038734 | mostafasazid | A | July 28, 2023, 4:12 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216047239 | banxiaodou | A | July 28, 2023, 6:01 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216047001 | Alfa | A | July 28, 2023, 5:58 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216044796 | ShirosakiMieru | A | July 28, 2023, 5:32 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216044126 | prasanna2425 | A | July 28, 2023, 5:23 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216043869 | luogu_bot2 | A | July 28, 2023, 5:20 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216037307 | HarshiL_MalanI07 | A | July 28, 2023, 3:53 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216031830 | Sy_03 | A | July 28, 2023, 2:42 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216031667 | kuchibi | A | July 28, 2023, 2:41 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216028928 | TiagoPDS | A | July 28, 2023, 2:06 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
216046382 | INF_512 | A | July 28, 2023, 5:51 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216045632 | mahdi.hasnat | A | July 28, 2023, 5:42 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216045619 | sanhayu546 | A | July 28, 2023, 5:42 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216046644 | kl1dd | A | July 28, 2023, 5:54 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216046673 | Angooo | A | July 28, 2023, 5:55 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216046787 | Dabhi_Dipak | A | July 28, 2023, 5:56 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216046818 | ressoa | A | July 28, 2023, 5:56 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216046932 | Tahsina_Anjum_Tazin | A | July 28, 2023, 5:57 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216047184 | simp2.0 | A | July 28, 2023, 6 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216047283 | hyzatrq011010 | A | July 28, 2023, 6:01 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
216027168 | InHng | A | July 28, 2023, 1:41 a.m. | OK | Go | TESTS | 3 | 15 | 102400 | ||
216024795 | Cup_ | A | July 28, 2023, 1:07 a.m. | OK | Go | TESTS | 3 | 31 | 102400 | ||
216024999 | Tagigxo | A | July 28, 2023, 1:10 a.m. | OK | Go | TESTS | 3 | 46 | 102400 | ||
216024937 | neDormu | A | July 28, 2023, 1:09 a.m. | OK | Go | TESTS | 3 | 46 | 102400 | ||
216010895 | pakkapapad | A | July 27, 2023, 8:44 p.m. | OK | Java 11 | TESTS | 3 | 140 | 0 | ||
216026145 | karamkontar | A | July 28, 2023, 1:28 a.m. | OK | Java 11 | TESTS | 3 | 156 | 0 | ||
216044438 | sarvesh_bawari | A | July 28, 2023, 5:27 a.m. | OK | Java 11 | TESTS | 3 | 170 | 31129600 | ||
216034407 | InfinitePath | A | July 28, 2023, 3:15 a.m. | OK | Java 11 | TESTS | 3 | 186 | 40243200 | ||
216002093 | Kempachi | A | July 27, 2023, 7:01 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
215991127 | lucky1305 | A | July 27, 2023, 5:27 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
216041463 | dilip_2512 | A | July 28, 2023, 4:49 a.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
216023808 | man-ray | A | July 28, 2023, 12:51 a.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
216045763 | satabdigoswami87 | A | July 28, 2023, 5:44 a.m. | OK | Java 11 | TESTS | 3 | 218 | 0 | ||
215989699 | anvdub29 | A | July 27, 2023, 5:17 p.m. | OK | Java 11 | TESTS | 3 | 218 | 0 | ||
216014027 | woodyiiiiiii | A | July 27, 2023, 9:32 p.m. | OK | Java 17 | TESTS | 3 | 155 | 0 | ||
215987634 | Nagendravarma | A | July 27, 2023, 5:05 p.m. | OK | Java 17 | TESTS | 3 | 170 | 204800 | ||
216004942 | egor4444ik | A | July 27, 2023, 7:32 p.m. | OK | Java 17 | TESTS | 3 | 170 | 409600 | ||
216008974 | sm.20u10694 | A | July 27, 2023, 8:19 p.m. | OK | Java 17 | TESTS | 3 | 171 | 307200 | ||
216008487 | rated21 | A | July 27, 2023, 8:13 p.m. | OK | Java 17 | TESTS | 3 | 171 | 307200 | ||
216000178 | joeeeeeeeeee | A | July 27, 2023, 6:40 p.m. | OK | Java 17 | TESTS | 3 | 171 | 307200 | ||
216001208 | massvinod | A | July 27, 2023, 6:51 p.m. | OK | Java 17 | TESTS | 3 | 171 | 614400 | ||
215984444 | Abhi_The_Coder19 | A | July 27, 2023, 4:48 p.m. | OK | Java 17 | TESTS | 3 | 171 | 614400 | ||
215986154 | vanditkala | A | July 27, 2023, 4:55 p.m. | OK | Java 17 | TESTS | 3 | 202 | 512000 | ||
216000868 | yash_web3 | A | July 27, 2023, 6:48 p.m. | OK | Java 17 | TESTS | 3 | 202 | 716800 | ||
216037235 | kanumba | A | July 28, 2023, 3:52 a.m. | OK | Java 8 | TESTS | 3 | 92 | 0 | ||
216001113 | thisAhmedTaha | A | July 27, 2023, 6:50 p.m. | OK | Java 8 | TESTS | 3 | 92 | 0 | ||
215981796 | Sanat04 | A | July 27, 2023, 4:37 p.m. | OK | Java 8 | TESTS | 3 | 92 | 0 | ||
216042855 | Ask3421 | A | July 28, 2023, 5:07 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
215996954 | hamossa | A | July 27, 2023, 6:12 p.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | ||
216001699 | Sumitsingh7 | A | July 27, 2023, 6:57 p.m. | OK | Java 8 | TESTS | 3 | 108 | 5734400 | ||
216007896 | hamossa | A | July 27, 2023, 8:06 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
215999788 | Juhaied_nabid | A | July 27, 2023, 6:36 p.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
215990422 | hashVivek | A | July 27, 2023, 5:22 p.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
216000588 | Toosid | A | July 27, 2023, 6:45 p.m. | OK | Java 8 | TESTS | 3 | 140 | 0 | ||
215983529 | Krantzy | A | July 27, 2023, 4:44 p.m. | OK | Kotlin 1.7 | TESTS | 3 | 312 | 102400 | ||
216009426 | Dowtai | A | July 27, 2023, 8:25 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
215985785 | sahil.maji | A | July 27, 2023, 4:54 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
215983574 | prerna-rn | A | July 27, 2023, 4:44 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
215982196 | Zenocr735 | A | July 27, 2023, 4:38 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
216012940 | WalrusRamen21 | A | July 27, 2023, 9:15 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 2764800 | ||
215993317 | 0xROoT | A | July 27, 2023, 5:43 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 409600 | ||
216038838 | Rumen | A | July 28, 2023, 4:13 a.m. | OK | PyPy 3 | TESTS | 3 | 108 | 2048000 | ||
216013170 | WalrusRamen21 | A | July 27, 2023, 9:18 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 1638400 | ||
216029978 | xiamiantiaodajidan | A | July 28, 2023, 2:20 a.m. | OK | PyPy 3 | TESTS | 3 | 124 | 2764800 | ||
216042549 | U_quokka | A | July 28, 2023, 5:04 a.m. | OK | PyPy 3 | TESTS | 3 | 124 | 2969600 | ||
216033336 | andy0liang | A | July 28, 2023, 3:01 a.m. | OK | PyPy 3 | TESTS | 3 | 171 | 5324800 | ||
215988712 | AndreiZherder | A | July 27, 2023, 5:11 p.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 1740800 | ||
216046871 | Youarenotgood | A | July 28, 2023, 5:57 a.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 1843200 | ||
215999223 | khalit7 | A | July 27, 2023, 6:31 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 1843200 | ||
216018329 | Keval_78 | A | July 27, 2023, 10:52 p.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 132300800 | ||
216041047 | I_Am_That | A | July 28, 2023, 4:44 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1638400 | ||
215990509 | gardengnome | A | July 27, 2023, 5:23 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1740800 | ||
216017086 | MistaFlash | A | July 27, 2023, 10:25 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1843200 | ||
215982454 | injust | A | July 27, 2023, 4:39 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1843200 | ||
215985446 | adu_alt | A | July 27, 2023, 4:52 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 6246400 | ||
215988412 | NLastya | A | July 27, 2023, 5:09 p.m. | OK | PyPy 3-64 | TESTS | 3 | 92 | 3891200 | ||
216043274 | KuchuGopi | A | July 28, 2023, 5:12 a.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
216004870 | AkashPriyadarshi | A | July 27, 2023, 7:31 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
216001161 | Ospan.Bekarys | A | July 27, 2023, 6:51 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
215997306 | Ospan.Bekarys | A | July 27, 2023, 6:15 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
215995617 | adi2107 | A | July 27, 2023, 6 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | ||
216025001 | Israel.Orere | A | July 28, 2023, 1:10 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
216014834 | 2110040028_Rajan | A | July 27, 2023, 9:44 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
216014562 | ONLY_ANAS | A | July 27, 2023, 9:40 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
216006541 | pavikachaudhary | A | July 27, 2023, 7:50 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
216004368 | raina-pulkit | A | July 27, 2023, 7:25 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | ||
216016506 | 0x81 | A | July 27, 2023, 10:14 p.m. | OK | Ruby 3 | TESTS | 3 | 218 | 409600 | ||
215981878 | lollipopft | A | July 27, 2023, 4:38 p.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 |
Back to search problems