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 |
|---|---|---|---|---|---|---|
| 2180 | Codeforces Global Round 31 (Div. 1 + Div. 2) | FINISHED | False | 9000 | 10250722 | Dec. 19, 2025, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 118 ) | H1 | Bug Is Feature (Unconditional Version) | PROGRAMMING | games |
This is the unconditional version of the problem. The difference between the versions is that in this version, there is no "non-decreasing common difference" condition. You can hack only if you solved all versions of this problem. Note that neither version is necessarily easier than the other, and they can be solved independently. Bug and Feature are immersed in a game of Sequence. In this unique version of the Sequence game, a sequence begins with three positive integers (a < b < c \le x), forming an arithmetic progression (i.e., (b-a=c-b)). During each turn, a player can selectively increase one of (a), (b), or (c) by a positive integer. After the move, the numbers must retain their arithmetic progression, possibly with a new order. Moreover, none of (a), (b), or (c) should exceed (x). Not content with the conventional Sequence game, Bug and Feature decide to engage in a (n) series of Sequence games simultaneously. For the (i)-th series, they are provided with five numbers (a_i < b_i < c_i \le l_i \le r_i). They will play a game with numbers (a_i < b_i < c_i \le x) for every integer (x) in the range (l_i, r_i) (resulting in a total of (\sum_{i=1}^n (r_i - l_i + 1)) games). Taking turns, they play all the games together, with Bug starting first and then Feature. In each turn, a player selects an unfinished game and makes a move in that game. The player who cannot make a move loses. Now, the question is: if both players play optimally, who will emerge victorious? Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^5)). The description of the test cases follows. The first line of each test case consists of a single integer (n) ((1 \le n \le 2 \cdot 10^5)) — the number of series of games that Bug and Feature wish to play. Each of the next (n) lines contains five integers (a_i, b_i, c_i, l_i, r_i) — ($$$1 \le a_i |
| Codeforces Global Round 31 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 354213565 | crazy_sea | H1 | Dec. 19, 2025, 4:57 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 468 | 12390400 | ||
| 354210624 | fft_ntt | H1 | Dec. 19, 2025, 4:50 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 687 | 4198400 | ||
| 354230922 | luoxueac | H1 | Dec. 19, 2025, 7:01 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 718 | 4198400 | ||
| 354211968 | qwef_ | H1 | Dec. 19, 2025, 4:54 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 906 | 4198400 | ||
| 354210540 | holobino | H1 | Dec. 19, 2025, 4:50 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 1125 | 4198400 | ||
| 354212433 | RainyHallways | H1 | Dec. 19, 2025, 4:55 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 1265 | 91033600 | ||
| 354214963 | free_time | H1 | Dec. 19, 2025, 5 p.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 1421 | 4198400 | ||
| 354216699 | JDScript0117 | H1 | Dec. 19, 2025, 5:03 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 453 | 3993600 | ||
| 354215073 | kotatsugame | H1 | Dec. 19, 2025, 5 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 546 | 102400 | ||
| 354222019 | turmax | H1 | Dec. 19, 2025, 5:47 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 750 | 4096000 | ||
| 354251359 | qiuzx | H1 | Dec. 20, 2025, 2:29 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 828 | 0 | ||
| 354215472 | strapple | H1 | Dec. 19, 2025, 5:01 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 890 | 3993600 | ||
| 354221919 | turmax | H1 | Dec. 19, 2025, 5:46 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 921 | 4096000 | ||
| 354245289 | Denisov | H1 | Dec. 19, 2025, 11:21 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 1109 | 3993600 | ||
| 354220586 | dog_of_Nesraychan | H1 | Dec. 19, 2025, 5:39 p.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 1984 | 147353600 |
Back to search problems