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 |
|---|---|---|---|---|---|---|
| 2183 | Hello 2026 | FINISHED | False | 10800 | 8609123 | Jan. 7, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1098 ) | F | Jumping Man | PROGRAMMING | combinatorics data structures dp trees |
You have a tree rooted at node (1) with (n) nodes. Each node has a lowercase English letter written on it. For each integer (i) from (1) to (n), please solve the following problem independently: Consider the set of strings formed by the following process: Choose any node (u) that is in the subtree of (i) as your starting location. Repeat 0 or more times: Suppose you are currently on node (x). Select a node (v) that is in the subtree(^{\text{∗}}) of node (x), but you may not choose (v=x). Move to node (v). This process can be terminated at any point. The characters obtained from all nodes you passed through (in order) are concatenated to form a string. You performed the above process exactly once for every possible path. Two paths are considered different if one node is visited in one path but not another. Now, you have obtained many strings. You want to know the sum of the square of the number of occurrences for each type of string. Since this answer might be very large, output its value modulo (998\,244\,353). Choose any node (u) that is in the subtree of (i) as your starting location. Repeat 0 or more times: Suppose you are currently on node (x). Select a node (v) that is in the subtree(^{\text{∗}}) of node (x), but you may not choose (v=x). Move to node (v). This process can be terminated at any point. Suppose you are currently on node (x). Select a node (v) that is in the subtree(^{\text{∗}}) of node (x), but you may not choose (v=x). Move to node (v). This process can be terminated at any point. The characters obtained from all nodes you passed through (in order) are concatenated to form a string. You performed the above process exactly once for every possible path. Two paths are considered different if one node is visited in one path but not another. Now, you have obtained many strings. You want to know the sum of the square of the number o |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 356892991 | Nailong2026 | F | Jan. 8, 2026, 2:27 a.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 265 | 201011200 | ||
| 356898569 | CCCCOrz | F | Jan. 8, 2026, 4 a.m. | OK | C++17 (GCC 7-32) | TESTS | 86 | 281 | 100864000 | ||
| 356859572 | Austin__Griffin | F | Jan. 7, 2026, 5:15 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 312 | 201420800 | ||
| 356888112 | JaeminPark | F | Jan. 8, 2026, 12:01 a.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 328 | 100761600 | ||
| 356862352 | symkube | F | Jan. 7, 2026, 5:24 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 359 | 96972800 | ||
| 356856807 | TadijaSebez | F | Jan. 7, 2026, 5:07 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 359 | 204595200 | ||
| 356853359 | _Separation | F | Jan. 7, 2026, 4:57 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 421 | 201523200 | ||
| 356857269 | hossein_bidaki | F | Jan. 7, 2026, 5:08 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 515 | 96768000 | ||
| 356886317 | foolishgoat | F | Jan. 7, 2026, 10:51 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 531 | 297574400 | ||
| 356852161 | lijunyi | F | Jan. 7, 2026, 4:54 p.m. | OK | C++17 (GCC 7-32) | TESTS | 85 | 531 | 306790400 | ||
| 356895627 | Topsun | F | Jan. 8, 2026, 3:14 a.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 234 | 100659200 | ||
| 356895460 | lijinyu2022 | F | Jan. 8, 2026, 3:12 a.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 234 | 100659200 | ||
| 356862685 | rlc202204 | F | Jan. 7, 2026, 5:25 p.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 250 | 100659200 | ||
| 356907611 | www_bilibili_com | F | Jan. 8, 2026, 5:56 a.m. | OK | C++20 (GCC 13-64) | TESTS | 86 | 250 | 200806400 | ||
| 356850162 | Palindrome_1 | F | Jan. 7, 2026, 4:48 p.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 265 | 198348800 | ||
| 356850598 | TianyiWei | F | Jan. 7, 2026, 4:49 p.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 281 | 100659200 | ||
| 356890367 | mxj_helen | F | Jan. 8, 2026, 1:23 a.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 281 | 402739200 | ||
| 356855394 | noya2 | F | Jan. 7, 2026, 5:03 p.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 296 | 96768000 | ||
| 356851940 | flytime | F | Jan. 7, 2026, 4:53 p.m. | OK | C++20 (GCC 13-64) | TESTS | 85 | 296 | 197939200 | ||
| 356896536 | Dinprosperity | F | Jan. 8, 2026, 3:28 a.m. | OK | C++20 (GCC 13-64) | TESTS | 86 | 296 | 201011200 | ||
| 356887319 | scorpion | F | Jan. 7, 2026, 11:30 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 234 | 97075200 | ||
| 356881443 | rgnerdplayer | F | Jan. 7, 2026, 8:51 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 234 | 97484800 | ||
| 356896930 | Getaway_Car | F | Jan. 8, 2026, 3:34 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 86 | 250 | 100659200 | ||
| 356895261 | I_love_GSNQK | F | Jan. 8, 2026, 3:08 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 250 | 100659200 | ||
| 356908846 | Wobert | F | Jan. 8, 2026, 6:10 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 86 | 250 | 198246400 | ||
| 356893300 | prairie2022 | F | Jan. 8, 2026, 2:34 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 250 | 198246400 | ||
| 356853237 | vali | F | Jan. 7, 2026, 4:57 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 250 | 198246400 | ||
| 356897364 | off_by_one | F | Jan. 8, 2026, 3:41 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 86 | 265 | 97484800 | ||
| 356891565 | cbdsopa | F | Jan. 8, 2026, 1:56 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 265 | 200806400 | ||
| 356857884 | kmjp | F | Jan. 7, 2026, 5:10 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 85 | 265 | 204697600 | ||
| 356859598 | Ritwin | F | Jan. 7, 2026, 5:15 p.m. | OK | GNU C11 | TESTS | 85 | 1234 | 401920000 | ||
| 356900861 | __baozii__ | F | Jan. 8, 2026, 4:33 a.m. | OK | Go | TESTS | 86 | 359 | 209408000 | ||
| 356850000 | scau_accepted | F | Jan. 7, 2026, 4:48 p.m. | OK | Go | TESTS | 85 | 1187 | 304025600 | ||
| 356878912 | beatinghu | F | Jan. 7, 2026, 8:11 p.m. | OK | Java 21 | TESTS | 85 | 1453 | 297779200 | ||
| 356863734 | ryuk_baba | F | Jan. 7, 2026, 5:28 p.m. | OK | Java 21 | TESTS | 85 | 1546 | 146022400 | ||
| 356855120 | ayushmaan1092 | F | Jan. 7, 2026, 5:02 p.m. | OK | Java 21 | TESTS | 85 | 2343 | 600268800 | ||
| 356850738 | baldycape37 | F | Jan. 7, 2026, 4:50 p.m. | OK | PyPy 3-64 | TESTS | 85 | 968 | 308838400 | ||
| 356906269 | smilences | F | Jan. 8, 2026, 5:41 a.m. | OK | PyPy 3-64 | TESTS | 86 | 1015 | 205516800 | ||
| 356876225 | gdstw | F | Jan. 7, 2026, 7:34 p.m. | OK | PyPy 3-64 | TESTS | 85 | 1140 | 205414400 | ||
| 356879145 | gdstw | F | Jan. 7, 2026, 8:15 p.m. | OK | PyPy 3-64 | TESTS | 85 | 1171 | 205414400 | ||
| 356858235 | imaiwluv | F | Jan. 7, 2026, 5:11 p.m. | OK | PyPy 3-64 | TESTS | 85 | 1312 | 112332800 | ||
| 356884203 | Pulkit_gupta | F | Jan. 7, 2026, 9:48 p.m. | OK | PyPy 3-64 | TESTS | 85 | 2781 | 208486400 | ||
| 356862645 | triple_affirmative | F | Jan. 7, 2026, 5:25 p.m. | OK | Rust 2024 | TESTS | 85 | 468 | 599244800 | ||
| 356862456 | varunnn_gupta | F | Jan. 7, 2026, 5:24 p.m. | OK | Rust 2024 | TESTS | 85 | 921 | 197632000 |
Back to search problems