CodeCraft-19 and Codeforces Round 537 (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
1111 CodeCraft-19 and Codeforces Round 537 (Div. 2) FINISHED False 7200 187971863 Feb. 3, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6322 ) B Average Superhero Gang Power PROGRAMMING brute force implementation math 1600

B"Every superhero has been given a power value by the Felicity Committee. The avengers crew wants to maximize the average power of the superheroes in their team by performing certain operations. Initially, there are n superheroes in avengers team having powers a_1, a_2, ldots, a_n , respectively. In one operation, they can remove one superhero from their team (if there are at least two) or they can increase the power of a superhero by 1 . They can do at most m operations. Also, on a particular superhero at most k operations can be done. Can you help the avengers team to maximize the average power of their crew? The first line contains three integers n , k and m ( 1 <= n <= 10^{5} , 1 <= k <= 10^{5} , 1 <= m <= 10^{7} ) -- the number of superheroes, the maximum number of times you can increase power of a particular superhero, and the total maximum number of operations. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^{6} ) -- the initial powers of the superheroes in the cast of avengers. Output a single number -- the maximum final average power. Your answer is considered correct if its absolute or relative error does not exceed 10^{-6} . Formally, let your answer be a , and the jury's answer be b . Your answer is accepted if and only if frac{|a - b|}{ max{(1, |b|)}} <= 10^{-6} . In the first example, the maximum average is obtained by deleting the first element and increasing the second element four times. In the second sample, one of the ways to achieve maximum average is to delete the first and the third element and increase the second and the fourth elements by 2 each. "...

Tutorials

