Codeforces Round 1101 (Div. 2)

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
2232 Codeforces Round 1101 (Div. 2) FINISHED False 7200 2129131 May 30, 2026, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 262 ) F The Cake Is a Lie PROGRAMMING greedy math number theory

To end the party, Alice decides to cook some pancakes for her friends. Alice has (n) uncooked pancakes but only (2) pans. Initially, the first (min(n,2)) pancakes are on the pans, and all pancakes have cookedness (0). To cook her pancakes, Alice may perform the following two operations any number of times: Cook the two pancakes on the pans for (1) minute. The pancake on the first pan's cookedness increases by (a), and the pancake on the second pan's cookedness increases by (b). Serve the first pancake, move the second pancake to the first pan, and add a new uncooked pancake to the second pan (if there are any completely uncooked pancakes left). Note that this takes no time, and can be done multiple times in a row. Note that if there is only one pancake left, it will be on the first pan, gaining (a) cookedness per minute until Alice decides to serve it. A pancake is perfectly cooked if and only if its cookedness is exactly (k). Help Alice find the maximum number of perfectly cooked pancakes that she can serve. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 1000)). The description of the test cases follows. The only line in the test case contains (4) integers (n), (a), (b), and (k) ((1 \le n,a,b,k \le 10^9)) — the number of pancake batter Alice has, the amount of cookedness the pancake on the first pan gains at the end of each minute, the amount of cookedness the pancake on the second pan gains at the end of each minute, and the amount of cookedness the pancake needs to have in order for it to be perfectly cooked. For each test case, output the maximum number of perfectly cooked pancakes Alice can make. In the first testcase, Alice can perfectly cook all pancakes in a batch of two. Therefore, the maximum number of perfectly cooked pancakes is (17). In the second test case, Alice will always overcook all pancakes since both pans

Tutorials

Codeforces Round 1101 (Div. 2) — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
376732045 potato167 F May 31, 2026, 2:47 a.m. OK C++17 (GCC 7-32) TESTS 70 46 102400
376718173 Taha90411 F May 30, 2026, 8:02 p.m. OK C++17 (GCC 7-32) TESTS 70 46 102400
376697757 vin_shriv F May 30, 2026, 4:25 p.m. OK C++17 (GCC 7-32) TESTS 70 46 102400
376695961 siddynexp F May 30, 2026, 4:21 p.m. OK C++17 (GCC 7-32) TESTS 70 46 102400
376711654 vedantkohad F May 30, 2026, 6:37 p.m. OK C++20 (GCC 13-64) TESTS 70 46 102400
376722120 vikram108 F May 30, 2026, 9:19 p.m. OK C++20 (GCC 13-64) TESTS 70 140 102400
376742834 gena9000 F May 31, 2026, 5:38 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 0
376733726 Likuta_Highmore F May 31, 2026, 3:18 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 0
376732248 fcy2023 F May 31, 2026, 2:51 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 0
376729532 haojiandan F May 31, 2026, 1:49 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 0
376702129 yinghua_luoxue F May 30, 2026, 4:34 p.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 0
376743392 gena9000 F May 31, 2026, 5:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 102400
376742345 gena9000 F May 31, 2026, 5:32 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 102400
376741936 gena9000 F May 31, 2026, 5:26 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 102400
376739801 WatPz F May 31, 2026, 4:54 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 102400
376733548 Likuta_Highmore F May 31, 2026, 3:14 a.m. OK C++23 (GCC 14-64, msys2) TESTS 70 46 102400
376695956 loveax F May 30, 2026, 4:21 p.m. OK GNU C11 TESTS 70 46 102400
376735632 Yoda1122 F May 31, 2026, 3:58 a.m. OK Java 21 TESTS 70 265 1638400
376689934 golomb F May 30, 2026, 4:08 p.m. OK PyPy 3-64 TESTS 70 140 2560000
376699654 Solaca F May 30, 2026, 4:29 p.m. OK PyPy 3-64 TESTS 70 140 6860800
376731006 narwadetejas F May 31, 2026, 2:22 a.m. OK PyPy 3-64 TESTS 70 187 7372800
376696001 developermohammed01 F May 30, 2026, 4:21 p.m. OK PyPy 3-64 TESTS 70 234 8396800
376711352 Rakshita_2300 F May 30, 2026, 6:34 p.m. OK Python 3 TESTS 70 78 1433600

remove filters

Back to search problems