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.
Problems
You are in charge of a large scientific project studying an unusual function. To carry it out, you hired (10^{10^{100}}) students and numbered them with natural numbers from (1) to (10^{10^{100}}). The students form a hierarchy: Student (1) is the main one. For any (i \geq 2), the direct supervisor of student (i) is student (\left\lfloor \frac{i}{2} \right\rfloor). The direct subordinates of student (i) are students (2i) and (2i+1) (if these numbers do not exceed (10^{10^{100}})). Subordination is transitive: if (a) is subordinate to (b), and (b) is subordinate to (c), then (a) is subordinate to (c). There are (n) days left until the project is completed. Each day consists of two stages: Hiring. Each working student (i) hires all the non-working students who are directly subordinate to him: If student (2i) is not working and (2i \leq 10^{10^{100}}), he starts working. If student (2i + 1) is not working and (2i + 1 \leq 10^{10^{100}}), he starts working. Newly hired students cannot hire anyone on the same day. If student (2i) is not working and (2i \leq 10^{10^{100}}), he starts working. If student (2i + 1) is not working and (2i + 1 \leq 10^{10^{100}}), he starts working. Firing. You may choose any set of working students and directly fire each of them. If student (i) is directly fired, then all of his subordinates are automatically fired as well. Such firings are called indirect . Student (1) cannot be fired. Additional restriction: Each student may be fired (directly or indirectly) at most once. If a previously fired student is hired again, it is forbidden to perform a firing that would cause this student to be fired again. Below (showing only the first (15) students) are examples of how to choose students for direct firing on each day so that after (2) days exactly (5) students remain. The number at the top corresponds to the s |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
380509600 |
sronak |
F |
June 28, 2026, 4:11 p.m. |
OK |
C# 13 |
TESTS |
41 |
140 |
10854400 |
|
|
|
380528320 |
_no_Regrets |
F |
June 28, 2026, 7:16 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
109 |
8089600 |
|
|
|
380548444 |
openall_zzz |
F |
June 29, 2026, 4:03 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
125 |
5734400 |
|
|
|
380506119 |
potato167 |
F |
June 28, 2026, 3:58 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
140 |
1433600 |
|
|
|
380521662 |
kenapa |
F |
June 28, 2026, 5:43 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
140 |
8089600 |
|
|
|
380510873 |
MCPlayer542 |
F |
June 28, 2026, 4:15 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
156 |
3276800 |
|
|
|
380498998 |
AksLolCoding |
F |
June 28, 2026, 3:35 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
156 |
4812800 |
|
|
|
380526452 |
GarrisonQ |
F |
June 28, 2026, 6:44 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
171 |
2048000 |
|
|
|
380512795 |
bannu102305 |
F |
June 28, 2026, 4:23 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
171 |
2560000 |
|
|
|
380513598 |
AZ_SENCS |
F |
June 28, 2026, 4:26 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
187 |
6451200 |
|
|
|
380513199 |
1946037404 |
F |
June 28, 2026, 4:25 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
41 |
187 |
24064000 |
|
|
|
380533691 |
likely |
F |
June 28, 2026, 9:13 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
46 |
6144000 |
|
|
|
380533504 |
likely |
F |
June 28, 2026, 9:08 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
62 |
6144000 |
|
|
|
380540811 |
Azusamitsusa |
F |
June 29, 2026, 1:37 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380540709 |
BingxiuXie |
F |
June 29, 2026, 1:34 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380521709 |
BingxiuXie |
F |
June 28, 2026, 5:44 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380520740 |
BingxiuXie |
F |
June 28, 2026, 5:33 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380515370 |
BingxiuXie |
F |
June 28, 2026, 4:33 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380522270 |
guo0305 |
F |
June 28, 2026, 5:51 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
78 |
8089600 |
|
|
|
380515348 |
saurav.work |
F |
June 28, 2026, 4:33 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
93 |
2560000 |
|
|
|
380509485 |
islingr |
F |
June 28, 2026, 4:10 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
41 |
93 |
4198400 |
|
|
|
380533741 |
likely |
F |
June 28, 2026, 9:15 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
46 |
6144000 |
|
|
|
380515523 |
skdns |
F |
June 28, 2026, 4:34 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
78 |
3993600 |
|
|
|
380518118 |
SumitKundu |
F |
June 28, 2026, 5:03 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380509176 |
Zheng_iii |
F |
June 28, 2026, 4:09 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
78 |
6451200 |
|
|
|
380535342 |
Kendieer |
F |
June 28, 2026, 10:03 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
78 |
6656000 |
|
|
|
380537218 |
AK128 |
F |
June 28, 2026, 11:22 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
93 |
2662400 |
|
|
|
380517358 |
yariknoob |
F |
June 28, 2026, 4:55 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
93 |
2662400 |
|
|
|
380517263 |
yariknoob |
F |
June 28, 2026, 4:54 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
93 |
2662400 |
|
|
|
380503454 |
A_G |
F |
June 28, 2026, 3:49 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
93 |
3276800 |
|
|
|
380516499 |
Hazemam |
F |
June 28, 2026, 4:46 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
41 |
93 |
4300800 |
|
|
|
380522062 |
rainboy |
F |
June 28, 2026, 5:49 p.m. |
OK |
GNU C11 |
TESTS |
41 |
515 |
4915200 |
|
|
|
380514706 |
d11maan |
F |
June 28, 2026, 4:31 p.m. |
OK |
Go |
TESTS |
41 |
125 |
11571200 |
|
|
|
380511743 |
soumya_ranjan17 |
F |
June 28, 2026, 4:19 p.m. |
OK |
Java 21 |
TESTS |
41 |
296 |
6860800 |
|
|
|
380524165 |
hg_2005 |
F |
June 28, 2026, 6:14 p.m. |
OK |
Java 21 |
TESTS |
41 |
484 |
6451200 |
|
|
|
380514371 |
aaryan.issac23 |
F |
June 28, 2026, 4:29 p.m. |
OK |
Java 21 |
TESTS |
41 |
828 |
5120000 |
|
|
|
380518421 |
daniel.glabai |
F |
June 28, 2026, 5:06 p.m. |
OK |
Java 21 |
TESTS |
41 |
1031 |
8192000 |
|
|
|
380515571 |
PotatoCoder_ |
F |
June 28, 2026, 4:34 p.m. |
OK |
Node.js |
TESTS |
41 |
265 |
66867200 |
|
|
|
380499601 |
mdhasanraza |
F |
June 28, 2026, 3:37 p.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
187 |
33587200 |
|
|
|
380509099 |
Sumant_64 |
F |
June 28, 2026, 4:09 p.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
203 |
14540800 |
|
|
|
380515011 |
Sagnik120 |
F |
June 28, 2026, 4:32 p.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
203 |
33689600 |
|
|
|
380501198 |
harurun4635 |
F |
June 28, 2026, 3:42 p.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
265 |
25804800 |
|
|
|
380541864 |
leduchuy |
F |
June 29, 2026, 2:03 a.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
359 |
14028800 |
|
|
|
380537972 |
golomb |
F |
June 28, 2026, 11:55 p.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
437 |
17612800 |
|
|
|
380503862 |
Puddles_Penguin |
F |
June 28, 2026, 3:50 p.m. |
OK |
PyPy 3-64 |
TESTS |
41 |
515 |
24985600 |
|
|
|
380508201 |
manishtula |
F |
June 28, 2026, 4:05 p.m. |
OK |
Python 2 |
TESTS |
41 |
734 |
28774400 |
|
|
|
380513826 |
aaraverma7 |
F |
June 28, 2026, 4:27 p.m. |
OK |
Python 3 |
TESTS |
41 |
359 |
60006400 |
|
|
|
380510856 |
Mihir-07 |
F |
June 28, 2026, 4:15 p.m. |
OK |
Python 3 |
TESTS |
41 |
359 |
70553600 |
|
|
|
380500808 |
luck_72 |
F |
June 28, 2026, 3:40 p.m. |
OK |
Python 3 |
TESTS |
41 |
890 |
60723200 |
|
|
|
380505114 |
Sai_Harshini_Mallela |
F |
June 28, 2026, 3:54 p.m. |
OK |
Python 3 |
TESTS |
41 |
1031 |
57856000 |
|
|
|
380527062 |
ruanxiaoyu |
F |
June 28, 2026, 6:53 p.m. |
OK |
Rust 2024 |
TESTS |
41 |
62 |
5632000 |
|
|
|
380515063 |
cvs-650 |
F |
June 28, 2026, 4:32 p.m. |
OK |
Rust 2024 |
TESTS |
41 |
62 |
6451200 |
|
|
|
380504156 |
Cyros |
F |
June 28, 2026, 3:51 p.m. |
OK |
Scala |
TESTS |
41 |
2484 |
0 |
|
|
remove filters
Back to search problems