Codeforces Round 622 (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
1313 Codeforces Round 622 (Div. 2) FINISHED False 7200 154731263 Feb. 23, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15641 ) A Fast Food Restaurant PROGRAMMING brute force greedy implementation 900

B"Tired of boring office work, Denis decided to open a fast food restaurant. On the first day he made a portions of dumplings, b portions of cranberry juice and c pancakes with condensed milk. The peculiarity of Denis's restaurant is the procedure of ordering food. For each visitor Denis himself chooses a set of dishes that this visitor will receive. When doing so, Denis is guided by the following rules: What is the maximum number of visitors Denis can feed? The first line contains an integer t ( 1 <= t <= 500 ) -- the number of test cases to solve. Each of the remaining t lines contains integers a , b and c ( 0 <= q a, b, c <= q 10 ) -- the number of portions of dumplings, the number of portions of cranberry juice and the number of condensed milk pancakes Denis made. For each test case print a single integer -- the maximum number of visitors Denis can feed. In the first test case of the example, Denis can feed the first visitor with dumplings, give the second a portion of cranberry juice, and give the third visitor a portion of cranberry juice and a pancake with a condensed milk. In the second test case of the example, the restaurant Denis is not very promising: he can serve no customers. In the third test case of the example, Denise can serve four visitors. The first guest will receive a full lunch of dumplings, a portion of cranberry juice and a pancake with condensed milk. The second visitor will get only dumplings. The third guest will receive a pancake with condensed milk, and the fourth guest will receive a pancake and a portion of dumplings. Please note that Denis hasn't used all of the prepared products, but is unable to serve more visitors. "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71689195 gargkrishna128 A Feb. 23, 2020, 12:05 p.m. OK Clang++17 Diagnostics TESTS 5 31 0 900
71907309 vjudge5 A Feb. 26, 2020, 10:31 a.m. OK Clang++17 Diagnostics TESTS 5 46 0 900
71743947 ftiasch A Feb. 24, 2020, 5:02 a.m. OK D TESTS 5 15 0 900
71656732 daut-dlang A Feb. 23, 2020, 9:16 a.m. OK D TESTS 5 30 0 900
71663786 nanae1914 A Feb. 23, 2020, 9:42 a.m. OK D TESTS 5 46 0 900
71657470 ruban A Feb. 23, 2020, 9:18 a.m. OK Delphi TESTS 5 31 65126400 900
71752733 vjudge2 A Feb. 24, 2020, 8:50 a.m. OK FPC TESTS 5 15 0 900
71663376 ZZY729 A Feb. 23, 2020, 9:40 a.m. OK FPC TESTS 5 15 102400 900
71668222 PAG A Feb. 23, 2020, 9:58 a.m. OK FPC TESTS 5 30 0 900
71900563 Algari A Feb. 26, 2020, 7:39 a.m. OK GNU C11 TESTS 5 15 0 900
71870119 briber162 A Feb. 25, 2020, 3:58 p.m. OK GNU C11 TESTS 5 15 0 900
71842804 EDChui A Feb. 25, 2020, 8:04 a.m. OK GNU C11 TESTS 5 15 0 900
71724357 Suru09 A Feb. 23, 2020, 6:15 p.m. OK GNU C11 TESTS 5 15 0 900
71701303 rakesh_roy_plabon A Feb. 23, 2020, 3:46 p.m. OK GNU C11 TESTS 5 15 0 900
71700409 anonyman637 A Feb. 23, 2020, 3:29 p.m. OK GNU C11 TESTS 5 15 0 900
71683846 key.L A Feb. 23, 2020, 10:58 a.m. OK GNU C11 TESTS 5 15 0 900
71683143 hAsanKabid241 A Feb. 23, 2020, 10:56 a.m. OK GNU C11 TESTS 5 15 0 900
71679375 perseu13 A Feb. 23, 2020, 10:41 a.m. OK GNU C11 TESTS 5 15 0 900
71948820 tumbleweed A Feb. 27, 2020, 3:47 a.m. OK GNU C11 TESTS 5 15 0 900
71910990 yuzhechuan A Feb. 26, 2020, 11:44 a.m. OK GNU C++11 TESTS 5 15 0 900
71914373 hkxadpall A Feb. 26, 2020, 12:48 p.m. OK GNU C++11 TESTS 5 15 0 900
71916846 Inf_Voltage A Feb. 26, 2020, 1:33 p.m. OK GNU C++11 TESTS 5 15 0 900
71922299 zlczlc A Feb. 26, 2020, 3:09 p.m. OK GNU C++11 TESTS 5 15 0 900
71922486 vjudge4 A Feb. 26, 2020, 3:12 p.m. OK GNU C++11 TESTS 5 15 0 900
71924959 jovitre A Feb. 26, 2020, 3:55 p.m. OK GNU C++11 TESTS 5 15 0 900
71948784 Famvics A Feb. 27, 2020, 3:45 a.m. OK GNU C++11 TESTS 5 15 0 900
71949884 Zahir202 A Feb. 27, 2020, 4:26 a.m. OK GNU C++11 TESTS 5 15 0 900
71950678 YLWang A Feb. 27, 2020, 4:52 a.m. OK GNU C++11 TESTS 5 15 0 900
71965256 xuyoung A Feb. 27, 2020, 10:22 a.m. OK GNU C++11 TESTS 5 15 0 900
71968002 neckhill007 A Feb. 27, 2020, 11:20 a.m. OK GNU C++14 TESTS 5 15 0 900
71966926 johnnyalshanaa shadi_danhash A Feb. 27, 2020, 10:56 a.m. OK GNU C++14 TESTS 5 15 0 900
71965515 Leks360 A Feb. 27, 2020, 10:28 a.m. OK GNU C++14 TESTS 5 15 0 900
71963882 harsh639 A Feb. 27, 2020, 9:56 a.m. OK GNU C++14 TESTS 5 15 0 900
71960679 KaranJhaveri A Feb. 27, 2020, 8:53 a.m. OK GNU C++14 TESTS 5 15 0 900
71951503 ya_hossein A Feb. 27, 2020, 5:17 a.m. OK GNU C++14 TESTS 5 15 0 900
71950992 mjtai A Feb. 27, 2020, 5:01 a.m. OK GNU C++14 TESTS 5 15 0 900
71935638 DebdeepBhandari A Feb. 26, 2020, 7:20 p.m. OK GNU C++14 TESTS 5 15 0 900
71935560 monir82 A Feb. 26, 2020, 7:18 p.m. OK GNU C++14 TESTS 5 15 0 900
71931805 rahul_98 A Feb. 26, 2020, 5:58 p.m. OK GNU C++14 TESTS 5 15 0 900
71656134 NuradilK A Feb. 23, 2020, 9:15 a.m. OK GNU C++17 TESTS 5 0 0 900
71959276 laksh_9090 A Feb. 27, 2020, 8:24 a.m. OK GNU C++17 TESTS 5 15 0 900
71967256 defolaut A Feb. 27, 2020, 11:04 a.m. OK GNU C++17 TESTS 5 15 0 900
71965786 myvirtualworld A Feb. 27, 2020, 10:34 a.m. OK GNU C++17 TESTS 5 15 0 900
71961345 suda18304 A Feb. 27, 2020, 9:05 a.m. OK GNU C++17 TESTS 5 15 0 900
71954351 fsociety00 A Feb. 27, 2020, 6:31 a.m. OK GNU C++17 TESTS 5 15 0 900
71953598 sohankumarparida A Feb. 27, 2020, 6:14 a.m. OK GNU C++17 TESTS 5 15 0 900
71951875 Hugokung A Feb. 27, 2020, 5:28 a.m. OK GNU C++17 TESTS 5 15 0 900
71951332 MD_AATIF A Feb. 27, 2020, 5:12 a.m. OK GNU C++17 TESTS 5 15 0 900
71950413 Zuciso A Feb. 27, 2020, 4:44 a.m. OK GNU C++17 TESTS 5 15 0 900
71695944 AGris A Feb. 23, 2020, 2:05 p.m. OK Go TESTS 5 15 0 900
71657570 Jughead A Feb. 23, 2020, 9:19 a.m. OK Go TESTS 5 15 0 900
71696321 AGris A Feb. 23, 2020, 2:12 p.m. OK Go TESTS 5 30 0 900
71655554 synapse A Feb. 23, 2020, 9:13 a.m. OK Go TESTS 5 30 0 900
71915319 sayemk A Feb. 26, 2020, 1:06 p.m. OK Go TESTS 5 31 0 900
71662253 amarjeetanand A Feb. 23, 2020, 9:36 a.m. OK Go TESTS 5 31 0 900
71658287 snow_bear_328 A Feb. 23, 2020, 9:21 a.m. OK Go TESTS 5 31 0 900
71658209 ontake A Feb. 23, 2020, 9:21 a.m. OK Go TESTS 5 31 0 900
71655041 u1s1reallycai A Feb. 23, 2020, 9:11 a.m. OK Go TESTS 5 31 0 900
71866729 Russell_Emerine A Feb. 25, 2020, 3:01 p.m. OK Haskell TESTS 5 31 102400 900
71699469 Obroten54 A Feb. 23, 2020, 3:12 p.m. OK Java 11 TESTS 5 156 0 900
71654878 TheSawan A Feb. 23, 2020, 9:11 a.m. OK Java 11 TESTS 5 170 0 900
71834034 Leewings A Feb. 25, 2020, 4:37 a.m. OK Java 11 TESTS 5 171 0 900
71732372 Shankha_Shubhra_Sanyal A Feb. 23, 2020, 8:36 p.m. OK Java 11 TESTS 5 171 0 900
71701650 Obroten54 A Feb. 23, 2020, 3:52 p.m. OK Java 11 TESTS 5 171 0 900
71701124 pennyIsLove A Feb. 23, 2020, 3:43 p.m. OK Java 11 TESTS 5 171 0 900
71693527 abhi123valani A Feb. 23, 2020, 1:20 p.m. OK Java 11 TESTS 5 171 0 900
71690265 AbdallahArafa A Feb. 23, 2020, 12:23 p.m. OK Java 11 TESTS 5 171 0 900
71659253 nick_301 A Feb. 23, 2020, 9:25 a.m. OK Java 11 TESTS 5 171 0 900
71661097 pixel7367 A Feb. 23, 2020, 9:32 a.m. OK Java 11 TESTS 5 186 0 900
71697249 Shaman_King A Feb. 23, 2020, 2:29 p.m. OK Java 8 TESTS 5 93 0 900
71661626 Hardikkumar_Katakiya A Feb. 23, 2020, 9:34 a.m. OK Java 8 TESTS 5 93 0 900
71660920 Modi_sarkar A Feb. 23, 2020, 9:31 a.m. OK Java 8 TESTS 5 93 0 900
71657248 In_The_Name_Of_Love A Feb. 23, 2020, 9:18 a.m. OK Java 8 TESTS 5 93 0 900
71656772 jaynils A Feb. 23, 2020, 9:16 a.m. OK Java 8 TESTS 5 93 0 900
71655648 Agnimandur A Feb. 23, 2020, 9:13 a.m. OK Java 8 TESTS 5 93 0 900
71655615 procrastinate7 A Feb. 23, 2020, 9:13 a.m. OK Java 8 TESTS 5 93 0 900
71743061 di_halt A Feb. 24, 2020, 4:32 a.m. OK Java 8 TESTS 5 108 0 900
71715530 formalist A Feb. 23, 2020, 5:13 p.m. OK Java 8 TESTS 5 108 0 900
71687044 Aman_23_Gupta A Feb. 23, 2020, 11:35 a.m. OK Java 8 TESTS 5 108 0 900
71856124 pseudonimoX A Feb. 25, 2020, 12:19 p.m. OK JavaScript TESTS 5 31 307200 900
71855852 pseudonimoX A Feb. 25, 2020, 12:15 p.m. OK JavaScript TESTS 5 31 307200 900
71855650 pseudonimoX A Feb. 25, 2020, 12:12 p.m. OK JavaScript TESTS 5 31 307200 900
71699577 pseudonimoX A Feb. 23, 2020, 3:14 p.m. OK JavaScript TESTS 5 31 307200 900
71658695 watarimaycry2 A Feb. 23, 2020, 9:23 a.m. OK JavaScript TESTS 5 31 307200 900
71699505 pseudonimoX A Feb. 23, 2020, 3:13 p.m. OK JavaScript TESTS 5 31 409600 900
71854287 misclicked A Feb. 25, 2020, 11:50 a.m. OK JavaScript TESTS 5 46 307200 900
71661455 vokesus A Feb. 23, 2020, 9:33 a.m. OK JavaScript TESTS 5 46 307200 900
71666715 SlavaG A Feb. 23, 2020, 9:52 a.m. OK Kotlin TESTS 5 124 614400 900
71756163 Spheniscine A Feb. 24, 2020, 10:04 a.m. OK Kotlin TESTS 5 140 819200 900
71657133 fatwizard2020 A Feb. 23, 2020, 9:17 a.m. OK Kotlin TESTS 5 155 0 900
71659257 szfck A Feb. 23, 2020, 9:25 a.m. OK Kotlin TESTS 5 155 204800 900
71732009 n.coder A Feb. 23, 2020, 8:27 p.m. OK Kotlin TESTS 5 155 1228800 900
71660048 strelas A Feb. 23, 2020, 9:28 a.m. OK Kotlin TESTS 5 170 204800 900
71659320 Actimel A Feb. 23, 2020, 9:25 a.m. OK Kotlin TESTS 5 171 1126400 900
71659630 seirion A Feb. 23, 2020, 9:26 a.m. OK Kotlin TESTS 5 171 1126400 900
71655014 koboshi A Feb. 23, 2020, 9:11 a.m. OK Kotlin TESTS 5 171 1126400 900
71657801 nopopon A Feb. 23, 2020, 9:20 a.m. OK Kotlin TESTS 5 171 1126400 900
71725738 htspur A Feb. 23, 2020, 6:25 p.m. OK Mono C# TESTS 5 46 0 900
71656498 T-D-K A Feb. 23, 2020, 9:16 a.m. OK Mono C# TESTS 5 46 0 900
71687585 AsadulloProgrammist A Feb. 23, 2020, 11:40 a.m. OK Mono C# TESTS 5 46 0 900
71659486 Anastasiya_Andreevna A Feb. 23, 2020, 9:26 a.m. OK Mono C# TESTS 5 46 0 900
71658050 mban259 A Feb. 23, 2020, 9:20 a.m. OK Mono C# TESTS 5 46 307200 900
71672496 igormaslov123 A Feb. 23, 2020, 10:13 a.m. OK Mono C# TESTS 5 46 3686400 900
71722566 plasma-effect A Feb. 23, 2020, 6:02 p.m. OK Mono C# TESTS 5 46 3686400 900
71658594 eSeF_ A Feb. 23, 2020, 9:22 a.m. OK Mono C# TESTS 5 61 102400 900
71664295 ansergeyg A Feb. 23, 2020, 9:43 a.m. OK Mono C# TESTS 5 62 0 900
71671449 peterc A Feb. 23, 2020, 10:10 a.m. OK Mono C# TESTS 5 62 102400 900
71751062 vjudge2 A Feb. 24, 2020, 8:10 a.m. OK MS C++ TESTS 5 15 0 900
71664172 jaispa A Feb. 23, 2020, 9:43 a.m. OK MS C++ TESTS 5 15 0 900
71661236 Steven0504 A Feb. 23, 2020, 9:32 a.m. OK MS C++ TESTS 5 15 0 900
71848411 vjudge3 A Feb. 25, 2020, 10:01 a.m. OK MS C++ TESTS 5 15 0 900
71846075 vjudge1 A Feb. 25, 2020, 9:15 a.m. OK MS C++ TESTS 5 15 0 900
71889598 vjudge5 A Feb. 26, 2020, 1:06 a.m. OK MS C++ TESTS 5 30 0 900
71969271 vjudge4 A Feb. 27, 2020, 11:45 a.m. OK MS C++ TESTS 5 30 0 900
71969919 vjudge1 A Feb. 27, 2020, 11:57 a.m. OK MS C++ TESTS 5 30 0 900
71833698 849145427 A Feb. 25, 2020, 4:27 a.m. OK MS C++ TESTS 5 30 0 900
71846898 vjudge2 A Feb. 25, 2020, 9:31 a.m. OK MS C++ TESTS 5 30 0 900
71665650 Alpaca00 A Feb. 23, 2020, 9:48 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71829530 suun A Feb. 25, 2020, 1:47 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71805521 Yomapeed A Feb. 24, 2020, 4:19 p.m. OK MS C++ 2017 TESTS 5 15 0 900
71744601 registuv A Feb. 24, 2020, 5:23 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71689016 salehsargolzaee A Feb. 23, 2020, 12:02 p.m. OK MS C++ 2017 TESTS 5 15 0 900
71667796 60D9 A Feb. 23, 2020, 9:56 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71664531 Michka A Feb. 23, 2020, 9:44 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71662201 Ni123 A Feb. 23, 2020, 9:36 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71661933 jianqi777 A Feb. 23, 2020, 9:35 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71660017 Zhora_.004 A Feb. 23, 2020, 9:28 a.m. OK MS C++ 2017 TESTS 5 15 0 900
71661293 badawhite A Feb. 23, 2020, 9:32 a.m. OK Node.js TESTS 5 155 1433600 900
71662105 sanori A Feb. 23, 2020, 9:35 a.m. OK Node.js TESTS 5 171 1331200 900
71656711 denchik007orel57 A Feb. 23, 2020, 9:16 a.m. OK PascalABC.NET TESTS 5 327 0 900
71656124 rsFalse A Feb. 23, 2020, 9:14 a.m. OK Perl TESTS 5 31 0 900
71666442 yoralbayev A Feb. 23, 2020, 9:51 a.m. OK PHP TESTS 5 31 0 900
71754169 mayakin A Feb. 24, 2020, 9:21 a.m. OK PHP TESTS 5 46 409600 900
71658662 Mukundan314 A Feb. 23, 2020, 9:23 a.m. OK PyPy 2 TESTS 5 124 716800 900
71655413 Pyar.Mahobat.Dhoka.Hai A Feb. 23, 2020, 9:12 a.m. OK PyPy 2 TESTS 5 171 1843200 900
71654993 akifpatel A Feb. 23, 2020, 9:11 a.m. OK PyPy 2 TESTS 5 186 3276800 900
71659926 yamatoumi A Feb. 23, 2020, 9:27 a.m. OK PyPy 2 TESTS 5 187 1945600 900
71689295 shehebe A Feb. 23, 2020, 12:07 p.m. OK PyPy 2 TESTS 5 187 2048000 900
71659813 raj1307 A Feb. 23, 2020, 9:27 a.m. OK PyPy 2 TESTS 5 998 9318400 900
71656110 mitribunskiy A Feb. 23, 2020, 9:14 a.m. OK PyPy 3 TESTS 5 124 1536000 900
71656129 cftt A Feb. 23, 2020, 9:15 a.m. OK PyPy 3 TESTS 5 139 0 900
71690319 PS41 A Feb. 23, 2020, 12:24 p.m. OK PyPy 3 TESTS 5 139 1536000 900
71656576 chkdmin A Feb. 23, 2020, 9:16 a.m. OK PyPy 3 TESTS 5 140 0 900
71955762 neweekoff A Feb. 27, 2020, 7:02 a.m. OK PyPy 3 TESTS 5 140 1331200 900
71657550 jekaqqq A Feb. 23, 2020, 9:19 a.m. OK PyPy 3 TESTS 5 140 1331200 900
71668672 marcus.aure A Feb. 23, 2020, 9:59 a.m. OK PyPy 3 TESTS 5 140 1433600 900
71665608 KPK123123 A Feb. 23, 2020, 9:48 a.m. OK PyPy 3 TESTS 5 140 1433600 900
71658197 ashuanand A Feb. 23, 2020, 9:21 a.m. OK PyPy 3 TESTS 5 140 1433600 900
71656154 vaibhavsarda A Feb. 23, 2020, 9:15 a.m. OK PyPy 3 TESTS 5 140 1433600 900
71734566 elistark A Feb. 23, 2020, 9:52 p.m. OK Python 2 TESTS 5 171 0 900
71691844 quark7993 A Feb. 23, 2020, 12:50 p.m. OK Python 2 TESTS 5 171 0 900
71669531 elistark A Feb. 23, 2020, 10:03 a.m. OK Python 2 TESTS 5 171 0 900
71658230 ComptineDunAutreEte A Feb. 23, 2020, 9:21 a.m. OK Python 2 TESTS 5 171 0 900
71669162 Mike10 A Feb. 23, 2020, 10:01 a.m. OK Python 2 TESTS 5 187 0 900
71655010 ashashwat A Feb. 23, 2020, 9:11 a.m. OK Python 2 TESTS 5 249 5324800 900
71948782 KA_Rma A Feb. 27, 2020, 3:45 a.m. OK Python 3 TESTS 5 93 0 900
71657166 Shee11 A Feb. 23, 2020, 9:18 a.m. OK Python 3 TESTS 5 93 0 900
71951819 Bashlogan A Feb. 27, 2020, 5:27 a.m. OK Python 3 TESTS 5 93 307200 900
71935718 orailly A Feb. 26, 2020, 7:22 p.m. OK Python 3 TESTS 5 93 307200 900
71758501 CYL010718 A Feb. 24, 2020, 10:56 a.m. OK Python 3 TESTS 5 93 307200 900
71717943 asif0228 A Feb. 23, 2020, 5:29 p.m. OK Python 3 TESTS 5 93 307200 900
71702288 kaminoikari A Feb. 23, 2020, 4:06 p.m. OK Python 3 TESTS 5 93 307200 900
71660403 meteorexx A Feb. 23, 2020, 9:29 a.m. OK Python 3 TESTS 5 93 307200 900
71660196 adkosmos A Feb. 23, 2020, 9:28 a.m. OK Python 3 TESTS 5 93 307200 900
71660019 Code__Addict A Feb. 23, 2020, 9:28 a.m. OK Python 3 TESTS 5 93 307200 900
71658202 simanman A Feb. 23, 2020, 9:21 a.m. OK Ruby TESTS 5 62 0 900
71655749 sheep0x A Feb. 23, 2020, 9:13 a.m. OK Ruby TESTS 5 62 0 900
71666805 wonda_tea_coffee A Feb. 23, 2020, 9:53 a.m. OK Ruby TESTS 5 62 102400 900
71656143 fshuto A Feb. 23, 2020, 9:15 a.m. OK Ruby TESTS 5 77 0 900
71835511 clearlycloudy A Feb. 25, 2020, 5:19 a.m. OK Rust TESTS 5 15 102400 900
71672346 toterpinguin A Feb. 23, 2020, 10:13 a.m. OK Rust TESTS 5 30 0 900
71659562 akiradeveloper A Feb. 23, 2020, 9:26 a.m. OK Rust TESTS 5 30 204800 900
71658947 sansen A Feb. 23, 2020, 9:24 a.m. OK Rust TESTS 5 31 0 900
71791712 Lvl999Noob A Feb. 24, 2020, 3:26 p.m. OK Rust TESTS 5 46 0 900
71661557 myomyomyo A Feb. 23, 2020, 9:33 a.m. OK Rust TESTS 5 46 0 900
71655040 terraformer A Feb. 23, 2020, 9:11 a.m. OK Rust TESTS 5 46 0 900
71659971 togatoga A Feb. 23, 2020, 9:27 a.m. OK Rust TESTS 5 46 204800 900
71935567 myduomilia A Feb. 26, 2020, 7:18 p.m. OK Rust TESTS 5 374 0 900
71935382 myduomilia A Feb. 26, 2020, 7:14 p.m. OK Rust TESTS 5 390 0 900

remove filters

Back to search problems