Educational Codeforces Round 77 (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
1260 Educational Codeforces Round 77 (Rated for Div. 2) FINISHED False 7200 156960599 Nov. 27, 2019, 1:50 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14834 ) A Heating PROGRAMMING math 1000

B"Several days ago you bought a new house and now you are planning to start a renovation. Since winters in your region can be very cold you need to decide how to heat rooms in your house. Your house has n rooms. In the i -th room you can install at most c_i heating radiators. Each radiator can have several sections, but the cost of the radiator with k sections is equal to k^2 burles. Since rooms can have different sizes, you calculated that you need at least sum_i sections in total in the i -th room. For each room calculate the minimum cost to install at most c_i radiators with total number of sections not less than sum_i . The first line contains single integer n ( 1 <= n <= 1000 ) -- the number of rooms. Each of the next n lines contains the description of some room. The i -th line contains two integers c_i and sum_i ( 1 <= c_i, sum_i <= 10^4 ) -- the maximum number of radiators and the minimum total number of sections in the i -th room, respectively. For each room print one integer -- the minimum possible cost to install at most c_i radiators with total number of sections not less than sum_i . In the first room, you can install only one radiator, so it's optimal to use the radiator with sum_1 sections. The cost of the radiator is equal to (10^4)^2 = 10^8 . In the second room, you can install up to 10^4 radiators, but since you need only one section in total, it's optimal to buy one radiator with one section. In the third room, there 7 variants to install radiators: [6, 0] , [5, 1] , [4, 2] , [3, 3] , [2, 4] , [1, 5] , [0, 6] . The optimal variant is [3, 3] and it costs 3^2+ 3^2 = 18 . "...

Tutorials

