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 |
|---|---|---|---|---|---|---|
| 2207 | Codeforces Round 1085 (Div. 1 + Div. 2) | FINISHED | False | 10800 | 3425123 | March 8, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 260 ) | F | Hanabi | PROGRAMMING | data structures dp flows graph matchings graphs greedy |
Let (n, m) be positive integers. Iroh and Zuko are playing a variant of Hanabi , a collaborative card game, with (n) ranks ((1, \ldots, n)) and (m) colors ((1, \ldots, m)). In particular, Zuko holds a hand of (n \cdot m) cards, containing one card with each possible pairing of rank and color. On his turn, he can choose any one of the cards and play it onto the board. However, if he tries to play a card of rank (r \geq 2) and color (c) when the card of rank (r-1) and color (c) was not already played, they will lose. To make this task much more interesting, Zuko will hold all of his cards facing towards Iroh, so that only Iroh is able to see their ranks and colors. To give Zuko information, on his turn, Iroh can give him the following types of clues: A rank clue for rank (r) will highlight the positions of all remaining cards in his hand with rank (r). A color clue for color (c) will highlight the positions of all remaining cards in his hand with color (c). A clue may only be given if it highlights at least one card. Also, before giving a new clue, all cards are reset to an unhighlighted state. The game begins with Iroh giving a clue, then Zuko playing a card, and they alternate until either all cards are played on the board, or some card is played in an invalid order. Zuko has decided that on his turn, he will always play the leftmost highlighted card in his hand. Iroh would like to make a series of clues that both make Zuko play the cards in a valid order, but also minimizes the number of turns on which his clue changed from the previous turn . Compute the minimum number of times Iroh's clue could change between turns. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. The first line of each test case contains two integers (n) and (m) ($$$1 \leq n, m \leq 2 \cdot 10^5, 1 \leq n \c |
| Codeforces Round 1085 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 365911728 | hiteshjkh | F | March 8, 2026, 7:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 125 | 4710400 | ||
| 365938856 | didxga | F | March 9, 2026, 4:55 a.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 125 | 6963200 | ||
| 365894181 | potato167 | F | March 8, 2026, 4:50 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 140 | 4300800 | ||
| 365901950 | Acheronlt | F | March 8, 2026, 5:33 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 156 | 11059200 | ||
| 365899508 | mickeyjung | F | March 8, 2026, 5:21 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 187 | 16179200 | ||
| 365897689 | Akshat_Agg. | F | March 8, 2026, 5:10 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 203 | 16998400 | ||
| 365909570 | Potassium | F | March 8, 2026, 7:04 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 218 | 21504000 | ||
| 365898046 | darkmatter_druid | F | March 8, 2026, 5:12 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 250 | 12902400 | ||
| 365889968 | OrangeEye | F | March 8, 2026, 4:26 p.m. | OK | C++17 (GCC 7-32) | TESTS | 82 | 296 | 29491200 | ||
| 365907101 | kondasujay2 | F | March 8, 2026, 6:31 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 93 | 3276800 | ||
| 365905617 | pokeland157 | F | March 8, 2026, 6:15 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 109 | 4300800 | ||
| 365896300 | kotatsugame | F | March 8, 2026, 5:02 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 109 | 4505600 | ||
| 365896246 | AtharvIITB | F | March 8, 2026, 5:02 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 125 | 6246400 | ||
| 365904021 | Michal_1 | F | March 8, 2026, 6:01 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 125 | 12288000 | ||
| 365883404 | tourist | F | March 8, 2026, 3:53 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 140 | 22528000 | ||
| 365925004 | Barichek | F | March 8, 2026, 11:07 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 140 | 43008000 | ||
| 365890006 | BenjaminJ | F | March 8, 2026, 4:27 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 156 | 17715200 | ||
| 365897135 | sz251241 | F | March 8, 2026, 5:07 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 171 | 27648000 | ||
| 365889757 | Ormlis | F | March 8, 2026, 4:25 p.m. | OK | C++20 (GCC 13-64) | TESTS | 82 | 171 | 32256000 | ||
| 365904066 | Golovanov399 | F | March 8, 2026, 6:01 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 109 | 1331200 | ||
| 365934304 | gopal.thecoder | F | March 9, 2026, 3:25 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 109 | 5836800 | ||
| 365902177 | tinca_matei | F | March 8, 2026, 5:34 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 109 | 6860800 | ||
| 365921111 | deidei625 | F | March 8, 2026, 9:40 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 109 | 14233600 | ||
| 365913085 | somethingl45 | F | March 8, 2026, 7:47 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 109 | 14233600 | ||
| 365891396 | hitonanode | F | March 8, 2026, 4:34 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 125 | 102400 | ||
| 365879249 | AbdelmagedNour | F | March 8, 2026, 3:34 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 125 | 614400 | ||
| 365925973 | Fizonel | F | March 8, 2026, 11:32 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 125 | 2252800 | ||
| 365911109 | somethingl45 | F | March 8, 2026, 7:23 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 125 | 3891200 | ||
| 365894937 | Pain850 | F | March 8, 2026, 4:54 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 82 | 125 | 4812800 | ||
| 365890167 | SCORPION8X | F | March 8, 2026, 4:27 p.m. | OK | Java 21 | TESTS | 82 | 390 | 6451200 | ||
| 365898641 | jdltc | F | March 8, 2026, 5:15 p.m. | OK | Java 21 | TESTS | 82 | 406 | 14745600 | ||
| 365890472 | Amit-S-Sahu | F | March 8, 2026, 4:29 p.m. | OK | Java 21 | TESTS | 82 | 437 | 32153600 | ||
| 365892784 | Tlatoani | F | March 8, 2026, 4:42 p.m. | OK | Kotlin 2.2 | TESTS | 82 | 343 | 27955200 | ||
| 365892294 | LeonVir | F | March 8, 2026, 4:39 p.m. | OK | PyPy 3-64 | TESTS | 82 | 312 | 168857600 | ||
| 365892463 | dyppp | F | March 8, 2026, 4:40 p.m. | OK | PyPy 3-64 | TESTS | 82 | 375 | 49868800 | ||
| 365899864 | venom1724 | F | March 8, 2026, 5:23 p.m. | OK | PyPy 3-64 | TESTS | 82 | 421 | 42188800 | ||
| 365901324 | hachiko2026 | F | March 8, 2026, 5:30 p.m. | OK | Ruby 3 | TESTS | 82 | 937 | 64614400 | ||
| 365901676 | Darknef | F | March 8, 2026, 5:32 p.m. | OK | Rust 2024 | TESTS | 82 | 78 | 20377600 | ||
| 365896485 | Sugar_fan | F | March 8, 2026, 5:03 p.m. | OK | Rust 2024 | TESTS | 82 | 125 | 20992000 |
Back to search problems