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 |
---|---|---|---|---|---|---|
1792 | Educational Codeforces Round 142 (Rated for Div. 2) | FINISHED | False | 7200 | 62695463 | Jan. 24, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21944 ) | B | Stand-up Comedian | PROGRAMMING | greedy math |
B"Eve is a beginner stand-up comedian. Her first show gathered a grand total of two spectators: Alice and Bob. Eve prepared a_1 + a_2 + a_3 + a_4 jokes to tell, grouped by their type: Initially, both spectators have their mood equal to 0 . When a spectator hears a joke he/she likes, his/her mood increases by 1 . When a spectator hears a joke he/she doesn't like, his/her mood decreases by 1 . If the mood of a spectator becomes negative (strictly below zero), he/she leaves. When someone leaves, Eve gets sad and ends the show. If no one leaves, and Eve is out of jokes, she also ends the show. Thus, Eve wants to arrange her jokes in such a way that the show lasts as long as possible. Help her to calculate the maximum number of jokes she can tell before the show ends. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The only line of each testcase contains four integers a_1, a_2, a_3, a_4 ( 0 <= a_1, a_2, a_3, a_4 <= 10^8 ; a_1 + a_2 + a_3 + a_4 ge 1 ) -- the number of jokes of each type Eve prepared. For each testcase, print a single integer -- the maximum number of jokes Eve can tell before at least one of the spectators leaves or before she runs out of jokes. In the first testcase, Eve only has jokes of the first type. Thus, there's no order to choose. She tells all her jokes, both Alice and Bob like them. Their mood becomes 5 . The show ends after Eve runs out of jokes. In the second testcase, Eve only has jokes of the fourth type. Thus, once again no order to choose. She tells a joke, and neither Alice, nor Bob likes it. Their mood decrease by one, becoming -1 . They both have negative mood, thus, both leave, and the show ends. In the third testcase, first, Eve tells both jokes of the first type. Both Alice and Bob has mood 2 . Then she can tell 2 jokes of the third type. Alice's mood becomes 0 . Bob's mood becomes 4 . Then 4 "... |
111835 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
190410633 | ksandr1v | B | Jan. 24, 2023, 5:36 p.m. | OK | C# 10 | TESTS | 4 | 46 | 2764800 | ||
190421827 | awhfahim | B | Jan. 24, 2023, 7:16 p.m. | OK | C# 10 | TESTS | 4 | 109 | 2969600 | ||
190429090 | nishnatadebnath | B | Jan. 24, 2023, 9:04 p.m. | OK | Clang++17 Diagnostics | TESTS | 4 | 280 | 0 | ||
190412147 | veleboks | B | Jan. 24, 2023, 5:47 p.m. | OK | FPC | TESTS | 4 | 46 | 102400 | ||
190428285 | wackyIndian | B | Jan. 24, 2023, 8:50 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 0 | ||
190442294 | Smallorange | B | Jan. 25, 2023, 3:29 a.m. | OK | GNU C11 | TESTS | 4 | 62 | 0 | ||
190417754 | Mahfuz_ | B | Jan. 24, 2023, 6:34 p.m. | OK | GNU C11 | TESTS | 4 | 62 | 0 | ||
190407001 | LazyRGuy | B | Jan. 24, 2023, 5:10 p.m. | OK | GNU C11 | TESTS | 4 | 77 | 614400 | ||
190434763 | ciciwang | B | Jan. 24, 2023, 11:41 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190448637 | csc111 | B | Jan. 25, 2023, 5:21 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190447201 | The_Exalter | B | Jan. 25, 2023, 4:59 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190444115 | Tinstapwg | B | Jan. 25, 2023, 4:07 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190439970 | csc111 | B | Jan. 25, 2023, 2:30 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190437416 | zhuomaple | B | Jan. 25, 2023, 1:19 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190437223 | mohen | B | Jan. 25, 2023, 1:11 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190436688 | karen0603 | B | Jan. 25, 2023, 12:53 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190434822 | ptraffic1919810 | B | Jan. 24, 2023, 11:43 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190448991 | Abhi1412 | B | Jan. 25, 2023, 5:26 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
190447820 | harish_2_0_0_2 | B | Jan. 25, 2023, 5:09 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190447733 | nilay__patel | B | Jan. 25, 2023, 5:07 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190447591 | Kartik020 | B | Jan. 25, 2023, 5:05 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190447552 | aakash_gorai | B | Jan. 25, 2023, 5:05 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190447168 | Mizbah01 | B | Jan. 25, 2023, 4:59 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190446673 | ZhihuiLiu | B | Jan. 25, 2023, 4:51 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190448420 | theCPguy | B | Jan. 25, 2023, 5:18 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190448544 | willwin4sure | B | Jan. 25, 2023, 5:20 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190448938 | MayankMaurya_007 | B | Jan. 25, 2023, 5:25 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190448198 | SHAON477 | B | Jan. 25, 2023, 5:14 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
190434603 | Superposition | B | Jan. 24, 2023, 11:36 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190446971 | try_target | B | Jan. 25, 2023, 4:55 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190444385 | CurryWOE | B | Jan. 25, 2023, 4:12 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190444125 | reet_khairha | B | Jan. 25, 2023, 4:07 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190441128 | Yra | B | Jan. 25, 2023, 3:01 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190440757 | kk_d | B | Jan. 25, 2023, 2:51 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190434677 | iLLusio | B | Jan. 24, 2023, 11:39 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190429198 | animay620 | B | Jan. 24, 2023, 9:06 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190426828 | _rAkib | B | Jan. 24, 2023, 8:26 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190423912 | Mohit. | B | Jan. 24, 2023, 7:40 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
190400348 | AdityaG | B | Jan. 24, 2023, 4:37 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 0 | 0 | ||
190425631 | TusharDtu | B | Jan. 24, 2023, 8:05 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 0 | 0 | ||
190441485 | Deeplearning- | B | Jan. 25, 2023, 3:09 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 0 | 0 | ||
190447487 | Uchiha_Ouda | B | Jan. 25, 2023, 5:04 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190447326 | MushfiqTalha | B | Jan. 25, 2023, 5:01 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190447135 | itachii | B | Jan. 25, 2023, 4:58 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190448689 | jeeva_24 | B | Jan. 25, 2023, 5:22 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190448074 | Mostafa__Fouad | B | Jan. 25, 2023, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190448068 | black_fyre | B | Jan. 25, 2023, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190447684 | RajabovaLola | B | Jan. 25, 2023, 5:07 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
190404436 | tesla59 | B | Jan. 24, 2023, 4:55 p.m. | OK | Go | TESTS | 4 | 31 | 1024000 | ||
190412504 | _samit_ | B | Jan. 24, 2023, 5:50 p.m. | OK | Go | TESTS | 4 | 1076 | 1536000 | ||
190405638 | Utkarsh99 | B | Jan. 24, 2023, 5:02 p.m. | OK | Java 11 | TESTS | 4 | 171 | 0 | ||
190405014 | habib_48 | B | Jan. 24, 2023, 4:58 p.m. | OK | Java 11 | TESTS | 4 | 171 | 0 | ||
190399084 | pushkar.lonkar21 | B | Jan. 24, 2023, 4:34 p.m. | OK | Java 11 | TESTS | 4 | 171 | 0 | ||
190444977 | pakkapapad | B | Jan. 25, 2023, 4:22 a.m. | OK | Java 11 | TESTS | 4 | 202 | 0 | ||
190451313 | vijender_8601 | B | Jan. 25, 2023, 5:58 a.m. | OK | Java 11 | TESTS | 157 | 233 | 0 | ||
190415714 | deepakanto | B | Jan. 24, 2023, 6:15 p.m. | OK | Java 11 | TESTS | 4 | 233 | 0 | ||
190430696 | k2100030084 | B | Jan. 24, 2023, 9:37 p.m. | OK | Java 11 | TESTS | 4 | 234 | 0 | ||
190407407 | Kempachi | B | Jan. 24, 2023, 5:13 p.m. | OK | Java 11 | TESTS | 4 | 234 | 0 | ||
190440375 | AndrewBJ | B | Jan. 25, 2023, 2:41 a.m. | OK | Java 11 | TESTS | 4 | 249 | 0 | ||
190418755 | SJH77 | B | Jan. 24, 2023, 6:43 p.m. | OK | Java 11 | TESTS | 4 | 249 | 0 | ||
190403061 | frey4 | B | Jan. 24, 2023, 4:49 p.m. | OK | Java 17 | TESTS | 4 | 171 | 0 | ||
190400172 | Black-Heart | B | Jan. 24, 2023, 4:36 p.m. | OK | Java 17 | TESTS | 4 | 186 | 0 | ||
190446944 | bleach__ | B | Jan. 25, 2023, 4:55 a.m. | OK | Java 17 | TESTS | 4 | 186 | 204800 | ||
190407234 | RammohanSharma | B | Jan. 24, 2023, 5:12 p.m. | OK | Java 17 | TESTS | 4 | 202 | 716800 | ||
190414216 | Black-Heart | B | Jan. 24, 2023, 6:03 p.m. | OK | Java 17 | TESTS | 4 | 248 | 0 | ||
190431447 | Mustela_Erminea | B | Jan. 24, 2023, 9:56 p.m. | OK | Java 17 | TESTS | 4 | 264 | 102400 | ||
190418006 | arpurush | B | Jan. 24, 2023, 6:36 p.m. | OK | Java 17 | TESTS | 4 | 280 | 0 | ||
190403522 | teraBhaiThugesh | B | Jan. 24, 2023, 4:51 p.m. | OK | Java 17 | TESTS | 4 | 280 | 204800 | ||
190400596 | rajashish914 | B | Jan. 24, 2023, 4:37 p.m. | OK | Java 17 | TESTS | 4 | 296 | 0 | ||
190399440 | aryan21520 | B | Jan. 24, 2023, 4:34 p.m. | OK | Java 17 | TESTS | 4 | 296 | 0 | ||
190428509 | raj_shahh | B | Jan. 24, 2023, 8:54 p.m. | OK | Java 8 | TESTS | 4 | 93 | 0 | ||
190424239 | __SSB__ | B | Jan. 24, 2023, 7:45 p.m. | OK | Java 8 | TESTS | 4 | 93 | 0 | ||
190420660 | yadavDipesh | B | Jan. 24, 2023, 7:03 p.m. | OK | Java 8 | TESTS | 4 | 108 | 0 | ||
190395560 | swarup_312 | B | Jan. 24, 2023, 4:28 p.m. | OK | Java 8 | TESTS | 4 | 108 | 0 | ||
190439119 | n0obie | B | Jan. 25, 2023, 2:09 a.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
190430407 | DylanSmith | B | Jan. 24, 2023, 9:30 p.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
190404657 | Swapniltri | B | Jan. 24, 2023, 4:57 p.m. | OK | Java 8 | TESTS | 4 | 124 | 0 | ||
190403641 | rahul_81 | B | Jan. 24, 2023, 4:51 p.m. | OK | Java 8 | TESTS | 4 | 140 | 0 | ||
190405128 | toufique_husein | B | Jan. 24, 2023, 4:59 p.m. | OK | Java 8 | TESTS | 4 | 171 | 0 | ||
190407766 | SecondThreadUltimate | B | Jan. 24, 2023, 5:15 p.m. | OK | Java 8 | TESTS | 4 | 234 | 0 | ||
190407231 | Krantzy | B | Jan. 24, 2023, 5:12 p.m. | OK | Kotlin 1.7 | TESTS | 4 | 514 | 20275200 | ||
190448843 | Yychen | B | Jan. 25, 2023, 5:24 a.m. | OK | MS C++ 2017 | TESTS | 4 | 31 | 0 | ||
190426766 | whiteReboot | B | Jan. 24, 2023, 8:25 p.m. | OK | MS C++ 2017 | TESTS | 4 | 31 | 0 | ||
190395923 | 4simb | B | Jan. 24, 2023, 4:29 p.m. | OK | MS C++ 2017 | TESTS | 4 | 46 | 102400 | ||
190413948 | Yuradi | B | Jan. 24, 2023, 6:01 p.m. | OK | MS C++ 2017 | TESTS | 4 | 62 | 0 | ||
190409195 | Spartan3002 | B | Jan. 24, 2023, 5:25 p.m. | OK | MS C++ 2017 | TESTS | 4 | 77 | 0 | ||
190398950 | hxhx7 | B | Jan. 24, 2023, 4:33 p.m. | OK | MS C++ 2017 | TESTS | 4 | 77 | 0 | ||
190450117 | Yychen | B | Jan. 25, 2023, 5:42 a.m. | OK | MS C++ 2017 | TESTS | 157 | 78 | 0 | ||
190449663 | Yychen | B | Jan. 25, 2023, 5:36 a.m. | OK | MS C++ 2017 | TESTS | 157 | 78 | 0 | ||
190449999 | Yychen | B | Jan. 25, 2023, 5:41 a.m. | OK | MS C++ 2017 | TESTS | 157 | 124 | 0 | ||
190443734 | chin_gis | B | Jan. 25, 2023, 3:59 a.m. | OK | PHP | TESTS | 4 | 78 | 0 | ||
190443192 | Liberator187 | B | Jan. 25, 2023, 3:47 a.m. | OK | PyPy 3 | TESTS | 4 | 170 | 7168000 | ||
190401632 | rajeshpenugonda | B | Jan. 24, 2023, 4:42 p.m. | OK | PyPy 3 | TESTS | 4 | 202 | 9830400 | ||
190427882 | uz2ee | B | Jan. 24, 2023, 8:43 p.m. | OK | PyPy 3 | TESTS | 4 | 248 | 9932800 | ||
190402283 | rajeshpenugonda | B | Jan. 24, 2023, 4:45 p.m. | OK | PyPy 3 | TESTS | 4 | 249 | 10035200 | ||
190402023 | rajeshpenugonda | B | Jan. 24, 2023, 4:44 p.m. | OK | PyPy 3 | TESTS | 4 | 249 | 10035200 | ||
190404595 | kunal_14s | B | Jan. 24, 2023, 4:56 p.m. | OK | PyPy 3 | TESTS | 4 | 311 | 8704000 | ||
190405701 | jinzew | B | Jan. 24, 2023, 5:02 p.m. | OK | PyPy 3 | TESTS | 4 | 311 | 8806400 | ||
190426914 | star-1ord | B | Jan. 24, 2023, 8:27 p.m. | OK | PyPy 3 | TESTS | 4 | 327 | 7782400 | ||
190405513 | jinzew | B | Jan. 24, 2023, 5:01 p.m. | OK | PyPy 3 | TESTS | 4 | 327 | 8806400 | ||
190430469 | tallisback | B | Jan. 24, 2023, 9:31 p.m. | OK | PyPy 3 | TESTS | 4 | 343 | 9523200 | ||
190425337 | Nabeel_Ismaeel | B | Jan. 24, 2023, 8:01 p.m. | OK | PyPy 3-64 | TESTS | 4 | 108 | 9011200 | ||
190408629 | hkwu6013 | B | Jan. 24, 2023, 5:21 p.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 9420800 | ||
190437786 | InariInDream | B | Jan. 25, 2023, 1:31 a.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 9728000 | ||
190436049 | pythonist_viking | B | Jan. 25, 2023, 12:30 a.m. | OK | PyPy 3-64 | TESTS | 4 | 124 | 5836800 | ||
190440001 | Youarenotgood | B | Jan. 25, 2023, 2:31 a.m. | OK | PyPy 3-64 | TESTS | 4 | 124 | 9625600 | ||
190428813 | zieve | B | Jan. 24, 2023, 8:59 p.m. | OK | PyPy 3-64 | TESTS | 4 | 124 | 10137600 | ||
190444792 | kit.24.20bcs055 | B | Jan. 25, 2023, 4:19 a.m. | OK | PyPy 3-64 | TESTS | 4 | 139 | 9932800 | ||
190430825 | welshman_11 | B | Jan. 24, 2023, 9:40 p.m. | OK | PyPy 3-64 | TESTS | 4 | 139 | 10137600 | ||
190425673 | A_G | B | Jan. 24, 2023, 8:06 p.m. | OK | PyPy 3-64 | TESTS | 4 | 139 | 10240000 | ||
190411686 | gesuta | B | Jan. 24, 2023, 5:44 p.m. | OK | PyPy 3-64 | TESTS | 4 | 155 | 9523200 | ||
190447170 | eugalt | B | Jan. 25, 2023, 4:59 a.m. | OK | Python 3 | TESTS | 4 | 77 | 512000 | ||
190438368 | sabbirahmeds877 | B | Jan. 25, 2023, 1:49 a.m. | OK | Python 3 | TESTS | 4 | 78 | 512000 | ||
190408670 | Alfa330 | B | Jan. 24, 2023, 5:21 p.m. | OK | Python 3 | TESTS | 4 | 93 | 307200 | ||
190440854 | Kimic | B | Jan. 25, 2023, 2:54 a.m. | OK | Python 3 | TESTS | 4 | 93 | 1228800 | ||
190417603 | kavorka | B | Jan. 24, 2023, 6:32 p.m. | OK | Python 3 | TESTS | 4 | 93 | 134963200 | ||
190448542 | AzikTuitkf | B | Jan. 25, 2023, 5:20 a.m. | OK | Python 3 | TESTS | 4 | 124 | 0 | ||
190448481 | AzikTuitkf | B | Jan. 25, 2023, 5:19 a.m. | OK | Python 3 | TESTS | 4 | 124 | 0 | ||
190414745 | therealkirito | B | Jan. 24, 2023, 6:07 p.m. | OK | Python 3 | TESTS | 4 | 124 | 0 | ||
190412559 | agrawal.24 | B | Jan. 24, 2023, 5:50 p.m. | OK | Python 3 | TESTS | 4 | 124 | 0 | ||
190401678 | iron_nicko | B | Jan. 24, 2023, 4:42 p.m. | OK | Python 3 | TESTS | 4 | 124 | 0 | ||
190425420 | Felerius | B | Jan. 24, 2023, 8:02 p.m. | OK | Rust 2021 | TESTS | 4 | 0 | 0 | ||
190409388 | cottoncotton | B | Jan. 24, 2023, 5:26 p.m. | OK | Rust 2021 | TESTS | 4 | 31 | 67276800 |
Back to search problems