Educational Codeforces Round 89 (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
1366 Educational Codeforces Round 89 (Rated for Div. 2) FINISHED False 7200 139937099 June 11, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30325 ) A Shovels and Swords PROGRAMMING binary search greedy math

B"Polycarp plays a well-known computer game (we won't mention its name). In this game, he can craft tools of two types -- shovels and swords. To craft a shovel, Polycarp spends two sticks and one diamond; to craft a sword, Polycarp spends two diamonds and one stick. Each tool can be sold for exactly one emerald. How many emeralds can Polycarp earn, if he has a sticks and b diamonds? The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. The only line of each test case contains two integers a and b ( 0 <= a, b <= 10^9 ) -- the number of sticks and the number of diamonds, respectively. For each test case print one integer -- the maximum number of emeralds Polycarp can earn. In the first test case Polycarp can earn two emeralds as follows: craft one sword and one shovel. In the second test case Polycarp does not have any diamonds, so he cannot craft anything. "...

Tutorials

Educational Codeforces Round 89 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
83477759 ju1110 A June 11, 2020, 7:28 p.m. OK Clang++17 Diagnostics TESTS 10 46 0
83477256 ju1110 A June 11, 2020, 7:19 p.m. OK Clang++17 Diagnostics TESTS 10 62 0
83474413 archikag5 A June 11, 2020, 6:36 p.m. OK GNU C11 TESTS 10 15 0
83529125 priyankajainmodi A June 12, 2020, 12:17 p.m. OK GNU C11 TESTS 10 15 0
83534442 Sau_rav A June 12, 2020, 1:25 p.m. OK GNU C11 TESTS 10 15 0
83538553 lifers A June 12, 2020, 2:16 p.m. OK GNU C11 TESTS 10 15 0
83544041 ShofiqurRahman A June 12, 2020, 3:18 p.m. OK GNU C11 TESTS 10 15 0
83571652 b180018 A June 13, 2020, 2:24 a.m. OK GNU C11 TESTS 10 15 0
83465814 Himelcse005 A June 11, 2020, 5:04 p.m. OK GNU C11 TESTS 10 15 0
83465279 ceamin_cste A June 11, 2020, 4:59 p.m. OK GNU C11 TESTS 10 15 0
83467644 sharx123 A June 11, 2020, 5:20 p.m. OK GNU C11 TESTS 10 15 0
83470009 msakib A June 11, 2020, 5:44 p.m. OK GNU C11 TESTS 10 15 0
83549848 31901179 A June 12, 2020, 5:16 p.m. OK GNU C++11 TESTS 10 15 0
83540958 tiger0132 A June 12, 2020, 2:43 p.m. OK GNU C++11 TESTS 10 15 0
83536164 vjudge2 A June 12, 2020, 1:47 p.m. OK GNU C++11 TESTS 10 15 0
83571960 yz6205 A June 13, 2020, 2:34 a.m. OK GNU C++11 TESTS 10 15 0
83571935 harisaran A June 13, 2020, 2:33 a.m. OK GNU C++11 TESTS 10 15 0
83570398 dongyeguiwu00 A June 13, 2020, 1:37 a.m. OK GNU C++11 TESTS 10 15 0
83570239 exopeng A June 13, 2020, 1:29 a.m. OK GNU C++11 TESTS 10 15 0
83569505 Neeraj9436 A June 13, 2020, 12:51 a.m. OK GNU C++11 TESTS 10 15 0
83558779 T.a.c.h.y.o.n A June 12, 2020, 7:24 p.m. OK GNU C++11 TESTS 10 15 0
83557594 vjudge3 A June 12, 2020, 7:06 p.m. OK GNU C++11 TESTS 10 15 0
83547156 A.Rishabh.A A June 12, 2020, 3:55 p.m. OK GNU C++14 TESTS 10 15 0
83563011 omar_the_juice_boi A June 12, 2020, 8:45 p.m. OK GNU C++14 TESTS 10 15 0
83569445 Willem A June 13, 2020, 12:48 a.m. OK GNU C++14 TESTS 10 15 0
83536322 dhritishman22 A June 12, 2020, 1:49 p.m. OK GNU C++14 TESTS 10 15 0
83527044 Xtruong.cpse. A June 12, 2020, 11:49 a.m. OK GNU C++14 TESTS 10 15 0
83510480 avinash_1506 A June 12, 2020, 8:07 a.m. OK GNU C++14 TESTS 10 15 0
83507698 Urek A June 12, 2020, 7:27 a.m. OK GNU C++14 TESTS 10 15 0
83507442 samrat_m A June 12, 2020, 7:24 a.m. OK GNU C++14 TESTS 10 15 0
83503077 justanotherlad A June 12, 2020, 6:19 a.m. OK GNU C++14 TESTS 10 15 0
83500536 saurav1717 A June 12, 2020, 5:40 a.m. OK GNU C++14 TESTS 10 15 0
83548008 matheus_aguilar A June 12, 2020, 4:05 p.m. OK GNU C++17 TESTS 10 15 0
83563808 brkdnmz A June 12, 2020, 9:04 p.m. OK GNU C++17 TESTS 10 15 0
83561280 sktt1Faker A June 12, 2020, 8:10 p.m. OK GNU C++17 TESTS 10 15 0
83555458 zean_7 A June 12, 2020, 6:34 p.m. OK GNU C++17 TESTS 10 15 0
83550487 Leonardo16 A June 12, 2020, 5:25 p.m. OK GNU C++17 TESTS 10 15 0
83548179 yujunheng A June 12, 2020, 4:07 p.m. OK GNU C++17 TESTS 10 15 0
83536693 se1ka2 A June 12, 2020, 1:54 p.m. OK GNU C++17 TESTS 10 15 0
83526530 sauravraj123 A June 12, 2020, 11:43 a.m. OK GNU C++17 TESTS 10 15 0
83525816 cjnwq A June 12, 2020, 11:34 a.m. OK GNU C++17 TESTS 10 15 0
83515874 akshayrathi2000 A June 12, 2020, 9:23 a.m. OK GNU C++17 TESTS 10 15 0
83514276 aeiou1 A June 12, 2020, 9 a.m. OK GNU C++17 (64) TESTS 10 15 0
83519981 tiketiskte_love_wsq A June 12, 2020, 10:19 a.m. OK GNU C++17 (64) TESTS 10 15 0
83520702 Bekh A June 12, 2020, 10:28 a.m. OK GNU C++17 (64) TESTS 10 15 0
83527273 Bazigar A June 12, 2020, 11:52 a.m. OK GNU C++17 (64) TESTS 10 15 0
83530164 zjsdut A June 12, 2020, 12:30 p.m. OK GNU C++17 (64) TESTS 10 15 0
83530435 Arif19 A June 12, 2020, 12:34 p.m. OK GNU C++17 (64) TESTS 10 15 0
83536354 menna_tallah A June 12, 2020, 1:49 p.m. OK GNU C++17 (64) TESTS 10 15 0
83545332 hltk A June 12, 2020, 3:33 p.m. OK GNU C++17 (64) TESTS 10 15 0
83552755 Udoy_Das A June 12, 2020, 5:57 p.m. OK GNU C++17 (64) TESTS 10 15 0
83553538 agarwala2512 A June 12, 2020, 6:08 p.m. OK GNU C++17 (64) TESTS 10 15 0
83490596 synapse A June 12, 2020, 2:15 a.m. OK Go TESTS 10 31 0
83467027 takezawa A June 11, 2020, 5:14 p.m. OK Go TESTS 10 31 0
83511598 maguroguma A June 12, 2020, 8:22 a.m. OK Go TESTS 10 46 102400
83502235 maguroguma A June 12, 2020, 6:05 a.m. OK Go TESTS 10 46 102400
83490692 synapse A June 12, 2020, 2:18 a.m. OK Go TESTS 10 93 0
83463645 adityasharma A June 11, 2020, 4:49 p.m. OK Go TESTS 10 93 0
83444579 minimario A June 11, 2020, 4:05 p.m. OK Haskell TESTS 10 15 102400
83530788 Omar73 A June 12, 2020, 12:38 p.m. OK Java 11 TESTS 10 156 0
83526836 jakejase2 A June 12, 2020, 11:47 a.m. OK Java 11 TESTS 10 170 0
83550531 amit_chas A June 12, 2020, 5:26 p.m. OK Java 11 TESTS 10 171 0
83529777 nickleoden299 A June 12, 2020, 12:25 p.m. OK Java 11 TESTS 10 171 0
83462287 pgupta9830 A June 11, 2020, 4:42 p.m. OK Java 11 TESTS 10 171 0
83453355 Oopsimbad A June 11, 2020, 4:23 p.m. OK Java 11 TESTS 10 171 0
83445154 noahlewis.ca A June 11, 2020, 4:06 p.m. OK Java 11 TESTS 10 171 0
83540385 Raj9400 A June 12, 2020, 2:36 p.m. OK Java 11 TESTS 10 186 0
83540180 arnabdey A June 12, 2020, 2:34 p.m. OK Java 11 TESTS 10 186 0
83477961 hariomch A June 11, 2020, 7:33 p.m. OK Java 11 TESTS 10 186 0
83535549 new_thread A June 12, 2020, 1:39 p.m. OK Java 8 TESTS 10 93 0
83492910 Manan8686 A June 12, 2020, 3:09 a.m. OK Java 8 TESTS 10 93 0
83553898 StayAwayFromBitches A June 12, 2020, 6:13 p.m. OK Java 8 TESTS 10 108 0
83474005 mei_hu_don A June 11, 2020, 6:31 p.m. OK Java 8 TESTS 10 108 0
83471416 desp__beginner A June 11, 2020, 6 p.m. OK Java 8 TESTS 10 108 0
83466928 rgupta917 A June 11, 2020, 5:13 p.m. OK Java 8 TESTS 10 108 0
83462978 mayankarora21 A June 11, 2020, 4:45 p.m. OK Java 8 TESTS 10 108 0
83461450 masterbios A June 11, 2020, 4:38 p.m. OK Java 8 TESTS 10 108 0
83562445 Amazed A June 12, 2020, 8:33 p.m. OK Java 8 TESTS 10 109 0
83537526 shojin_pro A June 12, 2020, 2:04 p.m. OK Java 8 TESTS 10 109 0
83486015 sylvyrfysh A June 11, 2020, 11:13 p.m. OK Kotlin TESTS 10 109 0
83460066 Kap_Knight A June 11, 2020, 4:34 p.m. OK Kotlin TESTS 10 139 0
83497752 BugLeave A June 12, 2020, 4:54 a.m. OK Kotlin TESTS 10 140 0
83489804 Spheniscine A June 12, 2020, 1:47 a.m. OK Kotlin TESTS 10 140 0
83566840 RI7 A June 12, 2020, 10:42 p.m. OK Kotlin TESTS 10 140 204800
83521515 whiter4bbit A June 12, 2020, 10:38 a.m. OK Kotlin TESTS 10 155 0
83496409 Natsuiro_Matsuri A June 12, 2020, 4:30 a.m. OK Kotlin TESTS 10 155 0
83449473 abdukodir A June 11, 2020, 4:15 p.m. OK Kotlin TESTS 10 171 10137600
83446006 wbars A June 11, 2020, 4:08 p.m. OK Kotlin TESTS 10 218 0
83448697 igormaslov123 A June 11, 2020, 4:14 p.m. OK Mono C# TESTS 10 62 204800
83460079 SvetlinkA A June 11, 2020, 4:34 p.m. OK Mono C# TESTS 10 62 3993600
83474336 amit1509kumar A June 11, 2020, 6:35 p.m. OK Mono C# TESTS 10 77 307200
83452104 RockyFail A June 11, 2020, 4:21 p.m. OK Mono C# TESTS 10 77 3993600
83471949 chinu1712 A June 11, 2020, 6:06 p.m. OK MS C++ TESTS 10 31 0
83448661 CFWudanna A June 11, 2020, 4:13 p.m. OK MS C++ TESTS 10 31 307200
83493106 yerzh A June 12, 2020, 3:13 a.m. OK MS C++ 2017 TESTS 10 30 0
83521687 bhargavbhatiya A June 12, 2020, 10:41 a.m. OK MS C++ 2017 TESTS 10 31 0
83568527 icecap360 A June 13, 2020, 12:01 a.m. OK MS C++ 2017 TESTS 10 31 0
83566255 somecoders A June 12, 2020, 10:18 p.m. OK MS C++ 2017 TESTS 10 31 0
83511983 YaMi506 A June 12, 2020, 8:27 a.m. OK MS C++ 2017 TESTS 10 31 0
83509004 Kasumigaoka A June 12, 2020, 7:45 a.m. OK MS C++ 2017 TESTS 10 31 0
83491270 Tanaphum A June 12, 2020, 2:34 a.m. OK MS C++ 2017 TESTS 10 31 0
83490132 qiqi- A June 12, 2020, 1:59 a.m. OK MS C++ 2017 TESTS 10 31 0
83485622 IronicNinja A June 11, 2020, 10:55 p.m. OK MS C++ 2017 TESTS 10 31 0
83471288 poulaatef A June 11, 2020, 5:58 p.m. OK MS C++ 2017 TESTS 10 31 0
83472772 sarvagya8 A June 11, 2020, 6:15 p.m. OK Node.js TESTS 10 93 1331200
83542034 a1ikeda A June 12, 2020, 2:56 p.m. OK Perl TESTS 10 31 0
83510555 yinlei A June 12, 2020, 8:08 a.m. OK PHP TESTS 10 31 0
83452692 tuxtux1 A June 11, 2020, 4:22 p.m. OK PyPy 2 TESTS 10 139 204800
83512982 raj1307 A June 12, 2020, 8:41 a.m. OK PyPy 2 TESTS 10 139 307200
83453347 amit_dwivedi A June 11, 2020, 4:23 p.m. OK PyPy 2 TESTS 10 140 204800
83483026 realnimish A June 11, 2020, 9:23 p.m. OK PyPy 2 TESTS 10 140 204800
83486490 lebron87 A June 11, 2020, 11:37 p.m. OK PyPy 2 TESTS 10 140 512000
83471323 sirna07 A June 11, 2020, 5:59 p.m. OK PyPy 2 TESTS 10 156 102400
83501310 alexwice A June 12, 2020, 5:51 a.m. OK PyPy 2 TESTS 10 171 512000
83448588 __eRRor__ A June 11, 2020, 4:13 p.m. OK PyPy 3 TESTS 10 139 2150400
83472747 jscn A June 11, 2020, 6:15 p.m. OK PyPy 3 TESTS 10 140 1331200
83476891 Aestroix A June 11, 2020, 7:13 p.m. OK PyPy 3 TESTS 10 140 1433600
83543610 nginics A June 12, 2020, 3:13 p.m. OK PyPy 3 TESTS 10 140 1740800
83537432 tflave A June 12, 2020, 2:02 p.m. OK PyPy 3 TESTS 10 140 2252800
83507608 thekushalghosh A June 12, 2020, 7:26 a.m. OK PyPy 3 TESTS 10 155 1433600
83469276 x3mka A June 11, 2020, 5:36 p.m. OK PyPy 3 TESTS 10 155 1536000
83494611 2019ucp1350 A June 12, 2020, 3:48 a.m. OK PyPy 3 TESTS 10 155 1638400
83522769 ThetaSigma A June 12, 2020, 10:55 a.m. OK PyPy 3 TESTS 10 155 1740800
83441662 archismandey A June 11, 2020, 3:59 p.m. OK PyPy 3 TESTS 10 155 1843200
83558843 ankurj A June 12, 2020, 7:25 p.m. OK Python 2 TESTS 10 171 0
83557987 NotFrax A June 12, 2020, 7:11 p.m. OK Python 2 TESTS 10 171 0
83488532 Mike10 A June 12, 2020, 1 a.m. OK Python 2 TESTS 10 171 0
83444950 crapplet A June 11, 2020, 4:06 p.m. OK Python 2 TESTS 10 186 0
83485557 ComptineDunAutreEte A June 11, 2020, 10:52 p.m. OK Python 2 TESTS 10 187 0
83556892 danielraja783 A June 12, 2020, 6:55 p.m. OK Python 3 TESTS 10 93 0
83533102 scit A June 12, 2020, 1:08 p.m. OK Python 3 TESTS 10 93 0
83532873 shyamy3z A June 12, 2020, 1:04 p.m. OK Python 3 TESTS 10 93 0
83517984 someonelonely A June 12, 2020, 9:53 a.m. OK Python 3 TESTS 10 93 0
83504057 0xc0dey0da A June 12, 2020, 6:38 a.m. OK Python 3 TESTS 10 93 0
83501565 manju_8 A June 12, 2020, 5:55 a.m. OK Python 3 TESTS 10 93 0
83464497 Koki_tkg A June 11, 2020, 4:54 p.m. OK Python 3 TESTS 10 93 307200
83556964 RRR_777 A June 12, 2020, 6:56 p.m. OK Python 3 TESTS 10 108 0
83556546 agrawalamritanshu82 A June 12, 2020, 6:49 p.m. OK Python 3 TESTS 10 108 0
83544646 lucifer085 A June 12, 2020, 3:25 p.m. OK Python 3 TESTS 10 108 0
83462747 jankmet A June 11, 2020, 4:44 p.m. OK Ruby TESTS 10 62 0
83559917 do.it A June 12, 2020, 7:45 p.m. OK Rust TESTS 10 31 0
83456004 IvanDyachenko A June 11, 2020, 4:28 p.m. OK Scala TESTS 10 529 0
83530942 IvanDyachenko A June 12, 2020, 12:40 p.m. OK Scala TESTS 10 530 0

remove filters

Back to search problems