Codeforces Round 526 (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
1084 Codeforces Round 526 (Div. 2) FINISHED False 7200 187363499 Dec. 10, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7938 ) A The Fair Nut and Elevator PROGRAMMING brute force implementation 1000

B"The Fair Nut lives in n story house. a_i people live on the i -th floor of the house. Every person uses elevator twice a day: to get from the floor where he/she lives to the ground (first) floor and to get from the first floor to the floor where he/she lives, when he/she comes back home in the evening. It was decided that elevator, when it is not used, will stay on the x -th floor, but x hasn't been chosen yet. When a person needs to get from floor a to floor b , elevator follows the simple algorithm: Your task is to help Nut to find the minimum number of electricity units, that it would be enough for one day, by choosing an optimal the x -th floor. Don't forget than elevator initially stays on the x -th floor. The first line contains one integer n ( 1 <= q n <= q 100 ) -- the number of floors. The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 100 ) -- the number of people on each floor. In a single line, print the answer to the problem -- the minimum number of electricity units. In the first example, the answer can be achieved by choosing the second floor as the x -th floor. Each person from the second floor (there are two of them) would spend 4 units of electricity per day ( 2 to get down and 2 to get up), and one person from the third would spend 8 units of electricity per day ( 4 to get down and 4 to get up). 4 cdot 2 + 8 cdot 1 = 16 . In the second example, the answer can be achieved by choosing the first floor as the x -th floor. "...

Tutorials

