Educational Codeforces Round 88 (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
1359 Educational Codeforces Round 88 (Rated for Div. 2) FINISHED False 7200 146676311 May 28, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14068 ) C Mixing Water PROGRAMMING binary search math 1700

B"There are two infinite sources of water: You perform the following procedure of alternating moves: Note that you always start with the cup of hot water. The barrel is initially empty. You have to pour at least one cup into the barrel. The water temperature in the barrel is an average of the temperatures of the poured cups. You want to achieve a temperature as close as possible to t . So if the temperature in the barrel is t_b , then the absolute difference of t_b and t ( |t_b - t| ) should be as small as possible. How many cups should you pour into the barrel, so that the temperature in it is as close as possible to t ? If there are multiple answers with the minimum absolute difference, then print the smallest of them. The first line contains a single integer T ( 1 <= T <= 3 cdot 10^4 ) -- the number of testcases. Each of the next T lines contains three integers h , c and t ( 1 <= c < h <= 10^6 ; c <= t <= h ) -- the temperature of the hot water, the temperature of the cold water and the desired temperature in the barrel. For each testcase print a single positive integer -- the minimum number of cups required to be poured into the barrel to achieve the closest temperature to t . In the first testcase the temperature after 2 poured cups: 1 hot and 1 cold is exactly 20 . So that is the closest we can achieve. In the second testcase the temperature after 7 poured cups: 4 hot and 3 cold is about 29.857 . Pouring more water won't get us closer to t than that. In the third testcase the temperature after 1 poured cup: 1 hot is 18 . That's exactly equal to t . "...

Tutorials

