Educational Codeforces Round 86 (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
1342 Educational Codeforces Round 86 (Rated for Div. 2) FINISHED False 7200 143911499 April 26, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 40901 ) A Road To Zero PROGRAMMING greedy math 1100

B"You are given two integers x and y . You can perform two types of operations: Your goal is to make both given integers equal zero simultaneously, i.e. x = y = 0 . There are no other requirements. In particular, it is possible to move from x=1 , y=0 to x=y=0 . Calculate the minimum amount of dollars you have to spend on it. The first line contains one integer t ( 1 <= t <= 100 ) -- the number of testcases. The first line of each test case contains two integers x and y ( 0 <= x, y <= 10^9 ). The second line of each test case contains two integers a and b ( 1 <= a, b <= 10^9 ). For each test case print one integer -- the minimum amount of dollars you have to spend. In the first test case you can perform the following sequence of operations: first, second, first. This way you spend 391 + 555 + 391 = 1337 dollars. In the second test case both integers are equal to zero initially, so you dont' have to spend money. "...

Tutorials

76633

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
78353661 foxhound31 A April 28, 2020, 6:49 a.m. OK Clang++17 Diagnostics TESTS 7 46 0 1100
78286553 vjudge4 A April 27, 2020, 11:59 a.m. OK Clang++17 Diagnostics TESTS 7 46 0 1100
78468548 vjudge4 A April 29, 2020, 11:13 a.m. OK Clang++17 Diagnostics TESTS 7 46 0 1100
78306593 noobquan A April 27, 2020, 3:26 p.m. OK FPC TESTS 7 31 0 1100
78246038 fpc_coder A April 27, 2020, 1:12 a.m. OK FPC TESTS 7 46 102400 1100
78423397 lovekv4321 A April 28, 2020, 8:38 p.m. OK GNU C11 TESTS 7 15 0 1100
78355128 heinima A April 28, 2020, 7:10 a.m. OK GNU C11 TESTS 7 15 0 1100
78662613 vMashfiv A May 1, 2020, 2:37 p.m. OK GNU C11 TESTS 7 15 0 1100
78602875 msakib A April 30, 2020, 8:09 p.m. OK GNU C11 TESTS 7 15 0 1100
78592168 Shariar1309 A April 30, 2020, 5:46 p.m. OK GNU C11 TESTS 7 15 0 1100
78499592 ashaniimalsha126 A April 29, 2020, 4:46 p.m. OK GNU C11 TESTS 7 15 0 1100
78346837 Skv7543 A April 28, 2020, 4:58 a.m. OK GNU C11 TESTS 7 15 0 1100
78491350 ajoydey00001 A April 29, 2020, 3:18 p.m. OK GNU C11 TESTS 7 15 0 1100
78481159 Tube_light_43 A April 29, 2020, 1:38 p.m. OK GNU C11 TESTS 7 15 0 1100
78442019 6945832889HungDD A April 29, 2020, 5:22 a.m. OK GNU C11 TESTS 7 15 0 1100
78625714 vikasu A May 1, 2020, 6:03 a.m. OK GNU C++11 TESTS 7 15 0 1100
78629616 vjudge5 A May 1, 2020, 7:01 a.m. OK GNU C++11 TESTS 7 15 0 1100
78624667 A_v A May 1, 2020, 5:46 a.m. OK GNU C++11 TESTS 7 15 0 1100
78620737 ShineEternal A May 1, 2020, 4:28 a.m. OK GNU C++11 TESTS 7 15 0 1100
78618087 Riccccchard A May 1, 2020, 3:20 a.m. OK GNU C++11 TESTS 7 15 0 1100
78616423 080818TeddyWang A May 1, 2020, 2:29 a.m. OK GNU C++11 TESTS 7 15 0 1100
78747261 Reham777 A May 1, 2020, 5:50 p.m. OK GNU C++11 TESTS 7 15 0 1100
78660644 smurfer A May 1, 2020, 2:12 p.m. OK GNU C++11 TESTS 7 15 0 1100
78648319 zyl072 A May 1, 2020, 11:30 a.m. OK GNU C++11 TESTS 7 15 0 1100
78629771 zombie_Z A May 1, 2020, 7:03 a.m. OK GNU C++11 TESTS 7 15 0 1100
78658508 vinay612 A May 1, 2020, 1:44 p.m. OK GNU C++14 TESTS 7 15 0 1100
78659937 genius123 A May 1, 2020, 2:03 p.m. OK GNU C++14 TESTS 7 15 0 1100
78746932 K_N_S A May 1, 2020, 5:38 p.m. OK GNU C++14 TESTS 7 15 0 1100
78747391 Mohammad_Asif.Ashik A May 1, 2020, 5:54 p.m. OK GNU C++14 TESTS 7 15 0 1100
78747878 md_1999 A May 1, 2020, 6:01 p.m. OK GNU C++14 TESTS 7 15 0 1100
78756210 hritik69 A May 1, 2020, 7:19 p.m. OK GNU C++14 TESTS 7 15 0 1100
78658202 less_always A May 1, 2020, 1:40 p.m. OK GNU C++14 TESTS 7 15 0 1100
78657942 fruithead123 A May 1, 2020, 1:37 p.m. OK GNU C++14 TESTS 7 15 0 1100
78648967 ljupche98 A May 1, 2020, 11:39 a.m. OK GNU C++14 TESTS 7 15 0 1100
78647688 kunal725725 A May 1, 2020, 11:20 a.m. OK GNU C++14 TESTS 7 15 0 1100
78648642 kkksc02 A May 1, 2020, 11:34 a.m. OK GNU C++17 TESTS 7 15 0 1100
78752912 D18 A May 1, 2020, 6:42 p.m. OK GNU C++17 TESTS 7 15 0 1100
78704603 boook A May 1, 2020, 3:35 p.m. OK GNU C++17 TESTS 7 15 0 1100
78700379 wlw A May 1, 2020, 3:27 p.m. OK GNU C++17 TESTS 7 15 0 1100
78658576 Mhamuda A May 1, 2020, 1:45 p.m. OK GNU C++17 TESTS 7 15 0 1100
78656720 Ruslan815 A May 1, 2020, 1:21 p.m. OK GNU C++17 TESTS 7 15 0 1100
78656198 aksinghal_29 A May 1, 2020, 1:14 p.m. OK GNU C++17 TESTS 7 15 0 1100
78654631 HLJD_HappyGuy1290 A May 1, 2020, 12:52 p.m. OK GNU C++17 TESTS 7 15 0 1100
78648907 sanwar_hossen A May 1, 2020, 11:38 a.m. OK GNU C++17 TESTS 7 15 0 1100
78648893 Jothef A May 1, 2020, 11:38 a.m. OK GNU C++17 TESTS 7 15 0 1100
78560875 tin.tin A April 30, 2020, 11:18 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78610483 ArtisticBeast A April 30, 2020, 10:47 p.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78556670 ayush.1729 A April 30, 2020, 10:26 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78539854 Rafid1884 A April 30, 2020, 6:33 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78471181 vjudge2 A April 29, 2020, 11:45 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78445668 amit_dwivedi A April 29, 2020, 6:20 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78426270 am612106 A April 28, 2020, 9:33 p.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78392394 huangxiaohua A April 28, 2020, 2:21 p.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78364653 aeiou1 A April 28, 2020, 9:23 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78359534 dravil_rhino A April 28, 2020, 8:12 a.m. OK GNU C++17 (64) TESTS 7 15 0 1100
78245778 synapse A April 27, 2020, 1:02 a.m. OK Go TESTS 7 31 0 1100
78224474 xenowitz A April 26, 2020, 6:22 p.m. OK Go TESTS 7 31 0 1100
78593633 bonfire A April 30, 2020, 6:05 p.m. OK Go TESTS 7 31 0 1100
78552227 Sunshine_Hu A April 30, 2020, 9:30 a.m. OK Go TESTS 7 31 0 1100
78461470 Warren_Wei A April 29, 2020, 9:49 a.m. OK Go TESTS 7 31 0 1100
78447288 nitvjudge1 A April 29, 2020, 6:43 a.m. OK Go TESTS 7 31 0 1100
78211643 kxccc A April 26, 2020, 4:43 p.m. OK Go TESTS 7 46 0 1100
78661045 maguroguma A May 1, 2020, 2:17 p.m. OK Go TESTS 7 46 0 1100
78327497 Orfest A April 27, 2020, 8:05 p.m. OK Haskell TESTS 7 31 102400 1100
78221080 anuragshirolkar A April 26, 2020, 5:43 p.m. OK Haskell TESTS 7 31 102400 1100
78230654 amustafali A April 26, 2020, 7:35 p.m. OK Java 11 TESTS 7 155 0 1100
78657299 toxic4u A May 1, 2020, 1:29 p.m. OK Java 11 TESTS 7 155 0 1100
78283092 savss_624 A April 27, 2020, 11:23 a.m. OK Java 11 TESTS 7 156 0 1100
78253699 rajparekh2024 A April 27, 2020, 4:31 a.m. OK Java 11 TESTS 7 156 0 1100
78286099 Haochao A April 27, 2020, 11:54 a.m. OK Java 11 TESTS 7 170 0 1100
78295134 bill_lin A April 27, 2020, 1:29 p.m. OK Java 11 TESTS 7 170 0 1100
78647714 ansh_shanker A May 1, 2020, 11:21 a.m. OK Java 11 TESTS 7 170 0 1100
78342247 Prathmesh13 A April 28, 2020, 3:12 a.m. OK Java 11 TESTS 7 170 0 1100
78321978 mikkk A April 27, 2020, 6:41 p.m. OK Java 11 TESTS 7 170 0 1100
78594619 maheshwari_madhav A April 30, 2020, 6:16 p.m. OK Java 11 TESTS 7 171 0 1100
78327719 chiragkaushik1 A April 27, 2020, 8:09 p.m. OK Java 8 TESTS 7 93 0 1100
78660327 pratikwankhede A May 1, 2020, 2:08 p.m. OK Java 8 TESTS 7 93 0 1100
78525867 Oopsimbad A April 30, 2020, 1:19 a.m. OK Java 8 TESTS 7 93 0 1100
78485583 sameer17 A April 29, 2020, 2:23 p.m. OK Java 8 TESTS 7 93 0 1100
78405686 abhinav_002 A April 28, 2020, 4:35 p.m. OK Java 8 TESTS 7 93 0 1100
78371375 gupta.abhishek19994 A April 28, 2020, 10:41 a.m. OK Java 8 TESTS 7 93 0 1100
78364756 tahasin A April 28, 2020, 9:24 a.m. OK Java 8 TESTS 7 93 0 1100
78286253 Keyur21 A April 27, 2020, 11:56 a.m. OK Java 8 TESTS 7 93 0 1100
78271466 K.A.R.M.A A April 27, 2020, 9:19 a.m. OK Java 8 TESTS 7 93 0 1100
78269888 chaitanya11 A April 27, 2020, 9 a.m. OK Java 8 TESTS 7 93 0 1100
78513439 DeadInsideOnTest993 A April 29, 2020, 7:50 p.m. OK Kotlin TESTS 7 108 0 1100
78226034 ramil.agger A April 26, 2020, 6:34 p.m. OK Kotlin TESTS 7 108 0 1100
78522659 david_varela A April 29, 2020, 11:19 p.m. OK Kotlin TESTS 7 124 0 1100
78339384 Spheniscine A April 28, 2020, 1:44 a.m. OK Kotlin TESTS 7 124 0 1100
78635622 ivanshubin A May 1, 2020, 8:29 a.m. OK Kotlin TESTS 7 139 0 1100
78312006 dkozak94 A April 27, 2020, 4:29 p.m. OK Kotlin TESTS 7 139 0 1100
78652643 ankur.vision A May 1, 2020, 12:27 p.m. OK Kotlin TESTS 7 140 0 1100
78447329 nitvjudge2 A April 29, 2020, 6:43 a.m. OK Kotlin TESTS 7 140 0 1100
78295737 bohuss A April 27, 2020, 1:37 p.m. OK Kotlin TESTS 7 140 0 1100
78220707 TRR A April 26, 2020, 5:40 p.m. OK Mono C# TESTS 7 46 0 1100
78247256 szzz- A April 27, 2020, 1:52 a.m. OK Mono C# TESTS 7 46 0 1100
78303582 despair_101 A April 27, 2020, 2:57 p.m. OK Mono C# TESTS 7 46 102400 1100
78522829 nghiapd A April 29, 2020, 11:26 p.m. OK Mono C# TESTS 7 46 102400 1100
78265617 ravinem1 A April 27, 2020, 8:06 a.m. OK Mono C# TESTS 7 46 3686400 1100
78222508 dfsamix A April 26, 2020, 5:58 p.m. OK Mono C# TESTS 7 61 0 1100
78225215 dfsamix A April 26, 2020, 6:24 p.m. OK Mono C# TESTS 7 62 0 1100
78207550 JamshedUrunov A April 26, 2020, 4:31 p.m. OK Mono C# TESTS 7 62 3686400 1100
78222866 mishgan A April 26, 2020, 6:02 p.m. OK Mono C# TESTS 7 62 3686400 1100
78287168 vjudge5 A April 27, 2020, 12:05 p.m. OK MS C++ TESTS 7 15 0 1100
78469148 vjudge3 A April 29, 2020, 11:21 a.m. OK MS C++ TESTS 7 15 0 1100
78341162 vjudge1 A April 28, 2020, 2:43 a.m. OK MS C++ TESTS 7 15 0 1100
78339825 vjudge2 A April 28, 2020, 1:59 a.m. OK MS C++ TESTS 7 15 0 1100
78287045 vjudge5 A April 27, 2020, 12:04 p.m. OK MS C++ TESTS 7 30 0 1100
78341006 vjudge3 A April 28, 2020, 2:38 a.m. OK MS C++ TESTS 7 30 0 1100
78341245 vjudge2 A April 28, 2020, 2:45 a.m. OK MS C++ TESTS 7 30 0 1100
78345605 vjudge4 A April 28, 2020, 4:32 a.m. OK MS C++ TESTS 7 30 0 1100
78378624 vjudge3 A April 28, 2020, 11:55 a.m. OK MS C++ TESTS 7 30 0 1100
78339881 vjudge1 A April 28, 2020, 2:01 a.m. OK MS C++ TESTS 7 30 0 1100
78299507 Peng_hc A April 27, 2020, 2:17 p.m. OK MS C++ 2017 TESTS 7 15 0 1100
78343582 vjudge5 A April 28, 2020, 3:46 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78345095 minionsnow A April 28, 2020, 4:21 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78362210 GABBAR11 A April 28, 2020, 8:50 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78381956 newdeal A April 28, 2020, 12:29 p.m. OK MS C++ 2017 TESTS 7 15 0 1100
78342676 vjudge5 A April 28, 2020, 3:23 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78342107 vjudge4 A April 28, 2020, 3:08 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78341797 vjudge2 A April 28, 2020, 3 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78340047 vjudge3 A April 28, 2020, 2:07 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78339590 vjudge4 A April 28, 2020, 1:52 a.m. OK MS C++ 2017 TESTS 7 15 0 1100
78657308 Arturgo A May 1, 2020, 1:29 p.m. OK Ocaml TESTS 7 15 0 1100
78301742 SeregaMamonT A April 27, 2020, 2:39 p.m. OK PyPy 2 TESTS 7 109 0 1100
78221285 kit.shiron A April 26, 2020, 5:45 p.m. OK PyPy 2 TESTS 7 109 0 1100
78420615 yougaindra A April 28, 2020, 7:54 p.m. OK PyPy 2 TESTS 7 124 0 1100
78221425 Devraj10 A April 26, 2020, 5:47 p.m. OK PyPy 2 TESTS 7 140 1228800 1100
78688125 bobFargo A May 1, 2020, 3:08 p.m. OK PyPy 3 TESTS 7 124 0 1100
78627393 udayps055 A May 1, 2020, 6:29 a.m. OK PyPy 3 TESTS 7 124 0 1100
78626745 abhi18195 A May 1, 2020, 6:19 a.m. OK PyPy 3 TESTS 7 124 0 1100
78615549 Tyern A May 1, 2020, 1:58 a.m. OK PyPy 3 TESTS 7 124 0 1100
78565504 rsat1999 A April 30, 2020, 12:18 p.m. OK PyPy 3 TESTS 7 124 0 1100
78525854 superman_98 A April 30, 2020, 1:18 a.m. OK PyPy 3 TESTS 7 124 0 1100
78503269 jaastha86 A April 29, 2020, 5:32 p.m. OK PyPy 3 TESTS 7 124 0 1100
78499310 sid_23 A April 29, 2020, 4:43 p.m. OK PyPy 3 TESTS 7 124 0 1100
78489071 aman21xo A April 29, 2020, 2:55 p.m. OK PyPy 3 TESTS 7 124 0 1100
78484592 KiranKP A April 29, 2020, 2:14 p.m. OK PyPy 3 TESTS 7 124 0 1100
78613948 hungnt0597 A May 1, 2020, 12:55 a.m. OK Python 2 TESTS 7 171 0 1100
78249149 ComptineDunAutreEte A April 27, 2020, 2:48 a.m. OK Python 2 TESTS 7 171 0 1100
78223373 kmd99 A April 26, 2020, 6:08 p.m. OK Python 2 TESTS 7 171 0 1100
78263676 SoSooding A April 27, 2020, 7:42 a.m. OK Python 2 TESTS 7 187 0 1100
78232382 Alface A April 26, 2020, 7:56 p.m. OK Python 3 TESTS 7 78 0 1100
78757977 Jaders30 A May 1, 2020, 7:43 p.m. OK Python 3 TESTS 7 93 0 1100
78738487 ptkumar13 A May 1, 2020, 4:49 p.m. OK Python 3 TESTS 7 93 0 1100
78659013 coder_512 A May 1, 2020, 1:51 p.m. OK Python 3 TESTS 7 93 0 1100
78657537 joydas1100 A May 1, 2020, 1:32 p.m. OK Python 3 TESTS 7 93 0 1100
78647030 steinstadt A May 1, 2020, 11:11 a.m. OK Python 3 TESTS 7 93 0 1100
78638563 badshahGk A May 1, 2020, 9:11 a.m. OK Python 3 TESTS 7 93 0 1100
78633642 ZARIFREZAUL A May 1, 2020, 7:59 a.m. OK Python 3 TESTS 7 93 0 1100
78632386 shaurya950 A May 1, 2020, 7:41 a.m. OK Python 3 TESTS 7 93 0 1100
78630567 PayalMangla A May 1, 2020, 7:15 a.m. OK Python 3 TESTS 7 93 0 1100
78626724 eugene.l A May 1, 2020, 6:19 a.m. OK Ruby TESTS 7 46 0 1100
78615503 hogeover30 A May 1, 2020, 1:57 a.m. OK Ruby TESTS 7 62 0 1100
78212336 Roka A April 26, 2020, 4:47 p.m. OK Rust TESTS 7 15 0 1100
78447540 nitvjudge4 A April 29, 2020, 6:46 a.m. OK Rust TESTS 7 30 0 1100
78541294 nitvjudge2 A April 30, 2020, 6:55 a.m. OK Rust TESTS 7 31 0 1100
78295802 crazyboycjr0.1 A April 27, 2020, 1:38 p.m. OK Rust TESTS 7 31 0 1100
78264560 xyqkoala A April 27, 2020, 7:53 a.m. OK Rust TESTS 7 31 0 1100
78317907 Kaa A April 27, 2020, 5:45 p.m. OK Rust TESTS 7 46 0 1100
78216903 IvanDyachenko A April 26, 2020, 5:10 p.m. OK Scala TESTS 7 467 0 1100
78213130 mt0 A April 26, 2020, 4:52 p.m. OK Scala TESTS 7 467 0 1100

remove filters

Back to search problems