CodeCraft-19 and Codeforces Round #537 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49703427 RawFisher B Feb. 10, 2019, 2:19 p.m. OK Clang++17 Diagnostics TESTS 121 140 0 1600
49942676 ACMWGR B Feb. 15, 2019, 10:31 a.m. OK Clang++17 Diagnostics TESTS 121 421 1024000 1600
49942580 ACMWGR B Feb. 15, 2019, 10:28 a.m. OK Clang++17 Diagnostics TESTS 121 452 1024000 1600
49509236 Pashechka B Feb. 5, 2019, 7:12 p.m. OK Clang++17 Diagnostics TESTS 121 452 1024000 1600
50630744 jeong000307 B March 1, 2019, 9 a.m. OK Clang++17 Diagnostics TESTS 121 482 1024000 1600
50317471 Daria_the_jedi B Feb. 22, 2019, 12:57 p.m. OK Clang++17 Diagnostics TESTS 121 499 1024000 1600
49696295 luogu_bot3 B Feb. 10, 2019, 1:56 p.m. OK FPC TESTS 121 46 409600 1600
51891451 chaorenhaha B March 27, 2019, 9:21 a.m. OK FPC TESTS 121 61 7987200 1600
51891478 chaorenhaha B March 27, 2019, 9:22 a.m. OK FPC TESTS 121 62 8294400 1600
49666636 DravenX618 B Feb. 9, 2019, 2:45 p.m. OK GNU C11 TESTS 121 46 409600 1600
49481660 MattG B Feb. 4, 2019, 11:24 p.m. OK GNU C11 TESTS 121 61 819200 1600
62961315 vjudge1 B Oct. 20, 2019, 12:54 a.m. OK GNU C11 TESTS 121 61 1638400 1600
49462603 akshat_goyal B Feb. 4, 2019, 1:44 p.m. OK GNU C11 TESTS 121 61 1638400 1600
62874832 luogu_bot3 B Oct. 18, 2019, 2:57 p.m. OK GNU C11 TESTS 121 62 409600 1600
49760525 howard919901 B Feb. 11, 2019, 8:44 a.m. OK GNU C11 TESTS 121 62 409600 1600
49666896 DravenX618 B Feb. 9, 2019, 2:52 p.m. OK GNU C11 TESTS 121 62 409600 1600
62874898 vjudge2 B Oct. 18, 2019, 2:59 p.m. OK GNU C11 TESTS 121 62 409600 1600
50876648 vjudge5 B March 6, 2019, 6:37 a.m. OK GNU C11 TESTS 121 62 819200 1600
50876646 vjudge4 B March 6, 2019, 6:37 a.m. OK GNU C11 TESTS 121 62 819200 1600
49872062 Dilute B Feb. 13, 2019, 2:15 p.m. OK GNU C++11 TESTS 121 31 409600 1600
50142962 luogu_bot1 B Feb. 19, 2019, 12:23 a.m. OK GNU C++11 TESTS 121 31 409600 1600
49487156 Zechariah_2001 B Feb. 5, 2019, 6:48 a.m. OK GNU C++11 TESTS 121 31 409600 1600
49695182 luogu_bot5 B Feb. 10, 2019, 1:24 p.m. OK GNU C++11 TESTS 121 31 819200 1600
49715503 chi_chi B Feb. 10, 2019, 3:02 p.m. OK GNU C++11 TESTS 121 31 819200 1600
49769420 Z_zc B Feb. 11, 2019, 1:02 p.m. OK GNU C++11 TESTS 121 31 819200 1600
50088443 hangyesheng B Feb. 18, 2019, 8:52 a.m. OK GNU C++11 TESTS 121 31 819200 1600
49522318 Thatisgood B Feb. 6, 2019, 8:56 a.m. OK GNU C++11 TESTS 121 31 819200 1600
49488813 luogu_bot5 B Feb. 5, 2019, 8:13 a.m. OK GNU C++11 TESTS 121 31 1228800 1600
49491960 stal_xy23z7b8 B Feb. 5, 2019, 10:29 a.m. OK GNU C++11 TESTS 121 31 1228800 1600
49436619 Linkus B Feb. 3, 2019, 7:16 p.m. OK GNU C++14 TESTS 121 31 409600 1600
51035610 DXTsT B March 8, 2019, 3:02 p.m. OK GNU C++14 TESTS 121 46 409600 1600
61960327 vjudge1 B Oct. 6, 2019, 7:16 a.m. OK GNU C++14 TESTS 121 46 409600 1600
55115420 vjudge5 B June 5, 2019, 8:25 a.m. OK GNU C++14 TESTS 121 46 409600 1600
53797193 Robbens B May 5, 2019, 3:57 p.m. OK GNU C++14 TESTS 121 46 409600 1600
52935949 MakiseVon B April 18, 2019, 6:26 a.m. OK GNU C++14 TESTS 121 46 409600 1600
51280355 usd B March 14, 2019, 3:09 a.m. OK GNU C++14 TESTS 121 46 409600 1600
51003557 Fantastic2009 B March 8, 2019, 8:04 a.m. OK GNU C++14 TESTS 121 46 409600 1600
50693409 DIvanCode B March 2, 2019, 4:47 p.m. OK GNU C++14 TESTS 121 46 409600 1600
50612541 _greymatter B Feb. 28, 2019, 5:35 p.m. OK GNU C++14 TESTS 121 46 409600 1600
50707131 blackjack001 B March 3, 2019, 4:54 a.m. OK GNU C++17 TESTS 121 46 409600 1600
51576859 wjfwjfwjf B March 20, 2019, 1:13 p.m. OK GNU C++17 TESTS 121 46 409600 1600
54472827 hznu_csx B May 22, 2019, 6:36 a.m. OK GNU C++17 TESTS 121 46 409600 1600
54472843 vjudge2 B May 22, 2019, 6:36 a.m. OK GNU C++17 TESTS 121 46 409600 1600
54635265 wassim.omais B May 25, 2019, 4:37 p.m. OK GNU C++17 TESTS 121 46 409600 1600
57070724 cjnlbq B July 15, 2019, 2:25 a.m. OK GNU C++17 TESTS 121 46 409600 1600
61950855 RunGood B Oct. 6, 2019, 3:19 a.m. OK GNU C++17 TESTS 121 46 409600 1600
61960276 wingsjj B Oct. 6, 2019, 7:15 a.m. OK GNU C++17 TESTS 121 46 409600 1600
67853450 Rahul_cpp B Dec. 29, 2019, 4:51 a.m. OK GNU C++17 TESTS 121 46 409600 1600
69612152 vjudge5 B Jan. 27, 2020, 11:52 a.m. OK GNU C++17 TESTS 121 46 409600 1600
49462619 life_is_not_bed_of_roses B Feb. 4, 2019, 1:44 p.m. OK Go TESTS 121 109 5222400 1600
49679577 old_boo B Feb. 9, 2019, 11:03 p.m. OK Go TESTS 121 156 5222400 1600
49529135 KharYusuf B Feb. 6, 2019, 1:01 p.m. OK Java 8 TESTS 121 124 0 1600
49471584 icpc_loser B Feb. 4, 2019, 5:20 p.m. OK Java 8 TESTS 121 124 0 1600
49445961 aman28rwt B Feb. 4, 2019, 2:59 a.m. OK Java 8 TESTS 121 139 0 1600
62329531 sonusingh.nitaa B Oct. 10, 2019, 7:59 p.m. OK Java 8 TESTS 121 140 0 1600
56032927 programbhavan B June 25, 2019, 10:35 a.m. OK Java 8 TESTS 121 140 0 1600
55974149 beroul B June 23, 2019, 4:29 p.m. OK Java 8 TESTS 121 140 0 1600
55541842 prem_cse B June 13, 2019, 8:28 p.m. OK Java 8 TESTS 121 140 0 1600
54495341 azhar556 B May 22, 2019, 5:27 p.m. OK Java 8 TESTS 121 140 0 1600
51488094 MubtasimShahriar B March 19, 2019, 2:27 p.m. OK Java 8 TESTS 121 140 0 1600
50299084 mTvTm B Feb. 22, 2019, 12:12 a.m. OK Java 8 TESTS 121 140 0 1600
50769445 exs B March 4, 2019, 2:57 a.m. OK Kotlin TESTS 121 202 614400 1600
49442278 matej.pristak B Feb. 3, 2019, 10:06 p.m. OK Kotlin TESTS 121 280 4505600 1600
49452222 vlavlamel. B Feb. 4, 2019, 7:59 a.m. OK Kotlin TESTS 121 280 4608000 1600
59089315 Spheniscine B Aug. 19, 2019, 12:13 p.m. OK Kotlin TESTS 121 280 4812800 1600
59089028 Spheniscine B Aug. 19, 2019, 12:07 p.m. OK Kotlin TESTS 121 280 4812800 1600
56303675 og.kostya B June 30, 2019, 10:27 a.m. OK Mono C# TESTS 121 77 409600 1600
49446116 eki B Feb. 4, 2019, 3:10 a.m. OK Mono C# TESTS 121 77 7577600 1600
49443296 fastnoise B Feb. 3, 2019, 11:27 p.m. OK Mono C# TESTS 121 93 13721600 1600
49450210 fr0st B Feb. 4, 2019, 6:40 a.m. OK Mono C# TESTS 121 109 12902400 1600
49465813 TaplierShiru B Feb. 4, 2019, 3 p.m. OK Mono C# TESTS 121 109 13721600 1600
54997736 camypaper B June 3, 2019, 1:27 a.m. OK Mono C# TESTS 121 124 11776000 1600
49749309 lipmas B Feb. 11, 2019, 1:17 a.m. OK Mono C# TESTS 121 155 15052800 1600
54475785 vjudge5 B May 22, 2019, 8:23 a.m. OK MS C++ TESTS 121 46 409600 1600
54474816 vjudge4 B May 22, 2019, 7:48 a.m. OK MS C++ TESTS 121 46 409600 1600
51293174 vjudge1 B March 14, 2019, 11:26 a.m. OK MS C++ TESTS 121 46 409600 1600
62109612 vjudge2 B Oct. 8, 2019, 11:50 a.m. OK MS C++ TESTS 121 46 409600 1600
62883206 vjudge4 B Oct. 18, 2019, 5:28 p.m. OK MS C++ TESTS 121 46 409600 1600
69821849 vjudge1 B Jan. 30, 2020, 8:06 a.m. OK MS C++ TESTS 121 46 409600 1600
60469471 vjudge5 B Sept. 13, 2019, 4:29 a.m. OK MS C++ TESTS 121 46 409600 1600
60595169 vjudge4 B Sept. 15, 2019, 5:07 a.m. OK MS C++ TESTS 121 46 409600 1600
61894664 vjudge4 B Oct. 5, 2019, 6:54 a.m. OK MS C++ TESTS 121 46 409600 1600
62876229 vjudge3 B Oct. 18, 2019, 3:24 p.m. OK MS C++ TESTS 121 46 409600 1600
49540331 hwangganzi B Feb. 6, 2019, 6:06 p.m. OK MS C++ 2017 TESTS 121 61 1228800 1600
62919642 AleksanderBalobanov B Oct. 19, 2019, 9:38 a.m. OK MS C++ 2017 TESTS 121 61 3993600 1600
61425988 catplatypus B Sept. 28, 2019, 1:10 p.m. OK MS C++ 2017 TESTS 121 62 409600 1600
61425681 catplatypus B Sept. 28, 2019, 1:05 p.m. OK MS C++ 2017 TESTS 121 62 409600 1600
69558180 vjudge3 B Jan. 26, 2020, 9:38 a.m. OK MS C++ 2017 TESTS 121 62 409600 1600
62915290 vjudge5 B Oct. 19, 2019, 8:31 a.m. OK MS C++ 2017 TESTS 121 62 819200 1600
54473543 945578930 B May 22, 2019, 7:02 a.m. OK MS C++ 2017 TESTS 121 62 819200 1600
69494812 vjudge3 B Jan. 25, 2020, 2:53 a.m. OK MS C++ 2017 TESTS 121 62 819200 1600
54486344 2462478392 B May 22, 2019, 1:17 p.m. OK MS C++ 2017 TESTS 121 62 819200 1600
49522496 jizhonglu B Feb. 6, 2019, 9:03 a.m. OK MS C++ 2017 TESTS 121 62 1228800 1600
49950800 BadTime B Feb. 15, 2019, 1:56 p.m. OK Node.js TESTS 121 249 10854400 1600
49440696 Darooha B Feb. 3, 2019, 8:50 p.m. OK Ocaml TESTS 121 77 1638400 1600
49448298 sk0 B Feb. 4, 2019, 5:14 a.m. OK Ocaml TESTS 121 109 3174400 1600
49448332 sk0 B Feb. 4, 2019, 5:15 a.m. OK Ocaml TESTS 121 124 3174400 1600
49776133 Stanislav666 B Feb. 11, 2019, 3:32 p.m. OK PascalABC.NET TESTS 121 280 102400 1600
49461923 mostyka B Feb. 4, 2019, 1:25 p.m. OK PascalABC.NET TESTS 121 296 2355200 1600
49556221 warenzer B Feb. 7, 2019, 9:50 a.m. OK PHP TESTS 121 140 7987200 1600
49440523 mayakin B Feb. 3, 2019, 8:44 p.m. OK PHP TESTS 121 140 20582400 1600
49505056 MaitVanga__Sandwip B Feb. 5, 2019, 5:07 p.m. OK PHP TESTS 121 155 7987200 1600
49505139 MaitVanga__Sandwip B Feb. 5, 2019, 5:09 p.m. OK PHP TESTS 121 186 8396800 1600
49440739 godmar B Feb. 3, 2019, 8:51 p.m. OK PyPy 2 TESTS 121 171 6963200 1600
49838330 shehebe B Feb. 12, 2019, 5:11 p.m. OK PyPy 2 TESTS 121 171 6963200 1600
49440342 Zeyu B Feb. 3, 2019, 8:39 p.m. OK PyPy 2 TESTS 121 171 6963200 1600
49497354 frederika B Feb. 5, 2019, 1:32 p.m. OK PyPy 2 TESTS 121 171 7372800 1600
49438224 pajenegod B Feb. 3, 2019, 7:45 p.m. OK PyPy 2 TESTS 121 186 6963200 1600
56404278 shanu_im B July 1, 2019, 6:29 p.m. OK PyPy 2 TESTS 121 186 7065600 1600
57600147 bcollet B July 23, 2019, 3:27 p.m. OK PyPy 2 TESTS 121 186 10547200 1600
49967428 ryanr1230 B Feb. 15, 2019, 9:53 p.m. OK PyPy 2 TESTS 121 187 11059200 1600
49810802 eightants B Feb. 12, 2019, 12:37 a.m. OK PyPy 2 TESTS 121 187 11264000 1600
49435881 supachai_pay B Feb. 3, 2019, 7:06 p.m. OK PyPy 2 TESTS 121 202 6963200 1600
49446186 EA5 B Feb. 4, 2019, 3:16 a.m. OK PyPy 3 TESTS 121 202 10240000 1600
49739150 LordVader B Feb. 10, 2019, 6:25 p.m. OK PyPy 3 TESTS 121 202 10444800 1600
53647554 syzymon B May 1, 2019, 8:14 p.m. OK PyPy 3 TESTS 121 202 11059200 1600
49526242 IQuant B Feb. 6, 2019, 11:30 a.m. OK PyPy 3 TESTS 121 202 11059200 1600
49502465 TsutsukakushiTsukiko B Feb. 5, 2019, 3:53 p.m. OK PyPy 3 TESTS 121 202 11059200 1600
49449661 oliverwayne B Feb. 4, 2019, 6:17 a.m. OK PyPy 3 TESTS 121 202 11059200 1600
49443914 mathdude42 B Feb. 4, 2019, 12:30 a.m. OK PyPy 3 TESTS 121 202 11059200 1600
49441231 ashwaththama B Feb. 3, 2019, 9:10 p.m. OK PyPy 3 TESTS 121 202 11059200 1600
49509304 Elluran B Feb. 5, 2019, 7:15 p.m. OK PyPy 3 TESTS 121 217 11059200 1600
49455106 LMTu B Feb. 4, 2019, 9:47 a.m. OK PyPy 3 TESTS 121 217 11059200 1600
49521012 wunder9l B Feb. 6, 2019, 7:57 a.m. OK Python 2 TESTS 121 342 5324800 1600
49545853 scambret B Feb. 6, 2019, 10:19 p.m. OK Python 2 TESTS 121 343 5734400 1600
49810825 OneMoreLoss B Feb. 12, 2019, 12:39 a.m. OK Python 2 TESTS 121 358 6656000 1600
49443148 Neil B Feb. 3, 2019, 11:13 p.m. OK Python 2 TESTS 121 373 5632000 1600
49508524 Jose19397 B Feb. 5, 2019, 6:48 p.m. OK Python 2 TESTS 121 389 5632000 1600
49501460 bhuwanchandra.it B Feb. 5, 2019, 3:24 p.m. OK Python 2 TESTS 121 498 6656000 1600
49830391 odinson B Feb. 12, 2019, 1:39 p.m. OK Python 2 TESTS 121 795 5529600 1600
49446149 EA5 B Feb. 4, 2019, 3:13 a.m. OK Python 3 TESTS 121 171 7372800 1600
49932693 mht5701998 B Feb. 15, 2019, 5:41 a.m. OK Python 3 TESTS 121 171 7782400 1600
49851973 orailly B Feb. 13, 2019, 4:34 a.m. OK Python 3 TESTS 121 186 7475200 1600
49806910 siletWorker B Feb. 11, 2019, 8:27 p.m. OK Python 3 TESTS 121 187 7475200 1600
49501586 Messiah_10 B Feb. 5, 2019, 3:28 p.m. OK Python 3 TESTS 121 187 7680000 1600
49487863 rasdfvm B Feb. 5, 2019, 7:27 a.m. OK Python 3 TESTS 121 187 7680000 1600
49485021 AkashAhirwar B Feb. 5, 2019, 4:45 a.m. OK Python 3 TESTS 121 187 7680000 1600
49605244 Sarilanoo B Feb. 7, 2019, 7:07 p.m. OK Python 3 TESTS 121 202 7680000 1600
49851326 orailly B Feb. 13, 2019, 3:57 a.m. OK Python 3 TESTS 121 202 7782400 1600
49538059 Karim.17 B Feb. 6, 2019, 4:55 p.m. OK Python 3 TESTS 121 218 7372800 1600
49459297 ar7L B Feb. 4, 2019, 12:08 p.m. OK Ruby TESTS 121 218 16588800 1600

remove filters

Back to search problems