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 |
---|---|---|---|---|---|---|
1003 | Codeforces Round 494 (Div. 3) | FINISHED | False | 7200 | 206551463 | July 3, 2018, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 10720 ) | C | Intense Heat | PROGRAMMING | brute force implementation math | 1300 |
B'The heat during the last few days has been really intense. Scientists from all over the Berland study how the temperatures and weather change, and they claim that this summer is abnormally hot. But any scientific claim sounds a lot more reasonable if there are some numbers involved, so they have decided to actually calculate some value which would represent how high the temperatures are. Mathematicians of Berland State University came up with a special heat intensity value. This value is calculated as follows: Suppose we want to analyze the segment of n consecutive days. We have measured the temperatures during these n days; the temperature during i -th day equals a_i . We denote the average temperature of a segment of some consecutive days as the arithmetic mean of the temperature measures during this segment of days. So, if we want to analyze the average temperature from day x to day y , we calculate it as frac{ sum limits_{i = x}^{y} a_i}{y - x + 1} (note that division is performed without any rounding). The heat intensity value is the maximum of average temperatures over all segments of not less than k consecutive days. For example, if analyzing the measures [3, 4, 1, 2] and k = 3 , we are interested in segments [3, 4, 1] , [4, 1, 2] and [3, 4, 1, 2] (we want to find the maximum value of average temperature over these segments). You have been hired by Berland State University to write a program that would compute the heat intensity value of a given period of days. Are you up to this task? The first line contains two integers n and k ( 1 <= k <= n <= 5000 ) -- the number of days in the given period, and the minimum number of days in a segment we consider when calculating heat intensity value, respectively. The second line contains n integers a_1 , a_2 , ..., a_n ( 1 <= a_i <= 5000 ) -- the temperature measures during given n '... |
60417 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
39907034 | ndhuy | C | July 3, 2018, 3:10 p.m. | OK | FPC | TESTS | 25 | 78 | 0 | 1300 | |
39920125 | Potassium | C | July 3, 2018, 4:01 p.m. | OK | FPC | TESTS | 25 | 93 | 0 | 1300 | |
39910135 | petr577 | C | July 3, 2018, 3:21 p.m. | OK | FPC | TESTS | 25 | 93 | 0 | 1300 | |
39922686 | iEatParrots | C | July 3, 2018, 4:12 p.m. | OK | FPC | TESTS | 25 | 108 | 0 | 1300 | |
39911741 | 1353055672 | C | July 3, 2018, 3:27 p.m. | OK | FPC | TESTS | 25 | 109 | 0 | 1300 | |
39918092 | Vilespine_Slayer | C | July 3, 2018, 3:52 p.m. | OK | FPC | TESTS | 25 | 124 | 0 | 1300 | |
39906654 | thanhhoanglenguyen | C | July 3, 2018, 3:09 p.m. | OK | FPC | TESTS | 25 | 155 | 102400 | 1300 | |
39911728 | Ulanov_Victor | C | July 3, 2018, 3:26 p.m. | OK | FPC | TESTS | 25 | 311 | 200806400 | 1300 | |
39918312 | AArtur | C | July 3, 2018, 3:53 p.m. | OK | GNU C | TESTS | 25 | 62 | 307200 | 1300 | |
39926516 | MrGod | C | July 3, 2018, 4:30 p.m. | OK | GNU C | TESTS | 25 | 77 | 307200 | 1300 | |
39919563 | mahatibasavaraju | C | July 3, 2018, 3:58 p.m. | OK | GNU C | TESTS | 25 | 77 | 307200 | 1300 | |
39915189 | tuyethoa1204 | C | July 3, 2018, 3:40 p.m. | OK | GNU C | TESTS | 25 | 78 | 0 | 1300 | |
39908069 | saikumar_madhadi | C | July 3, 2018, 3:14 p.m. | OK | GNU C | TESTS | 25 | 78 | 0 | 1300 | |
39906070 | EthanITargaryen | C | July 3, 2018, 3:06 p.m. | OK | GNU C | TESTS | 25 | 78 | 0 | 1300 | |
39901866 | jstimpfle | C | July 3, 2018, 2:51 p.m. | OK | GNU C | TESTS | 25 | 78 | 0 | 1300 | |
39916478 | DanielixS | C | July 3, 2018, 3:45 p.m. | OK | GNU C | TESTS | 25 | 78 | 102400 | 1300 | |
39903923 | aniket.shrimal | C | July 3, 2018, 2:59 p.m. | OK | GNU C | TESTS | 25 | 78 | 204800 | 1300 | |
39925150 | ashok123 | C | July 3, 2018, 4:24 p.m. | OK | GNU C | TESTS | 25 | 78 | 307200 | 1300 | |
39906664 | DragulinDavid | C | July 3, 2018, 3:09 p.m. | OK | GNU C++ | TESTS | 25 | 31 | 0 | 1300 | |
39925521 | Vsevolod_Kaplin | C | July 3, 2018, 4:25 p.m. | OK | GNU C++ | TESTS | 25 | 31 | 307200 | 1300 | |
39921713 | coderbd | C | July 3, 2018, 4:08 p.m. | OK | GNU C++ | TESTS | 25 | 31 | 307200 | 1300 | |
39905979 | yuanwh2003 | C | July 3, 2018, 3:06 p.m. | OK | GNU C++ | TESTS | 25 | 31 | 1638400 | 1300 | |
39920558 | fengxunling | C | July 3, 2018, 4:03 p.m. | OK | GNU C++ | TESTS | 25 | 31 | 1945600 | 1300 | |
39907003 | mmestrovic | C | July 3, 2018, 3:10 p.m. | OK | GNU C++ | TESTS | 25 | 46 | 0 | 1300 | |
39919344 | ksyx | C | July 3, 2018, 3:57 p.m. | OK | GNU C++ | TESTS | 25 | 46 | 307200 | 1300 | |
39914158 | cruzjorgesalazar | C | July 3, 2018, 3:36 p.m. | OK | GNU C++ | TESTS | 25 | 46 | 307200 | 1300 | |
39922841 | Hang_cccccc | C | July 3, 2018, 4:13 p.m. | OK | GNU C++ | TESTS | 25 | 46 | 409600 | 1300 | |
39917748 | gdjs2 | C | July 3, 2018, 3:50 p.m. | OK | GNU C++ | TESTS | 25 | 61 | 204800 | 1300 | |
39911021 | Mappy007 | C | July 3, 2018, 3:24 p.m. | OK | GNU C++11 | TESTS | 25 | 31 | 102400 | 1300 | |
39915180 | huoxing | C | July 3, 2018, 3:40 p.m. | OK | GNU C++11 | TESTS | 25 | 31 | 204800 | 1300 | |
39916274 | K.R.L.E. | C | July 3, 2018, 3:44 p.m. | OK | GNU C++11 | TESTS | 25 | 31 | 307200 | 1300 | |
39910278 | pishbeenZ | C | July 3, 2018, 3:21 p.m. | OK | GNU C++11 | TESTS | 25 | 31 | 307200 | 1300 | |
39905052 | hokalaka | C | July 3, 2018, 3:03 p.m. | OK | GNU C++11 | TESTS | 25 | 31 | 1228800 | 1300 | |
39913687 | yangbowen666 | C | July 3, 2018, 3:34 p.m. | OK | GNU C++11 | TESTS | 25 | 31 | 4300800 | 1300 | |
39906648 | huangkui123 | C | July 3, 2018, 3:09 p.m. | OK | GNU C++11 | TESTS | 25 | 46 | 0 | 1300 | |
39906033 | kirisame | C | July 3, 2018, 3:06 p.m. | OK | GNU C++11 | TESTS | 25 | 46 | 0 | 1300 | |
39911712 | Vasyl_Protsiv | C | July 3, 2018, 3:26 p.m. | OK | GNU C++11 | TESTS | 25 | 46 | 102400 | 1300 | |
39916280 | Low_Coder | C | July 3, 2018, 3:44 p.m. | OK | GNU C++11 | TESTS | 25 | 46 | 307200 | 1300 | |
39910105 | hozaifa11 | C | July 3, 2018, 3:20 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 102400 | 1300 | |
39904015 | dc99 | C | July 3, 2018, 2:59 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 102400 | 1300 | |
39903703 | Klesomik | C | July 3, 2018, 2:58 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 102400 | 1300 | |
39913164 | rm_iiest | C | July 3, 2018, 3:32 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 204800 | 1300 | |
39925954 | TheTorturedSoul | C | July 3, 2018, 4:27 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 307200 | 1300 | |
39924154 | rv111 | C | July 3, 2018, 4:19 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 307200 | 1300 | |
39919924 | BoieruDinBahamas | C | July 3, 2018, 4 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 307200 | 1300 | |
39918570 | seedhemaut | C | July 3, 2018, 3:54 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 307200 | 1300 | |
39914904 | mahaveer2407 | C | July 3, 2018, 3:39 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 307200 | 1300 | |
39914363 | rahulmandal4551 | C | July 3, 2018, 3:37 p.m. | OK | GNU C++14 | TESTS | 25 | 31 | 307200 | 1300 |
Back to search problems