Codeforces Round 915 (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
1905 Codeforces Round 915 (Div. 2) FINISHED False 7200 29085899 Dec. 16, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1008 ) E One-X PROGRAMMING combinatorics dp math

B"In this sad world full of imperfections, ugly segment trees exist. A segment tree is a tree where each node represents a segment and has its number. A segment tree for an array of n elements can be built in a recursive manner. Let's say function operatorname{build}(v,l,r) builds the segment tree rooted in the node with number v and it corresponds to the segment [l,r] . Now let's define operatorname{build}(v,l,r) : So, the whole tree is built by calling operatorname{build}(1,1,n) . Now Ibti will construct a segment tree for an array with n elements. He wants to find the sum of operatorname{lca}^ dagger(S) , where S is a non-empty subset of leaves. Notice that there are exactly 2^n - 1 possible subsets. Since this sum can be very large, output it modulo 998 ,244 ,353 . ^ dagger operatorname{lca}(S) is the number of the least common ancestor for the nodes that are in S . Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^3 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 2 <= n <= 10^{18} ) -- the length of the array for which the segment tree is built. For each test case, output a single integer -- the required sum modulo 998 ,244 ,353 . In the first test case: Let's look at all subsets of leaves. Thus, the answer is 2+3+1=6 . In the second test case: Let's look at all subsets of leaves. Thus, the answer is 4+5+3+2+1+1+1=17 . "...

Tutorials

