Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals)

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
2215 Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) FINISHED False 10800 4407887 April 12, 2026, 5:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1174 ) B RReeppeettiittiioonn PROGRAMMING binary search brute force implementation math number theory

As a girl born on November 11th (or 11/11), SS loves repetition. For example, her favorite English word is b ookkee per, her favorite letter is W (double-u, double vĂ©, or whatever you call it), her favorite animals are the cat (ki tt en!) and the ra bb it (bu nn y!), her favorite programming language is C ++ , her favorite parser is LL (1), her favorite optimization algorithm is branch and bound ( BB ), her favorite unit is millimeter ( mm ), her favorite game is LLLL , and her favorite winning hand in Mahjong is Seven Pairs. She plans to release her new songs "Silent-night Satellite" and "Siesta Stella" soon, so she wants to select a "pre tt y" number to decorate the cover of her new songs. SS observes this world from a higher perspective, which means she considers an integer concurrently in all standard positional numeral systems, starting from the binary numeral system. SS then calls a positive integer (n) ((b, p)) -tidy (with (b,p\ge 2)) if and only if: In base-(b) representation, (n) is represented as (\overline{d_{k\cdot p-1} d_{k\cdot p-2}\ldots d_1 d_0}) for some positive integer (k) and integers (0\le d_i \lt b), such that for each (0\le i \lt k), (d_{i\cdot p}=d_{i\cdot p+1}=\cdots=d_{(i+1)\cdot p-1}). For example, (2233) and (3355) are ((10,2)) -tidy , (1111) is both ((10,2)) -tidy and ((10,4)) -tidy , and (6\,737\,151=(66\textrm{CCFF})_{16}) is ((16,2)) -tidy . Furthermore, SS defines the tidiness of a positive integer (n) as the number of ordered pairs ((b, p)) such that (n) is ((b, p)) -tidy . SS has given you an integer (n). Your task is to determine the tidiness of (n). 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 of each test case contains a single integer (n) ((1\le n\le 10^{12})) — the integer SS has gi

Tutorials

152930

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
370774861 -firefly- B April 12, 2026, 6:27 a.m. OK C# 13 TESTS 30 2218 14336000
370785024 ShadowSlayer1 B April 12, 2026, 7:24 a.m. OK C++17 (GCC 7-32) TESTS 30 125 102400
370789966 quanjun B April 12, 2026, 7:57 a.m. OK C++17 (GCC 7-32) TESTS 30 375 102400
370793203 Sanya239 B April 12, 2026, 8:21 a.m. OK C++17 (GCC 7-32) TESTS 30 468 102400
370788646 xingtiankai2023 B April 12, 2026, 7:48 a.m. OK C++17 (GCC 7-32) TESTS 30 468 56729600
370774653 Watersphere B April 12, 2026, 6:26 a.m. OK C++17 (GCC 7-32) TESTS 30 546 102400
370781180 MrAndria B April 12, 2026, 7 a.m. OK C++17 (GCC 7-32) TESTS 30 812 102400
370772316 do4Z B April 12, 2026, 6:16 a.m. OK C++17 (GCC 7-32) TESTS 30 812 102400
370780934 scli B April 12, 2026, 6:59 a.m. OK C++17 (GCC 7-32) TESTS 30 812 13107200
370788336 More B April 12, 2026, 7:45 a.m. OK C++17 (GCC 7-32) TESTS 30 812 73523200
370771805 stateCompressed B April 12, 2026, 6:13 a.m. OK C++17 (GCC 7-32) TESTS 30 843 67788800
370772911 SATSKY_2025target_LGM B April 12, 2026, 6:18 a.m. OK C++20 (GCC 13-64) TESTS 30 156 102400
370835536 lucifer2k8 B April 12, 2026, 2:31 p.m. OK C++20 (GCC 13-64) TESTS 30 296 102400
370769558 TKT_YI B April 12, 2026, 6:05 a.m. OK C++20 (GCC 13-64) TESTS 30 328 102400
370784064 Eren12 B April 12, 2026, 7:17 a.m. OK C++20 (GCC 13-64) TESTS 30 343 102400
370767740 NanYan B April 12, 2026, 5:58 a.m. OK C++20 (GCC 13-64) TESTS 30 359 35635200
370780137 ya_ssh B April 12, 2026, 6:54 a.m. OK C++20 (GCC 13-64) TESTS 30 453 102400
370884016 tackle_them B April 13, 2026, 3:44 a.m. OK C++20 (GCC 13-64) TESTS 30 468 22528000
370785165 wuyuetong B April 12, 2026, 7:24 a.m. OK C++20 (GCC 13-64) TESTS 30 500 35635200
370794716 Kuzma_A B April 12, 2026, 8:32 a.m. OK C++20 (GCC 13-64) TESTS 30 515 102400
370787285 wjyhz B April 12, 2026, 7:37 a.m. OK C++20 (GCC 13-64) TESTS 30 515 35635200
370778731 Enoch006 B April 12, 2026, 6:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 125 24166400
370810259 jinhan814 B April 12, 2026, 10:50 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 171 102400
370810648 jinhan814 B April 12, 2026, 10:54 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 234 102400
370768715 zdc123456 B April 12, 2026, 6:01 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 296 5120000
370845034 fIower B April 12, 2026, 3:57 p.m. OK C++23 (GCC 14-64, msys2) TESTS 30 296 35328000
370785475 sahasrad B April 12, 2026, 7:26 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 312 102400
370784895 lcyxds B April 12, 2026, 7:23 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 343 0
370773586 LingLuo_Official B April 12, 2026, 6:21 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 343 102400
370786595 Divine_Spark B April 12, 2026, 7:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 343 1024000
370780835 Nevll B April 12, 2026, 6:58 a.m. OK C++23 (GCC 14-64, msys2) TESTS 30 359 102400
370779560 Gassa B April 12, 2026, 6:51 a.m. OK D TESTS 30 1984 204800
370775083 lybord B April 12, 2026, 6:28 a.m. OK Java 21 TESTS 30 1968 119808000
370781754 im_xRayVN B April 12, 2026, 7:03 a.m. OK PyPy 3-64 TESTS 30 656 11776000
370859251 IcyGirl B April 12, 2026, 6:17 p.m. OK PyPy 3-64 TESTS 30 953 10752000
370775303 x3x3 B April 12, 2026, 6:29 a.m. OK PyPy 3-64 TESTS 30 1296 8294400
370773065 Z_actuary B April 12, 2026, 6:19 a.m. OK PyPy 3-64 TESTS 30 1453 4300800
370782571 Ergodic137 B April 12, 2026, 7:08 a.m. OK PyPy 3-64 TESTS 30 1453 194252800
370859840 IcyGirl B April 12, 2026, 6:23 p.m. OK PyPy 3-64 TESTS 30 1531 11571200
370781972 ecubic B April 12, 2026, 7:05 a.m. OK PyPy 3-64 TESTS 30 2203 142438400
370772953 harurun4635 B April 12, 2026, 6:18 a.m. OK PyPy 3-64 TESTS 30 2250 12083200

remove filters

Back to search problems