Educational Codeforces Round 77 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66085651 vjudge5 A Dec. 1, 2019, 4:25 a.m. OK Clang++17 Diagnostics TESTS 10 46 0 1000
66000010 Just_Matvey A Nov. 29, 2019, 6:46 p.m. OK FPC TESTS 10 31 204800 1000
66535494 AronDarkovich A Dec. 9, 2019, 9:26 a.m. OK FPC TESTS 10 31 204800 1000
65864162 otjigatell A Nov. 27, 2019, 3:30 p.m. OK FPC TESTS 10 156 307200 1000
65885194 vinhntndu A Nov. 27, 2019, 9:48 p.m. OK FPC TESTS 10 312 307200 1000
65908307 anubhavkalyani A Nov. 28, 2019, 11:55 a.m. OK GNU C11 TESTS 10 30 0 1000
65875416 TARIQ A Nov. 27, 2019, 4:51 p.m. OK GNU C11 TESTS 10 30 0 1000
65904394 Gurinel A Nov. 28, 2019, 10:15 a.m. OK GNU C11 TESTS 10 30 0 1000
65906825 SRDewan A Nov. 28, 2019, 11:18 a.m. OK GNU C11 TESTS 10 30 0 1000
66137357 rahulgoel A Dec. 1, 2019, 12:48 p.m. OK GNU C11 TESTS 10 30 0 1000
69192912 vjudge4 A Jan. 20, 2020, 2:02 p.m. OK GNU C11 TESTS 10 31 0 1000
69071635 Skolfide A Jan. 18, 2020, 10:27 p.m. OK GNU C11 TESTS 10 31 0 1000
68573851 vjudge4 A Jan. 11, 2020, 3:58 a.m. OK GNU C11 TESTS 10 31 0 1000
68201456 mohana-256 A Jan. 4, 2020, 4:02 p.m. OK GNU C11 TESTS 10 31 0 1000
68133226 vjudge1 A Jan. 3, 2020, 5:46 p.m. OK GNU C11 TESTS 10 31 0 1000
68408145 ww117755 A Jan. 8, 2020, 3:50 p.m. OK GNU C++11 TESTS 10 15 0 1000
68143069 jesuswr A Jan. 4, 2020, 1:22 a.m. OK GNU C++11 TESTS 10 15 0 1000
67169678 catalystgma A Dec. 18, 2019, 4:49 p.m. OK GNU C++11 TESTS 10 15 0 1000
66653983 sartajekram A Dec. 11, 2019, 8:55 p.m. OK GNU C++11 TESTS 10 15 0 1000
66613345 vjudge4 A Dec. 11, 2019, 12:42 a.m. OK GNU C++11 TESTS 10 15 0 1000
66261260 alocytus A Dec. 4, 2019, 8:30 a.m. OK GNU C++11 TESTS 10 15 0 1000
69612857 luogu_bot2 A Jan. 27, 2020, 12:12 p.m. OK GNU C++11 TESTS 10 15 0 1000
68683612 monk A Jan. 13, 2020, 1:33 a.m. OK GNU C++11 TESTS 10 15 0 1000
68683469 Alisa_0228 A Jan. 13, 2020, 1:23 a.m. OK GNU C++11 TESTS 10 15 0 1000
68426829 ioh A Jan. 9, 2020, 4:08 a.m. OK GNU C++11 TESTS 10 15 0 1000
69464718 Cannoli A Jan. 24, 2020, 12:22 p.m. OK GNU C++14 TESTS 10 15 0 1000
69468738 Darth_C0d3R A Jan. 24, 2020, 1:49 p.m. OK GNU C++14 TESTS 10 15 0 1000
69504071 nikhilbandi A Jan. 25, 2020, 7:47 a.m. OK GNU C++14 TESTS 10 15 0 1000
69601032 blind_coder1 A Jan. 27, 2020, 7:35 a.m. OK GNU C++14 TESTS 10 15 0 1000
69639177 AKJ0811 A Jan. 27, 2020, 7:56 p.m. OK GNU C++14 TESTS 10 15 0 1000
69730692 sumitsaraff5482 A Jan. 29, 2020, 1:27 p.m. OK GNU C++14 TESTS 10 15 0 1000
69248160 arv77 A Jan. 21, 2020, 1:31 p.m. OK GNU C++14 TESTS 10 15 0 1000
69093249 hola_hola A Jan. 19, 2020, 11 a.m. OK GNU C++14 TESTS 10 15 0 1000
69081501 Ledger A Jan. 19, 2020, 6:37 a.m. OK GNU C++14 TESTS 10 15 0 1000
69044205 akashpatel20 A Jan. 18, 2020, 10:43 a.m. OK GNU C++14 TESTS 10 15 0 1000
69680604 Shahraaz A Jan. 28, 2020, 3:31 p.m. OK GNU C++17 TESTS 10 15 0 1000
69943772 aeiou1 A Feb. 1, 2020, 6:58 a.m. OK GNU C++17 TESTS 10 15 0 1000
69940620 LIGHTYAGAMI A Feb. 1, 2020, 6 a.m. OK GNU C++17 TESTS 10 15 0 1000
69939706 Rumirion01 A Feb. 1, 2020, 5:41 a.m. OK GNU C++17 TESTS 10 15 0 1000
69917041 sheetalg A Jan. 31, 2020, 5:11 p.m. OK GNU C++17 TESTS 10 15 0 1000
69665345 Dreamy_boy A Jan. 28, 2020, 11:07 a.m. OK GNU C++17 TESTS 10 15 0 1000
69613279 C.C.A. A Jan. 27, 2020, 12:20 p.m. OK GNU C++17 TESTS 10 15 0 1000
69579781 mr_agha__seyed A Jan. 26, 2020, 4:53 p.m. OK GNU C++17 TESTS 10 15 0 1000
69549021 i_m_arin A Jan. 26, 2020, 5:23 a.m. OK GNU C++17 TESTS 10 15 0 1000
69530190 sid_s1 A Jan. 25, 2020, 4:47 p.m. OK GNU C++17 TESTS 10 15 0 1000
65910185 zhuaiballl A Nov. 28, 2019, 12:37 p.m. OK Go TESTS 10 31 0 1000
65940623 jelech2018 A Nov. 29, 2019, 5:57 a.m. OK Go TESTS 10 61 0 1000
65887698 corelof A Nov. 28, 2019, 12:40 a.m. OK Go TESTS 10 62 0 1000
65915573 LeoVertiz A Nov. 28, 2019, 2:26 p.m. OK Go TESTS 10 77 0 1000
65887662 corelof A Nov. 28, 2019, 12:37 a.m. OK Go TESTS 10 77 0 1000
66762266 ytz123 A Dec. 13, 2019, 6:55 a.m. OK Go TESTS 10 93 0 1000
66136901 tianhongw A Dec. 1, 2019, 12:36 p.m. OK Go TESTS 10 109 0 1000
66447051 Laurens A Dec. 7, 2019, 10:02 a.m. OK Haskell TESTS 10 31 102400 1000
65879283 Anonymous A Nov. 27, 2019, 6:16 p.m. OK Java 11 TESTS 10 171 0 1000
65868734 Azakarka A Nov. 27, 2019, 3:45 p.m. OK Java 11 TESTS 10 186 0 1000
65880235 machhra A Nov. 27, 2019, 6:40 p.m. OK Java 11 TESTS 10 187 0 1000
68959624 bakekaga A Jan. 16, 2020, 11:06 p.m. OK Java 11 TESTS 10 202 0 1000
68436432 warrioramrit A Jan. 9, 2020, 9:09 a.m. OK Java 11 TESTS 10 202 0 1000
67179431 jjluczyn A Dec. 18, 2019, 9:26 p.m. OK Java 11 TESTS 10 202 0 1000
65858584 Tarun27 A Nov. 27, 2019, 3:11 p.m. OK Java 11 TESTS 10 202 0 1000
67071423 yash49 A Dec. 17, 2019, 12:54 p.m. OK Java 11 TESTS 10 217 0 1000
65872828 IslamTalipovTop A Nov. 27, 2019, 4:11 p.m. OK Java 11 TESTS 10 217 0 1000
69097880 Princ_iple A Jan. 19, 2020, 12:48 p.m. OK Java 11 TESTS 10 233 0 1000
65882907 Nirav412000 A Nov. 27, 2019, 8:02 p.m. OK Java 8 TESTS 10 108 0 1000
67666130 Xylenox A Dec. 26, 2019, 5:57 p.m. OK Java 8 TESTS 10 109 0 1000
67645197 niteshgowda A Dec. 26, 2019, 9:50 a.m. OK Java 8 TESTS 10 109 0 1000
66309166 Mr.Gzj A Dec. 5, 2019, 10:44 a.m. OK Java 8 TESTS 10 109 0 1000
66084370 wanfeng_s A Dec. 1, 2019, 3:19 a.m. OK Java 8 TESTS 10 109 0 1000
65925495 Snow A Nov. 28, 2019, 6:06 p.m. OK Java 8 TESTS 10 109 0 1000
65925415 Akib_2612 A Nov. 28, 2019, 6:03 p.m. OK Java 8 TESTS 10 109 0 1000
65923411 sakt_coder A Nov. 28, 2019, 5:13 p.m. OK Java 8 TESTS 10 109 0 1000
65918518 less_than_gray A Nov. 28, 2019, 3:29 p.m. OK Java 8 TESTS 10 109 0 1000
65895869 thisbeit A Nov. 28, 2019, 6:07 a.m. OK Java 8 TESTS 10 109 0 1000
66157217 Naimur_Rahman_BSMRSTU A Dec. 2, 2019, 12:19 a.m. OK JavaScript TESTS 10 31 1228800 1000
65876326 Spheniscine A Nov. 27, 2019, 5:08 p.m. OK Kotlin TESTS 10 124 0 1000
65876194 Spheniscine A Nov. 27, 2019, 5:06 p.m. OK Kotlin TESTS 10 124 0 1000
66544098 Killer45 A Dec. 9, 2019, 12:36 p.m. OK Kotlin TESTS 10 140 0 1000
65925807 Black_Fregat A Nov. 28, 2019, 6:14 p.m. OK Kotlin TESTS 10 155 204800 1000
66387268 StinsonOvO A Dec. 6, 2019, 7:56 a.m. OK Kotlin TESTS 10 186 204800 1000
66147171 GusztavSzmolik A Dec. 1, 2019, 5:09 p.m. OK Mono C# TESTS 10 61 102400 1000
65881541 vitaly_megabyte A Nov. 27, 2019, 7:17 p.m. OK Mono C# TESTS 10 62 204800 1000
68951779 TRR A Jan. 16, 2020, 6:14 p.m. OK Mono C# TESTS 10 62 204800 1000
66028530 ShadowMurlok A Nov. 30, 2019, 9:25 a.m. OK Mono C# TESTS 10 124 204800 1000
66404514 vjudge1 A Dec. 6, 2019, 1:17 p.m. OK MS C++ TESTS 10 15 0 1000
65938233 vjudge1 A Nov. 29, 2019, 4:09 a.m. OK MS C++ TESTS 10 15 0 1000
65912864 vjudge3 A Nov. 28, 2019, 1:32 p.m. OK MS C++ TESTS 10 15 0 1000
68908590 vjudge5 A Jan. 16, 2020, 7:14 a.m. OK MS C++ TESTS 10 15 0 1000
66490780 vjudge2 A Dec. 8, 2019, 8:29 a.m. OK MS C++ TESTS 10 15 0 1000
66088872 vjudge1 A Dec. 1, 2019, 6:25 a.m. OK MS C++ TESTS 10 30 0 1000
66447269 vjudge5 A Dec. 7, 2019, 10:07 a.m. OK MS C++ TESTS 10 30 0 1000
66134000 vjudge4 A Dec. 1, 2019, 11:33 a.m. OK MS C++ TESTS 10 30 0 1000
66041826 vjudge4 A Nov. 30, 2019, 1:48 p.m. OK MS C++ TESTS 10 30 0 1000
66182759 q172496823 A Dec. 2, 2019, 1:24 p.m. OK MS C++ TESTS 10 30 0 1000
69510292 jitendra_singh A Jan. 25, 2020, 10:15 a.m. OK MS C++ 2017 TESTS 10 15 0 1000
67576900 5130 A Dec. 25, 2019, 3:13 a.m. OK MS C++ 2017 TESTS 10 15 0 1000
66892587 predelnik A Dec. 14, 2019, 9:40 p.m. OK MS C++ 2017 TESTS 10 15 0 1000
65857708 lijiayi123 A Nov. 27, 2019, 3:09 p.m. OK MS C++ 2017 TESTS 10 30 0 1000
66480382 luoxian A Dec. 8, 2019, 1:44 a.m. OK MS C++ 2017 TESTS 10 30 0 1000
66035572 vjudge3 A Nov. 30, 2019, 11:37 a.m. OK MS C++ 2017 TESTS 10 30 0 1000
65941510 dimasidorenko A Nov. 29, 2019, 6:29 a.m. OK MS C++ 2017 TESTS 10 30 0 1000
65902767 Laaahu_ A Nov. 28, 2019, 9:31 a.m. OK MS C++ 2017 TESTS 10 30 0 1000
69207440 FumeiYaziwa A Jan. 20, 2020, 6:29 p.m. OK MS C++ 2017 TESTS 10 31 0 1000
69819679 Yomapeed A Jan. 30, 2020, 7:19 a.m. OK MS C++ 2017 TESTS 10 31 0 1000
65882334 Tomasz43 A Nov. 27, 2019, 7:43 p.m. OK Node.js TESTS 10 171 1126400 1000
67167636 shivam1420 A Dec. 18, 2019, 4:06 p.m. OK Node.js TESTS 10 171 3584000 1000
65882431 Tomasz43 A Nov. 27, 2019, 7:46 p.m. OK Node.js TESTS 10 186 1228800 1000
65881982 Tomasz43 A Nov. 27, 2019, 7:32 p.m. OK Node.js TESTS 10 186 3584000 1000
65882194 Tomasz43 A Nov. 27, 2019, 7:38 p.m. OK Node.js TESTS 10 186 3891200 1000
65882058 Tomasz43 A Nov. 27, 2019, 7:34 p.m. OK Node.js TESTS 10 187 1536000 1000
65881902 Tomasz43 A Nov. 27, 2019, 7:29 p.m. OK Node.js TESTS 10 217 1331200 1000
65881585 Tomasz43 A Nov. 27, 2019, 7:18 p.m. OK Node.js TESTS 10 436 4505600 1000
65878162 Tomasz43 A Nov. 27, 2019, 5:49 p.m. OK Node.js TESTS 10 467 4710400 1000
65891640 Svlad_Cjelli A Nov. 28, 2019, 3:40 a.m. OK Ocaml TESTS 10 31 0 1000
65880358 Nidavellir A Nov. 27, 2019, 6:44 p.m. OK PascalABC.NET TESTS 10 327 204800 1000
66203089 juned.ipe A Dec. 2, 2019, 11:01 p.m. OK PHP TESTS 10 561 409600 1000
65859359 yoralbayev A Nov. 27, 2019, 3:14 p.m. OK PHP TESTS 10 873 0 1000
65933117 yumtam A Nov. 28, 2019, 10:40 p.m. OK PyPy 2 TESTS 10 171 204800 1000
65895720 aaa_bbb_ccc A Nov. 28, 2019, 6:02 a.m. OK PyPy 2 TESTS 10 218 409600 1000
66977892 FahimSifnatul A Dec. 15, 2019, 3:20 p.m. OK PyPy 2 TESTS 10 249 4812800 1000
66620388 anshuman16423 A Dec. 11, 2019, 6:41 a.m. OK PyPy 2 TESTS 10 265 204800 1000
65996406 bigdeli.farbod A Nov. 29, 2019, 5:43 p.m. OK PyPy 2 TESTS 10 280 7372800 1000
65940255 mayukh1110 A Nov. 29, 2019, 5:44 a.m. OK PyPy 2 TESTS 10 654 2457600 1000
66411100 IrOty1oX5uSp4 A Dec. 6, 2019, 3:22 p.m. OK PyPy 3 TESTS 10 139 307200 1000
69672793 EliteLabyrinth A Jan. 28, 2020, 1:28 p.m. OK PyPy 3 TESTS 10 155 1433600 1000
65877654 thekushalghosh A Nov. 27, 2019, 5:37 p.m. OK PyPy 3 TESTS 10 155 1843200 1000
65865050 yugismop A Nov. 27, 2019, 3:33 p.m. OK PyPy 3 TESTS 10 155 1843200 1000
65859068 germainegeorge A Nov. 27, 2019, 3:13 p.m. OK PyPy 3 TESTS 10 155 1843200 1000
69508075 ibalram A Jan. 25, 2020, 9:28 a.m. OK PyPy 3 TESTS 10 170 1740800 1000
68024794 tamato A Jan. 1, 2020, 4:35 a.m. OK PyPy 3 TESTS 10 170 1740800 1000
68292166 beethoven97 A Jan. 5, 2020, 10:18 p.m. OK PyPy 3 TESTS 10 171 1945600 1000
68384253 satyamcse A Jan. 8, 2020, 4:42 a.m. OK PyPy 3 TESTS 10 171 2150400 1000
67306241 Gleb1000 A Dec. 20, 2019, 9:32 p.m. OK PyPy 3 TESTS 10 171 2969600 1000
65960487 Mike10 A Nov. 29, 2019, 2:31 p.m. OK Python 2 TESTS 10 171 0 1000
65905112 youssef93 A Nov. 28, 2019, 10:34 a.m. OK Python 2 TESTS 10 171 0 1000
65904834 grayGoose A Nov. 28, 2019, 10:26 a.m. OK Python 2 TESTS 10 171 0 1000
65883811 elistark A Nov. 27, 2019, 8:38 p.m. OK Python 2 TESTS 10 171 0 1000
66153453 br0wn A Dec. 1, 2019, 8:22 p.m. OK Python 2 TESTS 10 186 102400 1000
66300134 phoenix28 A Dec. 5, 2019, 6:46 a.m. OK Python 2 TESTS 10 233 0 1000
65884522 bromanz A Nov. 27, 2019, 9:12 p.m. OK Python 2 TESTS 10 701 102400 1000
65935866 neuhq_haha A Nov. 29, 2019, 1:59 a.m. OK Python 2 TESTS 10 717 307200 1000
67390879 vorzawk A Dec. 21, 2019, 7:41 p.m. OK Python 3 TESTS 10 108 0 1000
66263654 youdit A Dec. 4, 2019, 9:28 a.m. OK Python 3 TESTS 10 108 204800 1000
65899153 kit.shiron A Nov. 28, 2019, 7:51 a.m. OK Python 3 TESTS 10 108 204800 1000
65881519 mdaw A Nov. 27, 2019, 7:16 p.m. OK Python 3 TESTS 10 108 204800 1000
69644004 rockbirds12 A Jan. 27, 2020, 11:08 p.m. OK Python 3 TESTS 10 109 0 1000
69192481 cs1g A Jan. 20, 2020, 1:55 p.m. OK Python 3 TESTS 10 109 0 1000
68590415 ebi_fly A Jan. 11, 2020, 12:29 p.m. OK Python 3 TESTS 10 109 0 1000
67686599 dlh A Dec. 27, 2019, 9:11 a.m. OK Python 3 TESTS 10 109 0 1000
67418218 Koo_ A Dec. 22, 2019, 10:41 a.m. OK Python 3 TESTS 10 109 0 1000
67309453 dj_contest A Dec. 21, 2019, 1:12 a.m. OK Python 3 TESTS 10 109 0 1000
66160346 erica3179 A Dec. 2, 2019, 3:52 a.m. OK Ruby TESTS 10 62 0 1000
69038568 akiradeveloper A Jan. 18, 2020, 9:35 a.m. OK Rust TESTS 10 108 921600 1000

remove filters

Back to search problems