63753

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47874323 Tractatus A Jan. 3, 2019, 2:30 p.m. OK Clang++17 Diagnostics TESTS 33 46 0 1000
68629723 vjudge2 A Jan. 12, 2020, 1:57 a.m. OK Clang++17 Diagnostics TESTS 33 46 0 1000
46886247 xiao_jiu A Dec. 11, 2018, 12:46 a.m. OK Clang++17 Diagnostics TESTS 33 46 716800 1000
65259370 sash0 A Nov. 17, 2019, 2:30 p.m. OK D TESTS 33 31 0 1000
47368744 shaurma2.0 A Dec. 22, 2018, 1:01 p.m. OK Delphi TESTS 33 31 102400 1000
47469978 tumbleweed A Dec. 24, 2018, 9:34 p.m. OK Delphi TESTS 33 31 102400 1000
46860867 ruban A Dec. 10, 2018, 4:49 p.m. OK Delphi TESTS 33 31 11776000 1000
47349567 vjudge5 A Dec. 22, 2018, 12:45 a.m. OK FPC TESTS 33 30 0 1000
57366103 shenmadongdong A July 20, 2019, 9:15 a.m. OK FPC TESTS 33 31 0 1000
47038662 dlightny A Dec. 15, 2018, 1:36 p.m. OK FPC TESTS 33 31 0 1000
46994993 _Time_Lord_ A Dec. 14, 2018, 7:48 a.m. OK FPC TESTS 33 31 0 1000
46862443 Kostin2020 A Dec. 10, 2018, 4:56 p.m. OK FPC TESTS 33 31 0 1000
51332509 luogu_bot3 A March 15, 2019, 12:43 p.m. OK FPC TESTS 33 31 0 1000
47950893 luogu_bot5 A Jan. 5, 2019, 12:48 a.m. OK FPC TESTS 33 31 0 1000
47349652 vjudge1 A Dec. 22, 2018, 12:52 a.m. OK FPC TESTS 33 31 0 1000
47469961 tumbleweed A Dec. 24, 2018, 9:33 p.m. OK FPC TESTS 33 31 102400 1000
47469966 tumbleweed A Dec. 24, 2018, 9:34 p.m. OK FPC TESTS 33 31 102400 1000
60326106 BugLeave A Sept. 10, 2019, 1:37 a.m. OK GNU C11 TESTS 33 15 0 1000
47446687 pandasamanvaya A Dec. 24, 2018, 6:47 a.m. OK GNU C11 TESTS 33 15 0 1000
46873119 Kush2443Codechef A Dec. 10, 2018, 5:52 p.m. OK GNU C11 TESTS 33 30 0 1000
46875568 spandans A Dec. 10, 2018, 6:09 p.m. OK GNU C11 TESTS 33 30 0 1000
46876390 qpen A Dec. 10, 2018, 6:14 p.m. OK GNU C11 TESTS 33 30 0 1000
46900091 SzM_TREU A Dec. 11, 2018, 11:30 a.m. OK GNU C11 TESTS 33 30 0 1000
47176450 Daymaker9000 A Dec. 17, 2018, 5:46 p.m. OK GNU C11 TESTS 33 30 0 1000
47505048 Jefferson_Rodrigues7 A Dec. 25, 2018, 9:39 p.m. OK GNU C11 TESTS 33 30 0 1000
47965817 rahulbarik583 A Jan. 5, 2019, 12:04 p.m. OK GNU C11 TESTS 33 30 0 1000
47966390 rahulbarik583 A Jan. 5, 2019, 12:20 p.m. OK GNU C11 TESTS 33 30 0 1000
46860488 _Winter_ A Dec. 10, 2018, 4:48 p.m. OK GNU C++11 TESTS 33 15 0 1000
46860504 annnirudh A Dec. 10, 2018, 4:48 p.m. OK GNU C++11 TESTS 33 15 0 1000
46865433 Kotehok3 A Dec. 10, 2018, 5:08 p.m. OK GNU C++11 TESTS 33 15 0 1000
46907422 vjudge2 A Dec. 11, 2018, 3 p.m. OK GNU C++11 TESTS 33 15 0 1000
47000434 vjudge2 A Dec. 14, 2018, 11:16 a.m. OK GNU C++11 TESTS 33 15 0 1000
47243255 mostwanted7 A Dec. 19, 2018, 3:48 a.m. OK GNU C++11 TESTS 33 15 0 1000
47876795 sabbir_cse14 A Jan. 3, 2019, 3:53 p.m. OK GNU C++11 TESTS 33 15 0 1000
50766726 brandon.fuller A March 3, 2019, 11:05 p.m. OK GNU C++11 TESTS 33 15 0 1000
52137598 luogu_bot1 A April 1, 2019, 4:20 a.m. OK GNU C++11 TESTS 33 15 0 1000
52216303 czd413 A April 2, 2019, 2:07 a.m. OK GNU C++11 TESTS 33 15 0 1000
58853319 ploplo A Aug. 15, 2019, 8:20 a.m. OK GNU C++14 TESTS 33 15 0 1000
62359930 vjudge1 A Oct. 11, 2019, 12:10 p.m. OK GNU C++14 TESTS 33 15 0 1000
59784006 Abhi13 A Aug. 31, 2019, 4:48 a.m. OK GNU C++14 TESTS 33 15 0 1000
59445146 p.ferrari A Aug. 25, 2019, 1:01 p.m. OK GNU C++14 TESTS 33 15 0 1000
58522755 Dirilis A Aug. 10, 2019, 5:45 a.m. OK GNU C++14 TESTS 33 15 0 1000
57590891 hackcyborg A July 23, 2019, 12:15 p.m. OK GNU C++14 TESTS 33 15 0 1000
57142002 secret_giggle A July 16, 2019, 11:29 a.m. OK GNU C++14 TESTS 33 15 0 1000
56836250 rahul_98 A July 11, 2019, 9:12 a.m. OK GNU C++14 TESTS 33 15 0 1000
54913153 Dasha_progr. A June 1, 2019, 12:16 p.m. OK GNU C++14 TESTS 33 15 0 1000
54659897 samarpandey A May 26, 2019, 10:15 a.m. OK GNU C++14 TESTS 33 15 0 1000
54890555 Casio991ms A May 31, 2019, 8:01 p.m. OK GNU C++17 TESTS 33 15 0 1000
54970070 Saket1612 A June 2, 2019, 8:12 a.m. OK GNU C++17 TESTS 33 15 0 1000
55115703 nipul1 A June 5, 2019, 8:33 a.m. OK GNU C++17 TESTS 33 15 0 1000
55504142 sanchit17 A June 12, 2019, 4:49 p.m. OK GNU C++17 TESTS 33 15 0 1000
55603382 Harrshit221b A June 15, 2019, 8:01 p.m. OK GNU C++17 TESTS 33 15 0 1000
55834053 Nafis_Sajid A June 20, 2019, 2:29 p.m. OK GNU C++17 TESTS 33 15 0 1000
57453880 Partharora1010 A July 21, 2019, 10:47 a.m. OK GNU C++17 TESTS 33 15 0 1000
57811402 humble A July 26, 2019, 5:31 p.m. OK GNU C++17 TESTS 33 15 0 1000
57960962 _AAA_ A July 29, 2019, 10:22 p.m. OK GNU C++17 TESTS 33 15 0 1000
61864071 maester A Oct. 4, 2019, 4:06 p.m. OK GNU C++17 TESTS 33 15 0 1000
46894880 lolopat2 A Dec. 11, 2018, 8:38 a.m. OK Go TESTS 33 31 0 1000
47019486 davidguandev A Dec. 14, 2018, 10:31 p.m. OK Go TESTS 33 46 0 1000
46864150 lolopat2 A Dec. 10, 2018, 5:03 p.m. OK Go TESTS 33 46 0 1000
52923903 jedikni A April 17, 2019, 7:20 p.m. OK Haskell TESTS 33 46 102400 1000
61437986 formalist A Sept. 28, 2019, 5:27 p.m. OK Java 8 TESTS 33 108 0 1000
54372215 Vatsal53 A May 19, 2019, 7:06 a.m. OK Java 8 TESTS 33 108 0 1000
52872886 goyalakash1997 A April 16, 2019, 6:15 p.m. OK Java 8 TESTS 33 108 0 1000
48865139 donli A Jan. 24, 2019, 2:30 a.m. OK Java 8 TESTS 33 108 0 1000
48300932 Darth_Jar_Jar_Binks A Jan. 12, 2019, 4:52 p.m. OK Java 8 TESTS 33 108 0 1000
47009246 kocko A Dec. 14, 2018, 3:34 p.m. OK Java 8 TESTS 33 108 0 1000
46886319 ViciousCoder A Dec. 11, 2018, 12:54 a.m. OK Java 8 TESTS 33 108 0 1000
69639138 Bhavya_Arora A Jan. 27, 2020, 7:55 p.m. OK Java 8 TESTS 33 109 0 1000
67432244 adzi A Dec. 22, 2019, 3:38 p.m. OK Java 8 TESTS 33 109 0 1000
59538980 Jarik A Aug. 26, 2019, 6:04 p.m. OK Java 8 TESTS 33 109 0 1000
48547856 pauloxavier A Jan. 18, 2019, 9:12 p.m. OK JavaScript TESTS 33 31 0 1000
46881320 nuralamcse024 A Dec. 10, 2018, 7:36 p.m. OK JavaScript TESTS 33 31 0 1000
46862266 hacker_prime A Dec. 10, 2018, 4:55 p.m. OK JavaScript TESTS 33 31 0 1000
50588615 SergeySh A Feb. 28, 2019, 5:55 a.m. OK JavaScript TESTS 33 31 1126400 1000
46871213 nuralamcse024 A Dec. 10, 2018, 5:40 p.m. OK JavaScript TESTS 33 46 102400 1000
47450618 Killer45 A Dec. 24, 2018, 9:24 a.m. OK Kotlin TESTS 33 109 0 1000
47241173 moss3s A Dec. 19, 2018, 1:51 a.m. OK Kotlin TESTS 33 124 0 1000
46860047 Lishy2010 A Dec. 10, 2018, 4:46 p.m. OK Kotlin TESTS 33 140 0 1000
46868856 SergeevM A Dec. 10, 2018, 5:26 p.m. OK Kotlin TESTS 33 156 102400 1000
46867916 List_412 A Dec. 10, 2018, 5:20 p.m. OK Kotlin TESTS 33 156 1126400 1000
46865589 daniil.vaino A Dec. 10, 2018, 5:09 p.m. OK Mono C# TESTS 33 46 0 1000
55123800 og.kostya A June 5, 2019, 11:56 a.m. OK Mono C# TESTS 33 46 0 1000
48890489 TRR A Jan. 24, 2019, 1:53 p.m. OK Mono C# TESTS 33 46 0 1000
47318860 Coder_D A Dec. 21, 2018, 6:23 a.m. OK Mono C# TESTS 33 46 0 1000
47039042 Solar A Dec. 15, 2018, 1:47 p.m. OK Mono C# TESTS 33 46 0 1000
46932579 Ruban_Denic A Dec. 12, 2018, 12:21 p.m. OK Mono C# TESTS 33 46 0 1000
46863051 vedroboev A Dec. 10, 2018, 4:58 p.m. OK Mono C# TESTS 33 46 0 1000
46862669 Travonka A Dec. 10, 2018, 4:57 p.m. OK Mono C# TESTS 33 46 0 1000
47138099 AlexTemp A Dec. 16, 2018, 6:29 p.m. OK Mono C# TESTS 33 46 307200 1000
46862181 T-D-K A Dec. 10, 2018, 4:55 p.m. OK Mono C# TESTS 33 61 0 1000
48312834 vjudge2 A Jan. 13, 2019, 4:08 a.m. OK MS C++ TESTS 33 15 0 1000
48474813 vjudge2 A Jan. 17, 2019, 1:35 a.m. OK MS C++ TESTS 33 30 0 1000
47670456 ballerbuoy A Dec. 29, 2018, 5:26 a.m. OK MS C++ TESTS 33 30 0 1000
48475799 vjudge2 A Jan. 17, 2019, 2:24 a.m. OK MS C++ TESTS 33 30 0 1000
48713961 vjudge4 A Jan. 22, 2019, 10:08 a.m. OK MS C++ TESTS 33 30 0 1000
49815126 vjudge4 A Feb. 12, 2019, 5:21 a.m. OK MS C++ TESTS 33 30 0 1000
49815318 vjudge2 A Feb. 12, 2019, 5:29 a.m. OK MS C++ TESTS 33 30 0 1000
49816729 vjudge1 A Feb. 12, 2019, 6:23 a.m. OK MS C++ TESTS 33 30 0 1000
53723722 vjudge2 A May 4, 2019, 2:25 a.m. OK MS C++ TESTS 33 30 0 1000
53725361 vjudge2 A May 4, 2019, 3:49 a.m. OK MS C++ TESTS 33 30 0 1000
58561225 ZSTU-2018329621261 A Aug. 11, 2019, 5:51 a.m. OK MS C++ 2017 TESTS 33 31 0 1000
51669266 pinder A March 22, 2019, 7:31 a.m. OK MS C++ 2017 TESTS 33 31 0 1000
51968276 Extraordinary_ A March 29, 2019, 11:09 a.m. OK MS C++ 2017 TESTS 33 31 0 1000
52776855 Veasky A April 15, 2019, 12:25 p.m. OK MS C++ 2017 TESTS 33 31 0 1000
54879452 Mad112233 A May 31, 2019, 1:30 p.m. OK MS C++ 2017 TESTS 33 31 0 1000
60681585 vjudge1 A Sept. 16, 2019, 2:05 p.m. OK MS C++ 2017 TESTS 33 31 0 1000
54879546 Mad112233 A May 31, 2019, 1:32 p.m. OK MS C++ 2017 TESTS 33 31 0 1000
56743609 KATAYPEPE A July 9, 2019, 8:42 a.m. OK MS C++ 2017 TESTS 33 31 0 1000
61875595 parisa.mqdm A Oct. 4, 2019, 8 p.m. OK MS C++ 2017 TESTS 33 31 0 1000
62607760 Moen1578 A Oct. 15, 2019, 8:29 a.m. OK MS C++ 2017 TESTS 33 31 0 1000
48302690 moballack A Jan. 12, 2019, 5:50 p.m. OK Node.js TESTS 33 155 409600 1000
46915469 tushararora A Dec. 11, 2018, 8 p.m. OK Node.js TESTS 33 155 1126400 1000
46883870 parina1 A Dec. 10, 2018, 9:16 p.m. OK Node.js TESTS 33 171 512000 1000
48051337 pirvu.catalin94 A Jan. 7, 2019, 9:17 a.m. OK Node.js TESTS 33 202 512000 1000
46862269 sk0 A Dec. 10, 2018, 4:55 p.m. OK Ocaml TESTS 33 31 307200 1000
46994754 Martakor A Dec. 14, 2018, 7:41 a.m. OK PascalABC.NET TESTS 33 31 0 1000
46994544 Martakor A Dec. 14, 2018, 7:31 a.m. OK PascalABC.NET TESTS 33 31 0 1000
46997571 Dares34 A Dec. 14, 2018, 9:30 a.m. OK PascalABC.NET TESTS 33 46 0 1000
46994704 Martakor A Dec. 14, 2018, 7:38 a.m. OK PascalABC.NET TESTS 33 46 0 1000
47180361 dymeon A Dec. 17, 2018, 8:17 p.m. OK PascalABC.NET TESTS 33 46 102400 1000
51120344 denis_g_142 A March 10, 2019, 8:57 a.m. OK PascalABC.NET TESTS 33 311 102400 1000
46899771 mayakin A Dec. 11, 2018, 11:21 a.m. OK PHP TESTS 33 46 512000 1000
53947547 codeseeker A May 10, 2019, 7:40 a.m. OK PyPy 2 TESTS 33 124 102400 1000
46866337 kbagoli1999 A Dec. 10, 2018, 5:13 p.m. OK PyPy 2 TESTS 33 124 204800 1000
46872497 Yans A Dec. 10, 2018, 5:48 p.m. OK PyPy 2 TESTS 33 124 204800 1000
50424348 thenewguy39 veedee A Feb. 24, 2019, 10:43 a.m. OK PyPy 2 TESTS 33 124 307200 1000
50905671 c1729 A March 6, 2019, 7:55 p.m. OK PyPy 2 TESTS 33 140 102400 1000
46862487 _kawaii_neko_ A Dec. 10, 2018, 4:56 p.m. OK PyPy 2 TESTS 33 140 204800 1000
46863491 supachai_pay A Dec. 10, 2018, 5 p.m. OK PyPy 2 TESTS 33 155 204800 1000
46861875 pavankatta A Dec. 10, 2018, 4:53 p.m. OK PyPy 2 TESTS 33 155 1433600 1000
46978403 nealzane A Dec. 13, 2018, 6:04 p.m. OK PyPy 2 TESTS 33 186 307200 1000
47531882 saket13 A Dec. 26, 2018, 7:54 p.m. OK PyPy 2 TESTS 33 327 7680000 1000
49206018 _Edward A Jan. 30, 2019, 1:55 p.m. OK PyPy 3 TESTS 33 124 0 1000
46920532 megaspazz A Dec. 12, 2018, 4:14 a.m. OK PyPy 3 TESTS 33 124 0 1000
46859452 geek_geek A Dec. 10, 2018, 4:42 p.m. OK PyPy 3 TESTS 33 124 0 1000
46908164 prajjwal.sharm A Dec. 11, 2018, 3:22 p.m. OK PyPy 3 TESTS 33 124 0 1000
55542870 sonhuytranpython2 A June 13, 2019, 9:33 p.m. OK PyPy 3 TESTS 33 124 0 1000
49662219 sybergeek rachit_raj A Feb. 9, 2019, 12:56 p.m. OK PyPy 3 TESTS 33 124 0 1000
46868319 rraiyani1997 A Dec. 10, 2018, 5:23 p.m. OK PyPy 3 TESTS 33 139 0 1000
46860348 mathdude42 A Dec. 10, 2018, 4:47 p.m. OK PyPy 3 TESTS 33 139 0 1000
54076581 nivekiba A May 13, 2019, 8:36 p.m. OK PyPy 3 TESTS 33 139 102400 1000
63390778 sajjad_firouze A Oct. 25, 2019, 3:09 p.m. OK PyPy 3 TESTS 33 140 0 1000
47386853 biltharesatyendra A Dec. 23, 2018, 5:40 a.m. OK Python 2 TESTS 33 155 0 1000
47021945 god_alonely A Dec. 15, 2018, 3:25 a.m. OK Python 2 TESTS 33 170 0 1000
47141745 FlyingBag65 A Dec. 16, 2018, 8:34 p.m. OK Python 2 TESTS 33 171 0 1000
48645482 scambret A Jan. 20, 2019, 5:16 p.m. OK Python 2 TESTS 33 171 0 1000
48080460 ryanr1230 A Jan. 8, 2019, 7:27 a.m. OK Python 2 TESTS 33 171 0 1000
47708066 kingmoshe A Dec. 29, 2018, 10:42 p.m. OK Python 2 TESTS 33 171 0 1000
47492092 franckmy A Dec. 25, 2018, 12:47 p.m. OK Python 2 TESTS 33 171 0 1000
47251573 kaif_7 A Dec. 19, 2018, 8:30 a.m. OK Python 2 TESTS 33 171 0 1000
47038472 xwtkdym A Dec. 15, 2018, 1:31 p.m. OK Python 2 TESTS 33 171 0 1000
47031689 markovDPro A Dec. 15, 2018, 10:12 a.m. OK Python 2 TESTS 33 171 0 1000
48775967 KanhuKeNanu A Jan. 23, 2019, 4 a.m. OK Python 3 TESTS 33 108 0 1000
47445869 AbduSharif A Dec. 24, 2018, 6:09 a.m. OK Python 3 TESTS 33 108 0 1000
64854561 egaeus A Nov. 13, 2019, 9:38 p.m. OK Python 3 TESTS 33 109 0 1000
55122928 Vasiliy_48 A June 5, 2019, 11:33 a.m. OK Python 3 TESTS 33 109 0 1000
54643139 plourde27 A May 25, 2019, 9 p.m. OK Python 3 TESTS 33 109 0 1000
53085205 Mehrdad_ravenS A April 21, 2019, 8:35 a.m. OK Python 3 TESTS 33 109 0 1000
51367736 Kate97 A March 16, 2019, 10:30 a.m. OK Python 3 TESTS 33 109 0 1000
50697996 saikat_bhuiyan A March 2, 2019, 7:08 p.m. OK Python 3 TESTS 33 109 0 1000
50778165 shfkv01 A March 4, 2019, 9:49 a.m. OK Python 3 TESTS 33 109 0 1000
69789334 karan_chawla A Jan. 29, 2020, 6:02 p.m. OK Python 3 TESTS 33 109 0 1000
47089298 cielavenir A Dec. 16, 2018, 4:20 a.m. OK Ruby TESTS 33 62 0 1000
46904737 koikotya A Dec. 11, 2018, 1:40 p.m. OK Ruby TESTS 33 62 102400 1000
46874017 koka831 A Dec. 10, 2018, 5:58 p.m. OK Rust TESTS 33 31 0 1000
46864328 arzk A Dec. 10, 2018, 5:03 p.m. OK Rust TESTS 33 46 0 1000
46910884 hot_yoghurt A Dec. 11, 2018, 4:51 p.m. OK Scala TESTS 33 452 0 1000
46861434 nafeezabrar A Dec. 10, 2018, 4:51 p.m. OK Scala TESTS 33 452 0 1000
46877384 yakamoto A Dec. 10, 2018, 6:22 p.m. OK Scala TESTS 33 467 0 1000

remove filters

Back to search problems