Hello 2025

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
2057 Hello 2025 FINISHED False 9000 40404322 Jan. 4, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 185 ) H Coffee Break PROGRAMMING data structures greedy greedy math

There are very long classes in the T-Generation. In one day, you need to have time to analyze the training and thematic contests, give a lecture with new material, and, if possible, also hold a mini-seminar. Therefore, there is a break where students can go to drink coffee and chat with each other. There are a total of (n+2) coffee machines located in sequentially arranged rooms along a long corridor. The coffee machines are numbered from (0) to (n+1), and immediately after the break starts, there are (a_i) students gathered around the (i)-th coffee machine. The students are talking too loudly among themselves, and the teachers need to make a very important announcement. Therefore, they want to gather the maximum number of students around some single coffee machine. The teachers are too lazy to run around the corridors and gather the students, so they came up with a more sophisticated way to manipulate them: At any moment, the teachers can choose room (i) ((1 \le i \le n)) and turn off the lights there; If there were (x) students in that room, then after turning off the lights, (\lfloor \frac12 x \rfloor) students will go to room ((i-1)), and (\lfloor \frac12 x \rfloor) other students will go to room ((i+1)). If (x) was odd, then one student remains in the same room. After that, the lights in room (i) are turned back on. The teachers have not yet decided where they will gather the students, so for each (i) from (1) to (n), you should determine what is the maximum number of students that can be gathered around the (i)-th coffee machine. The teachers can turn off the lights in any rooms at their discretion, in any order, possibly turning off the lights in the same room multiple times. Note that the values of (a_0) and (a_{n+1}) do not affect the answer to the problem, so their values will not be given to you. The first line contains a single integer (t) ($$$1 \le t \le 10\,00

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
299698328 vlomaczk H Jan. 4, 2025, 6:59 p.m. OK C++17 (GCC 7-32) TESTS 27 702 32358400
299708364 A_G H Jan. 4, 2025, 9:14 p.m. OK C++20 (GCC 13-64) TESTS 27 311 27545600
299714869 nitram H Jan. 5, 2025, 12:42 a.m. OK C++20 (GCC 13-64) TESTS 27 327 41779200
299679826 ugly2333 H Jan. 4, 2025, 4:43 p.m. OK C++20 (GCC 13-64) TESTS 27 1218 25907200
299700313 Radewoosh H Jan. 4, 2025, 7:19 p.m. OK C++20 (GCC 13-64) TESTS 27 1233 35737600
299687823 Flamire H Jan. 4, 2025, 5:02 p.m. OK C++20 (GCC 13-64) TESTS 27 1702 32153600
299714826 nitram H Jan. 5, 2025, 12:41 a.m. OK C++20 (GCC 13-64) TESTS 27 1733 41779200
299695618 antontrygubO_o H Jan. 4, 2025, 6:37 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 342 41164800
299707181 avijay95 H Jan. 4, 2025, 8:50 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 343 33587200
299700789 Petr H Jan. 4, 2025, 7:24 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 358 35942400
299720702 tkacper H Jan. 5, 2025, 3:27 a.m. OK C++23 (GCC 14-64, msys2) TESTS 27 374 34611200
299694556 Benq H Jan. 4, 2025, 6:30 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 421 35737600
299721656 maspy H Jan. 5, 2025, 3:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 27 515 36864000
299686066 hos.lyric H Jan. 4, 2025, 4:59 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 1218 25804800

remove filters

Back to search problems