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 |
---|---|---|---|---|---|---|
1696 | Codeforces Global Round 21 | FINISHED | False | 8100 | 81098663 | June 25, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 281 ) | G | Fishingprince Plays With Array Again | PROGRAMMING | data structures |
B"Suppose you are given a 1-indexed sequence a of non-negative integers, whose length is n , and two integers x , y . In consecutive t seconds ( t can be any positive real number), you can do one of the following operations: Define the minimum amount of time (it might be a real number) required to make all elements in the sequence less than or equal to 0 as f(a) . For example, when x=1 , y=2 , it takes 3 seconds to deal with the array [3,1,1,3] . We can: We can prove that it's not possible to make all elements less than or equal to 0 in less than 3 seconds, so f([3,1,1,3])=3 . Now you are given a 1-indexed sequence b of positive integers, whose length is n . You are also given positive integers x , y . Process q queries of the following two types: The first line of input contains two integers n and q ( 2 <= n <= 2 cdot 10^5 , 1 <= q <= 2 cdot 10^5 ). The second line of input contains two integers x and y ( 1 <= x,y <= 10^6 ). The third line of input contains n integers b_1,b_2, ldots,b_n ( 1 <= b_i <= 10^6 ). This is followed by q lines. Each of these q lines contains three integers. The first integer op is either 1 or 2 . For each query of type 2 , print one real number -- the answer to the query. Your answer is considered correct if its absolute error or relative error does not exceed 10^{-9} . Let's analyse the sample. In the first query, we are asked to compute f([3,1,1,4]) . The answer is 3.5 . One optimal sequence of operations is: In the third query, we are asked to compute f([1,1,1]) . The answer is 1 . One optimal sequence of operations is: "... |
Editorial of Codeforces Global Round 21 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
161792166 | Isonan | G | June 25, 2022, 4:33 p.m. | OK | GNU C++14 | TESTS | 77 | 1263 | 146124800 | ||
161816930 | slime | G | June 25, 2022, 10:27 p.m. | OK | GNU C++14 | TESTS | 77 | 2526 | 73420800 | ||
161806971 | islingr | G | June 25, 2022, 6:51 p.m. | OK | GNU C++17 | TESTS | 77 | 873 | 54476800 | ||
161807238 | islingr | G | June 25, 2022, 6:55 p.m. | OK | GNU C++17 | TESTS | 77 | 889 | 54476800 | ||
161808680 | islingr | G | June 25, 2022, 7:17 p.m. | OK | GNU C++17 | TESTS | 77 | 1029 | 54476800 | ||
161828375 | heno239 | G | June 26, 2022, 4:44 a.m. | OK | GNU C++17 | TESTS | 77 | 1076 | 78540800 | ||
161824289 | jijidawang2 | G | June 26, 2022, 3:01 a.m. | OK | GNU C++17 | TESTS | 77 | 1169 | 66048000 | ||
161787605 | Alice_foo_foo | G | June 25, 2022, 4:16 p.m. | OK | GNU C++17 | TESTS | 77 | 1668 | 94822400 | ||
161799468 | gisp_zjz | G | June 25, 2022, 5:36 p.m. | OK | GNU C++17 | TESTS | 77 | 2183 | 298803200 | ||
161817740 | hitonanode | G | June 25, 2022, 10:59 p.m. | OK | GNU C++17 (64) | TESTS | 77 | 654 | 66457600 | ||
161822600 | orzdevinwang | G | June 26, 2022, 2:11 a.m. | OK | GNU C++17 (64) | TESTS | 77 | 717 | 77414400 | ||
161803828 | zihouzhong | G | June 25, 2022, 6:12 p.m. | OK | GNU C++17 (64) | TESTS | 77 | 1091 | 58982400 | ||
161788638 | TLE | G | June 25, 2022, 4:19 p.m. | OK | GNU C++17 (64) | TESTS | 77 | 1201 | 57344000 | ||
161803731 | zihouzhong | G | June 25, 2022, 6:11 p.m. | OK | GNU C++17 (64) | TESTS | 77 | 1528 | 58982400 | ||
161799923 | potato167 | G | June 25, 2022, 5:38 p.m. | OK | GNU C++17 (64) | TESTS | 77 | 4305 | 98099200 | ||
161808764 | islingr | G | June 25, 2022, 7:18 p.m. | OK | GNU C++20 (64) | TESTS | 77 | 577 | 54374400 | ||
161808790 | islingr | G | June 25, 2022, 7:18 p.m. | OK | GNU C++20 (64) | TESTS | 77 | 592 | 54374400 | ||
161828226 | frame233 | G | June 26, 2022, 4:41 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 733 | 39833600 | ||
161793395 | djq_cpp | G | June 25, 2022, 4:37 p.m. | OK | GNU C++20 (64) | TESTS | 77 | 857 | 39833600 | ||
161831655 | djq_cpp | G | June 26, 2022, 5:50 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 888 | 39833600 | ||
161826209 | nantf | G | June 26, 2022, 3:52 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 1044 | 48025600 | ||
161790205 | hos.lyric | G | June 25, 2022, 4:25 p.m. | OK | GNU C++20 (64) | TESTS | 77 | 1092 | 40652800 | ||
161788629 | kiwikiwi | G | June 25, 2022, 4:19 p.m. | OK | GNU C++20 (64) | TESTS | 77 | 1107 | 66457600 | ||
161799572 | Rebelz | G | June 25, 2022, 5:36 p.m. | OK | GNU C++20 (64) | TESTS | 77 | 1216 | 50892800 | ||
161827677 | MoRanSky | G | June 26, 2022, 4:29 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 1310 | 59801600 | ||
161794502 | qwerty787788 | G | June 25, 2022, 4:41 p.m. | OK | Rust 2021 | TESTS | 77 | 2666 | 66969600 |
Back to search problems