Codeforces Round 915 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
237532391 haiye E Dec. 16, 2023, 5:18 p.m. OK GNU C++14 TESTS 11 62 480972800
237541645 piyush_beegala E Dec. 16, 2023, 6:48 p.m. OK GNU C++14 TESTS 11 93 0
237523105 Firmino09 E Dec. 16, 2023, 4:25 p.m. OK GNU C++14 TESTS 11 93 0
237524636 superyijin E Dec. 16, 2023, 4:29 p.m. OK GNU C++14 TESTS 11 109 0
237528548 KanzouYamashiro E Dec. 16, 2023, 4:56 p.m. OK GNU C++14 TESTS 11 140 204800
237518664 SoyTony E Dec. 16, 2023, 4:12 p.m. OK GNU C++14 TESTS 11 140 204800
237522468 min_inf E Dec. 16, 2023, 4:23 p.m. OK GNU C++14 TESTS 11 156 204800
237516610 YXHuang E Dec. 16, 2023, 4:06 p.m. OK GNU C++14 TESTS 11 156 4608000
237518611 myheartwaing E Dec. 16, 2023, 4:11 p.m. OK GNU C++14 TESTS 11 171 204800
237521864 lcyxds E Dec. 16, 2023, 4:21 p.m. OK GNU C++14 TESTS 11 171 7782400
237554383 cs142857 E Dec. 16, 2023, 10:16 p.m. OK GNU C++17 TESTS 11 78 102400
237555754 _bLIC_ E Dec. 16, 2023, 10:59 p.m. OK GNU C++17 TESTS 11 93 102400
237530264 CSHwang E Dec. 16, 2023, 5:03 p.m. OK GNU C++17 TESTS 11 93 102400
237542517 Yzm007 E Dec. 16, 2023, 6:58 p.m. OK GNU C++17 TESTS 11 93 204800
237558275 ikaurov E Dec. 17, 2023, 12:41 a.m. OK GNU C++17 TESTS 11 93 4710400
237536951 JomnoiZ E Dec. 16, 2023, 6:01 p.m. OK GNU C++17 TESTS 11 93 5324800
237532315 Noble_Mushtak E Dec. 16, 2023, 5:18 p.m. OK GNU C++17 TESTS 11 109 0
237519651 Bucketsmith E Dec. 16, 2023, 4:14 p.m. OK GNU C++17 TESTS 11 109 102400
237549349 _bLIC_ E Dec. 16, 2023, 8:33 p.m. OK GNU C++17 TESTS 11 109 307200
237544748 weuhfosfd E Dec. 16, 2023, 7:26 p.m. OK GNU C++17 TESTS 11 109 4608000
237565108 Once_I_Liked_AGirl E Dec. 17, 2023, 3:43 a.m. OK GNU C++17 (64) TESTS 11 31 0
237558951 zzzzzz2 E Dec. 17, 2023, 1:06 a.m. OK GNU C++17 (64) TESTS 11 31 0
237563789 Sparkle_Twilight E Dec. 17, 2023, 3:16 a.m. OK GNU C++17 (64) TESTS 11 31 6041600
237563503 Enaliy E Dec. 17, 2023, 3:09 a.m. OK GNU C++17 (64) TESTS 11 31 6041600
237564363 Once_I_Liked_AGirl E Dec. 17, 2023, 3:29 a.m. OK GNU C++17 (64) TESTS 11 46 0
237558561 MarcosK E Dec. 17, 2023, 12:52 a.m. OK GNU C++17 (64) TESTS 11 46 0
237529029 frznhc E Dec. 16, 2023, 4:57 p.m. OK GNU C++17 (64) TESTS 11 46 0
237515591 User-Unauthorized E Dec. 16, 2023, 4:03 p.m. OK GNU C++17 (64) TESTS 11 46 0
237563897 wshcl E Dec. 17, 2023, 3:18 a.m. OK GNU C++17 (64) TESTS 11 46 6041600
237520094 akifpatel E Dec. 16, 2023, 4:16 p.m. OK GNU C++17 (64) TESTS 11 46 19660800
237536952 vgtcross E Dec. 16, 2023, 6:01 p.m. OK GNU C++20 (64) TESTS 11 0 0
237556639 A_G E Dec. 16, 2023, 11:33 p.m. OK GNU C++20 (64) TESTS 11 15 0
237517040 vgtcross E Dec. 16, 2023, 4:07 p.m. OK GNU C++20 (64) TESTS 11 15 0
237543908 ibrm E Dec. 16, 2023, 7:15 p.m. OK GNU C++20 (64) TESTS 11 15 6041600
237521447 Kude E Dec. 16, 2023, 4:20 p.m. OK GNU C++20 (64) TESTS 11 30 0
237537861 shobonvip E Dec. 16, 2023, 6:09 p.m. OK GNU C++20 (64) TESTS 11 31 0
237531909 CSHwang E Dec. 16, 2023, 5:15 p.m. OK GNU C++20 (64) TESTS 11 31 0
237530576 CSHwang E Dec. 16, 2023, 5:06 p.m. OK GNU C++20 (64) TESTS 11 31 0
237529264 gortomi E Dec. 16, 2023, 4:58 p.m. OK GNU C++20 (64) TESTS 11 31 0
237529125 qfl_zzz E Dec. 16, 2023, 4:58 p.m. OK GNU C++20 (64) TESTS 11 31 0
237550896 DarLam E Dec. 16, 2023, 9:01 p.m. OK Java 11 TESTS 11 560 0
237536398 TCchen E Dec. 16, 2023, 5:56 p.m. OK Java 17 TESTS 11 296 6246400
237534619 TCchen E Dec. 16, 2023, 5:39 p.m. OK Java 17 TESTS 11 296 6656000
237534956 TCchen E Dec. 16, 2023, 5:42 p.m. OK Java 17 TESTS 11 373 1024000
237536135 TCchen E Dec. 16, 2023, 5:53 p.m. OK Java 17 TESTS 11 373 6656000
237533580 amaturecoder E Dec. 16, 2023, 5:29 p.m. OK Java 8 TESTS 11 1185 14950400
237516928 toam E Dec. 16, 2023, 4:07 p.m. OK PyPy 3-64 TESTS 11 343 10035200
237569669 Rauan12345 E Dec. 17, 2023, 5:16 a.m. OK PyPy 3-64 TESTS 11 514 15564800
237532424 yuki_keshiki E Dec. 16, 2023, 5:18 p.m. OK PyPy 3-64 TESTS 11 561 15360000
237519424 chinerist E Dec. 16, 2023, 4:14 p.m. OK PyPy 3-64 TESTS 11 592 19353600
237539080 blue_ice_yj E Dec. 16, 2023, 6:21 p.m. OK PyPy 3-64 TESTS 11 982 34918400
237539166 blue_ice_yj E Dec. 16, 2023, 6:21 p.m. OK PyPy 3-64 TESTS 11 1060 19968000
237536377 blue_ice_yj E Dec. 16, 2023, 5:55 p.m. OK PyPy 3-64 TESTS 11 1263 19558400
237538264 blue_ice_yj E Dec. 16, 2023, 6:13 p.m. OK PyPy 3-64 TESTS 11 1279 19456000
237515301 wmrmr E Dec. 16, 2023, 4:02 p.m. OK Rust 2021 TESTS 11 31 0

remove filters

Back to search problems