Educational Codeforces Round 88 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81812023 aravind.nujella C May 28, 2020, 5:11 p.m. OK Clang++17 Diagnostics TESTS 9 639 0 1700
81818523 chendong4379 C May 28, 2020, 6:09 p.m. OK GNU C11 TESTS 9 124 0 1700
81838600 toeveryone C May 29, 2020, 1:38 a.m. OK GNU C11 TESTS 9 124 0 1700
81851578 Tharani_priya C May 29, 2020, 6 a.m. OK GNU C11 TESTS 9 124 0 1700
81887034 Tanzim_bn C May 29, 2020, 1:02 p.m. OK GNU C11 TESTS 9 124 0 1700
81870087 lwd-haki C May 29, 2020, 9:39 a.m. OK GNU C11 TESTS 9 139 0 1700
81861414 Tanzim_bn C May 29, 2020, 7:51 a.m. OK GNU C11 TESTS 9 139 0 1700
81846640 SUNNY24 C May 29, 2020, 4:37 a.m. OK GNU C11 TESTS 9 139 0 1700
81853369 QScloud C May 29, 2020, 6:22 a.m. OK GNU C11 TESTS 9 140 0 1700
81894983 kingpin119 C May 29, 2020, 2:35 p.m. OK GNU C11 TESTS 9 140 0 1700
82402938 aryabhattahp C June 3, 2020, 1:55 p.m. OK GNU C11 TESTS 9 156 0 1700
81834222 youngsystem C May 28, 2020, 11:23 p.m. OK GNU C++11 TESTS 9 30 0 1700
81887740 scimoon C May 29, 2020, 1:11 p.m. OK GNU C++11 TESTS 9 31 0 1700
81879626 hzh767641495 C May 29, 2020, 11:38 a.m. OK GNU C++11 TESTS 9 31 0 1700
82309058 yspm C June 2, 2020, 12:56 p.m. OK GNU C++11 TESTS 9 31 0 1700
82306970 DaoTa C June 2, 2020, 12:33 p.m. OK GNU C++11 TESTS 9 31 0 1700
82201885 LOVE_YJZ C June 1, 2020, 9:49 a.m. OK GNU C++11 TESTS 9 31 0 1700
82040371 Asrith_Miyapuram C May 31, 2020, 12:49 p.m. OK GNU C++11 TESTS 9 31 0 1700
81961761 fuxiaoxin C May 30, 2020, 11:17 a.m. OK GNU C++11 TESTS 9 31 0 1700
81960046 zhaoyiming C May 30, 2020, 10:54 a.m. OK GNU C++11 TESTS 9 31 0 1700
81958935 jgy002 C May 30, 2020, 10:41 a.m. OK GNU C++11 TESTS 9 31 0 1700
81992662 Mugiwara_ya C May 30, 2020, 7:34 p.m. OK GNU C++14 TESTS 9 31 0 1700
82389385 -zzy- C June 3, 2020, 11:10 a.m. OK GNU C++14 TESTS 9 31 0 1700
82325668 Lola0213 C June 2, 2020, 3:59 p.m. OK GNU C++14 TESTS 9 31 0 1700
81863366 Noemikulcsar C May 29, 2020, 8:15 a.m. OK GNU C++14 TESTS 9 31 0 1700
81837217 lvao-x C May 29, 2020, 12:59 a.m. OK GNU C++14 TESTS 9 31 0 1700
81822930 man_of_hope C May 28, 2020, 7 p.m. OK GNU C++14 TESTS 9 31 0 1700
81810887 huangzhenyuan C May 28, 2020, 5:05 p.m. OK GNU C++14 TESTS 9 31 204800 1700
82475806 scottaran9 C June 4, 2020, 11:11 a.m. OK GNU C++14 TESTS 9 46 0 1700
82444305 _alpinist_ C June 4, 2020, 3:14 a.m. OK GNU C++14 TESTS 9 46 0 1700
82390429 -zzy- C June 3, 2020, 11:22 a.m. OK GNU C++14 TESTS 9 46 0 1700
81980015 William_Yue C May 30, 2020, 3:28 p.m. OK GNU C++17 TESTS 9 31 0 1700
82317593 Abhishek_giri_219 C June 2, 2020, 2:31 p.m. OK GNU C++17 TESTS 9 31 0 1700
82020079 fuoguokai1002 C May 31, 2020, 7:39 a.m. OK GNU C++17 TESTS 9 31 0 1700
82016291 kudoushinichi2912 C May 31, 2020, 6:43 a.m. OK GNU C++17 TESTS 9 31 0 1700
82014487 9957 C May 31, 2020, 6:15 a.m. OK GNU C++17 TESTS 9 31 0 1700
82001133 Joy_Stick C May 31, 2020, 12:11 a.m. OK GNU C++17 TESTS 9 31 0 1700
81994787 Sufyan_Khan C May 30, 2020, 8:19 p.m. OK GNU C++17 TESTS 9 31 0 1700
81978750 swift1712 C May 30, 2020, 3:10 p.m. OK GNU C++17 TESTS 9 31 0 1700
81970739 favre_smosp C May 30, 2020, 1:19 p.m. OK GNU C++17 TESTS 9 31 0 1700
81967070 codengraver C May 30, 2020, 12:27 p.m. OK GNU C++17 TESTS 9 31 0 1700
81834462 hetp111 C May 28, 2020, 11:34 p.m. OK GNU C++17 (64) TESTS 9 30 204800 1700
81849546 N_g_M C May 29, 2020, 5:31 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81861745 Macdu C May 29, 2020, 7:55 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81904015 The_Anthony C May 29, 2020, 3:37 p.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81957664 architrungta120 C May 30, 2020, 10:24 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81960326 Phortox C May 30, 2020, 10:58 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81960925 ruz C May 30, 2020, 11:06 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
82437668 emma C June 3, 2020, 11:02 p.m. OK GNU C++17 (64) TESTS 9 31 0 1700
82459924 achvanov C June 4, 2020, 7:49 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81840365 iynaur87 C May 29, 2020, 2:26 a.m. OK GNU C++17 (64) TESTS 9 31 0 1700
81810322 synapse C May 28, 2020, 5:01 p.m. OK Go TESTS 9 62 0 1700
82409760 Oopsimbad C June 3, 2020, 3:07 p.m. OK Go TESTS 9 78 102400 1700
81807681 u1s1reallycai C May 28, 2020, 4:48 p.m. OK Go TESTS 9 108 102400 1700
81881665 maguroguma C May 29, 2020, noon OK Go TESTS 9 155 307200 1700
81881722 maguroguma C May 29, 2020, 12:01 p.m. OK Go TESTS 9 171 0 1700
81840344 ccppjsrb C May 29, 2020, 2:25 a.m. OK Go TESTS 9 1231 5427200 1700
81953300 ojhaankesh1975 C May 30, 2020, 9:27 a.m. OK Java 11 TESTS 9 171 0 1700
81937986 avijit_agarwal C May 30, 2020, 6:02 a.m. OK Java 11 TESTS 9 187 0 1700
81822666 bobib C May 28, 2020, 6:57 p.m. OK Java 11 TESTS 9 187 0 1700
81972609 yuruiyin C May 30, 2020, 1:44 p.m. OK Java 11 TESTS 9 202 0 1700
81923357 Kharouba C May 29, 2020, 7:27 p.m. OK Java 11 TESTS 9 202 0 1700
81882874 nirvana_rsc C May 29, 2020, 12:14 p.m. OK Java 11 TESTS 9 202 0 1700
81868409 EigenFunk C May 29, 2020, 9:21 a.m. OK Java 11 TESTS 9 202 0 1700
81845026 zhupeijun C May 29, 2020, 4:03 a.m. OK Java 11 TESTS 9 202 0 1700
81830291 ImpossibleCode C May 28, 2020, 9:15 p.m. OK Java 11 TESTS 9 202 0 1700
81841700 Hemose C May 29, 2020, 2:57 a.m. OK Java 11 TESTS 9 217 0 1700
81841089 derrick20 C May 29, 2020, 2:43 a.m. OK Java 8 TESTS 9 108 0 1700
81816841 aman28rwt C May 28, 2020, 5:53 p.m. OK Java 8 TESTS 9 108 0 1700
81815811 lastrank C May 28, 2020, 5:42 p.m. OK Java 8 TESTS 9 108 0 1700
81974590 ShesMyNerd C May 30, 2020, 2:11 p.m. OK Java 8 TESTS 9 109 0 1700
82045186 non_special C May 31, 2020, 2:01 p.m. OK Java 8 TESTS 9 124 0 1700
81941475 glider.g C May 30, 2020, 6:50 a.m. OK Java 8 TESTS 9 124 0 1700
81938740 Faizan C May 30, 2020, 6:13 a.m. OK Java 8 TESTS 9 124 0 1700
81903292 k_6101 C May 29, 2020, 3:32 p.m. OK Java 8 TESTS 9 124 0 1700
81876449 saurabhs1206 C May 29, 2020, 10:59 a.m. OK Java 8 TESTS 9 124 0 1700
81841487 derrick20 C May 29, 2020, 2:52 a.m. OK Java 8 TESTS 9 124 0 1700
81866452 koboshi C May 29, 2020, 8:55 a.m. OK Kotlin TESTS 9 140 0 1700
81844924 Spheniscine C May 29, 2020, 4:01 a.m. OK Kotlin TESTS 9 265 0 1700
81844834 Spheniscine C May 29, 2020, 3:59 a.m. OK Kotlin TESTS 9 374 0 1700
82218392 UD_xlinsist C June 1, 2020, 12:56 p.m. OK Kotlin TESTS 9 389 102400 1700
81946967 schmak.ekb C May 30, 2020, 8:01 a.m. OK Kotlin TESTS 9 405 102400 1700
81833906 speshuric C May 28, 2020, 11:11 p.m. OK Kotlin TESTS 9 452 0 1700
81865566 avtoruxadze C May 29, 2020, 8:43 a.m. OK Mono C# TESTS 9 280 6860800 1700
81813930 tvvister C May 28, 2020, 5:25 p.m. OK Mono C# TESTS 9 280 7270400 1700
81813849 tvvister C May 28, 2020, 5:24 p.m. OK Mono C# TESTS 9 296 7270400 1700
81817717 mban259 C May 28, 2020, 6:01 p.m. OK Mono C# TESTS 9 312 4096000 1700
81813358 tvvister C May 28, 2020, 5:20 p.m. OK Mono C# TESTS 9 342 7270400 1700
81888712 DarkSun C May 29, 2020, 1:24 p.m. OK MS C++ TESTS 9 171 0 1700
81816164 dundae C May 28, 2020, 5:46 p.m. OK MS C++ 2017 TESTS 9 46 102400 1700
81840112 ningBr C May 29, 2020, 2:19 a.m. OK MS C++ 2017 TESTS 9 61 0 1700
81812837 srtgguy C May 28, 2020, 5:17 p.m. OK MS C++ 2017 TESTS 9 109 0 1700
81989561 nik1998 C May 30, 2020, 6:38 p.m. OK MS C++ 2017 TESTS 9 109 1024000 1700
81908812 getN1ght C May 29, 2020, 4:18 p.m. OK MS C++ 2017 TESTS 9 124 0 1700
81858634 little_lion C May 29, 2020, 7:21 a.m. OK MS C++ 2017 TESTS 9 140 0 1700
81996803 aviral2899 C May 30, 2020, 9:07 p.m. OK MS C++ 2017 TESTS 9 186 0 1700
81970994 akai14 C May 30, 2020, 1:22 p.m. OK MS C++ 2017 TESTS 9 187 0 1700
81996924 aviral2899 C May 30, 2020, 9:11 p.m. OK MS C++ 2017 TESTS 9 187 0 1700
82382416 kgupta3199 C June 3, 2020, 9:43 a.m. OK MS C++ 2017 TESTS 9 202 0 1700
82001269 mir.panov C May 31, 2020, 12:20 a.m. OK PyPy 2 TESTS 9 218 6553600 1700
81833685 realnimish C May 28, 2020, 11:02 p.m. OK PyPy 2 TESTS 9 233 7372800 1700
82025289 Sanket17 C May 31, 2020, 9 a.m. OK PyPy 2 TESTS 9 623 4812800 1700
81934240 wolffd C May 30, 2020, 4:57 a.m. OK PyPy 2 TESTS 9 639 4198400 1700
81859240 bazzyadb C May 29, 2020, 7:27 a.m. OK PyPy 2 TESTS 9 639 5324800 1700
82165184 yumtam C May 31, 2020, 10:54 p.m. OK PyPy 2 TESTS 9 686 7782400 1700
82316466 snape_here C June 2, 2020, 2:19 p.m. OK PyPy 2 TESTS 9 733 9216000 1700
81820717 shehebe C May 28, 2020, 6:32 p.m. OK PyPy 2 TESTS 9 780 8089600 1700
81858467 mo-hit C May 29, 2020, 7:19 a.m. OK PyPy 2 TESTS 9 1060 12185600 1700
81903808 kit.shiron C May 29, 2020, 3:36 p.m. OK PyPy 2 TESTS 9 1559 9318400 1700
82009757 Piokemon C May 31, 2020, 4:50 a.m. OK PyPy 3 TESTS 9 187 5017600 1700
81934106 Piokemon C May 30, 2020, 4:55 a.m. OK PyPy 3 TESTS 9 202 4300800 1700
81829185 gintoki_s C May 28, 2020, 8:49 p.m. OK PyPy 3 TESTS 9 202 4812800 1700
81986255 servermonk C May 30, 2020, 5:36 p.m. OK PyPy 3 TESTS 9 217 5939200 1700
81933886 Piokemon C May 30, 2020, 4:50 a.m. OK PyPy 3 TESTS 9 218 7782400 1700
81817453 throwawayatcoder C May 28, 2020, 5:58 p.m. OK PyPy 3 TESTS 9 218 8294400 1700
81913942 bravotango C May 29, 2020, 5:07 p.m. OK PyPy 3 TESTS 9 233 6041600 1700
81926526 agrawalamritanshu82 C May 29, 2020, 8:34 p.m. OK PyPy 3 TESTS 9 248 5632000 1700
81923095 siyy C May 29, 2020, 7:22 p.m. OK PyPy 3 TESTS 9 249 5632000 1700
81934058 Piokemon C May 30, 2020, 4:54 a.m. OK PyPy 3 TESTS 9 249 6758400 1700
81817228 ap1008 C May 28, 2020, 5:56 p.m. OK Python 2 TESTS 9 295 512000 1700
81958377 prashant_saini C May 30, 2020, 10:34 a.m. OK Python 2 TESTS 9 343 0 1700
81834729 mkawa2 C May 28, 2020, 11:46 p.m. OK Python 3 TESTS 9 249 307200 1700
82396149 Optimismy C June 3, 2020, 12:31 p.m. OK Python 3 TESTS 9 264 614400 1700
81814653 sudhirMTS C May 28, 2020, 5:32 p.m. OK Python 3 TESTS 9 264 819200 1700
81971992 soumya0531 C May 30, 2020, 1:36 p.m. OK Python 3 TESTS 9 265 819200 1700
81812189 goldang C May 28, 2020, 5:12 p.m. OK Python 3 TESTS 9 280 307200 1700
81968794 rel4pss C May 30, 2020, 12:52 p.m. OK Python 3 TESTS 9 280 1126400 1700
81965863 rel4pss C May 30, 2020, 12:10 p.m. OK Python 3 TESTS 9 311 1945600 1700
82006163 mastermind.hk16 C May 31, 2020, 3:20 a.m. OK Python 3 TESTS 9 312 1024000 1700
82036474 alivan C May 31, 2020, 11:48 a.m. OK Python 3 TESTS 9 327 2048000 1700
81906389 KingVlad C May 29, 2020, 3:57 p.m. OK Python 3 TESTS 9 405 307200 1700
81917215 macho_uno C May 29, 2020, 5:48 p.m. OK Rust TESTS 9 46 0 1700
81840913 tonyu0 C May 29, 2020, 2:39 a.m. OK Rust TESTS 9 46 1843200 1700
81840097 tonyu0 C May 29, 2020, 2:18 a.m. OK Rust TESTS 9 46 1843200 1700
81837762 tonyu0 C May 29, 2020, 1:14 a.m. OK Rust TESTS 9 46 1843200 1700
81811934 fatemender C May 28, 2020, 5:11 p.m. OK Rust TESTS 9 312 0 1700
81815740 pandrei C May 28, 2020, 5:42 p.m. OK Rust TESTS 9 373 0 1700
81930353 .counter C May 30, 2020, 2:51 a.m. OK Scala TESTS 9 702 0 1700
81834301 IvanDyachenko C May 28, 2020, 11:27 p.m. OK Scala TESTS 9 810 102400 1700
81834256 IvanDyachenko C May 28, 2020, 11:24 p.m. OK Scala TESTS 9 810 102400 1700
81934696 gazaan C May 30, 2020, 5:06 a.m. OK Scala TESTS 9 1107 307200 1700

remove filters

Back to search problems