Codeforces Global Round 5

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
1237 Codeforces Global Round 5 FINISHED False 9000 160586699 Oct. 16, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1335 ) E Balanced Binary Search Trees PROGRAMMING dp math 2400

B"Recall that a binary search tree is a rooted binary tree, whose nodes each store a key and each have at most two distinguished subtrees, left and right. The key in each node must be greater than any key stored in the left subtree, and less than any key stored in the right subtree. The depth of a vertex is the number of edges on the simple path from the vertex to the root. In particular, the depth of the root is 0 . Let's call a binary search tree perfectly balanced if there doesn't exist a binary search tree with the same number of vertices that has a strictly smaller sum of depths of its vertices. Let's call a binary search tree with integer keys striped if both of the following conditions are satisfied for every vertex v : You are given a single integer n . Find the number of perfectly balanced striped binary search trees with n vertices that have distinct integer keys between 1 and n , inclusive. Output this number modulo 998 ,244 ,353 . The only line contains a single integer n ( 1 <= n <= 10^6 ), denoting the required number of vertices. Output the number of perfectly balanced striped binary search trees with n vertices and distinct integer keys between 1 and n , inclusive, modulo 998 ,244 ,353 . In the first example, this is the only tree that satisfies the conditions: In the second example, here are various trees that don't satisfy some condition: "...

Tutorials

T

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62728702 iica E Oct. 16, 2019, 4:51 p.m. OK D TESTS 84 31 102400 2400
62723732 hos.lyric E Oct. 16, 2019, 4:28 p.m. OK D TESTS 84 46 6348800 2400
62810759 rainboy E Oct. 17, 2019, 3:09 p.m. OK GNU C11 TESTS 84 31 0 2400
62747486 Chipe1 E Oct. 16, 2019, 10:35 p.m. OK GNU C11 TESTS 84 46 11980800 2400
67059729 bhaag_milkha E Dec. 17, 2019, 8:33 a.m. OK GNU C++11 TESTS 84 31 0 2400
66926205 luogu_bot1 E Dec. 15, 2019, 6:48 a.m. OK GNU C++11 TESTS 84 31 0 2400
66814258 jyx E Dec. 14, 2019, 4:53 a.m. OK GNU C++11 TESTS 84 31 0 2400
66666657 Sooke E Dec. 12, 2019, 7:27 a.m. OK GNU C++11 TESTS 84 31 0 2400
66626103 vjudge3 E Dec. 11, 2019, 9:07 a.m. OK GNU C++11 TESTS 84 31 0 2400
69603463 blackcoffee E Jan. 27, 2020, 8:47 a.m. OK GNU C++11 TESTS 84 31 0 2400
68100124 xyjw E Jan. 3, 2020, 1:54 a.m. OK GNU C++11 TESTS 84 31 0 2400
67658046 alex_Harry E Dec. 26, 2019, 2:38 p.m. OK GNU C++11 TESTS 84 31 0 2400
67319496 vjudge4 E Dec. 21, 2019, 7:27 a.m. OK GNU C++11 TESTS 84 31 0 2400
69707207 zjjcth330 E Jan. 29, 2020, 5:18 a.m. OK GNU C++11 TESTS 84 31 0 2400
62865848 zarathu E Oct. 18, 2019, 12:12 p.m. OK GNU C++14 TESTS 84 30 0 2400
63083803 hitonanode E Oct. 21, 2019, 3:57 p.m. OK GNU C++14 TESTS 84 30 3174400 2400
63020029 arthurpd E Oct. 20, 2019, 2:12 p.m. OK GNU C++14 TESTS 84 30 4505600 2400
62737729 MofK E Oct. 16, 2019, 6:48 p.m. OK GNU C++14 TESTS 84 30 4505600 2400
65156757 jo_on E Nov. 16, 2019, 9:39 a.m. OK GNU C++14 TESTS 84 31 0 2400
69665767 asfd221 E Jan. 28, 2020, 11:16 a.m. OK GNU C++14 TESTS 84 31 0 2400
68420363 Iulia E Jan. 8, 2020, 9:32 p.m. OK GNU C++14 TESTS 84 31 0 2400
64752393 borcanirobert E Nov. 12, 2019, 3:42 p.m. OK GNU C++14 TESTS 84 31 0 2400
64722716 bzh E Nov. 12, 2019, 4:52 a.m. OK GNU C++14 TESTS 84 31 0 2400
64278372 Amirnasr E Nov. 4, 2019, 11:30 p.m. OK GNU C++14 TESTS 84 31 0 2400
63051319 vjudge3 E Oct. 21, 2019, 2:43 a.m. OK GNU C++17 TESTS 84 30 0 2400
63734957 HannaYz E Oct. 29, 2019, 3:03 p.m. OK GNU C++17 TESTS 84 30 0 2400
62842319 dtc03012 E Oct. 18, 2019, 3:34 a.m. OK GNU C++17 TESTS 84 30 0 2400
62769175 KeNaj712 E Oct. 17, 2019, 9:40 a.m. OK GNU C++17 TESTS 84 30 0 2400
63643523 wonrzrzeczny E Oct. 28, 2019, 8:53 a.m. OK GNU C++17 TESTS 84 30 102400 2400
62944388 AliShahali1382 E Oct. 19, 2019, 4:46 p.m. OK GNU C++17 TESTS 84 30 409600 2400
62737074 nikolapesic2802 E Oct. 16, 2019, 6:38 p.m. OK GNU C++17 TESTS 84 30 4505600 2400
62884039 KLPP E Oct. 18, 2019, 5:44 p.m. OK GNU C++17 TESTS 84 30 32051200 2400
69375020 mohit1O98 E Jan. 22, 2020, 5:56 p.m. OK GNU C++17 TESTS 84 31 0 2400
68589118 toi333 E Jan. 11, 2020, 12:10 p.m. OK GNU C++17 TESTS 84 31 0 2400
64392398 TrzBoys-07-Nurdaulet E Nov. 6, 2019, 3:47 p.m. OK Java 11 TESTS 84 218 17100800 2400
62752424 Harpae E Oct. 17, 2019, 2:22 a.m. OK Java 8 TESTS 84 109 0 2400
62716069 VArtem E Oct. 16, 2019, 3:55 p.m. OK Java 8 TESTS 84 124 0 2400
63670959 beginner1010 E Oct. 28, 2019, 4:52 p.m. OK Java 8 TESTS 84 124 0 2400
63263400 mbfeci E Oct. 23, 2019, 9:43 p.m. OK Java 8 TESTS 84 124 0 2400
62925951 polyakoff E Oct. 19, 2019, 11:20 a.m. OK Java 8 TESTS 84 124 0 2400
62765610 7dan E Oct. 17, 2019, 8:32 a.m. OK Java 8 TESTS 84 124 0 2400
62753876 dalt E Oct. 17, 2019, 3:18 a.m. OK Java 8 TESTS 84 124 0 2400
62746265 fetetriste E Oct. 16, 2019, 9:49 p.m. OK Java 8 TESTS 84 124 0 2400
62720791 ilyakor E Oct. 16, 2019, 4:15 p.m. OK Java 8 TESTS 84 139 0 2400
62721180 Lewin E Oct. 16, 2019, 4:17 p.m. OK Java 8 TESTS 84 139 0 2400
62837168 darnley E Oct. 17, 2019, 11:32 p.m. OK Kotlin TESTS 84 124 0 2400
62837138 darnley E Oct. 17, 2019, 11:31 p.m. OK Kotlin TESTS 84 139 0 2400
62837231 darnley E Oct. 17, 2019, 11:36 p.m. OK Kotlin TESTS 84 140 0 2400
62718792 darnley E Oct. 16, 2019, 4:07 p.m. OK Kotlin TESTS 84 155 0 2400
62713041 Tlatoani E Oct. 16, 2019, 3:44 p.m. OK Kotlin TESTS 84 156 0 2400
62720460 riantkb E Oct. 16, 2019, 4:14 p.m. OK Mono C# TESTS 84 77 0 2400
62758222 math957963 E Oct. 17, 2019, 5:46 a.m. OK MS C++ TESTS 84 31 0 2400
62745003 AleksanderBalobanov E Oct. 16, 2019, 9:11 p.m. OK MS C++ 2017 TESTS 84 31 0 2400
66591547 MT_07 E Dec. 10, 2019, 1:10 p.m. OK MS C++ 2017 TESTS 84 31 0 2400
63924086 gs11008 E Oct. 31, 2019, 12:33 p.m. OK MS C++ 2017 TESTS 84 46 307200 2400
66925899 vjudge2 E Dec. 15, 2019, 6:47 a.m. OK MS C++ 2017 TESTS 84 46 307200 2400
62827671 nikolapesic2802 E Oct. 17, 2019, 6:37 p.m. OK PyPy 2 TESTS 84 124 0 2400
62762280 Phyrith E Oct. 17, 2019, 7:19 a.m. OK PyPy 2 TESTS 84 124 0 2400
62762110 nikolapesic2802 E Oct. 17, 2019, 7:15 a.m. OK PyPy 2 TESTS 84 124 0 2400
62760714 Phyrith E Oct. 17, 2019, 6:45 a.m. OK PyPy 2 TESTS 84 124 0 2400
62756222 Phyrith E Oct. 17, 2019, 4:49 a.m. OK PyPy 2 TESTS 84 124 0 2400
62749156 nikolapesic2802 E Oct. 16, 2019, 11:52 p.m. OK PyPy 2 TESTS 84 124 0 2400
62827971 nikolapesic2802 E Oct. 17, 2019, 6:43 p.m. OK PyPy 2 TESTS 84 139 0 2400
63949883 lollihunter E Oct. 31, 2019, 8:38 p.m. OK PyPy 2 TESTS 84 139 0 2400
62834327 nikolapesic2802 E Oct. 17, 2019, 9:22 p.m. OK PyPy 2 TESTS 84 140 0 2400
62833307 nikolapesic2802 E Oct. 17, 2019, 8:49 p.m. OK PyPy 2 TESTS 84 140 0 2400
62758389 thekushalghosh E Oct. 17, 2019, 5:51 a.m. OK PyPy 3 TESTS 84 139 0 2400
62758484 thekushalghosh E Oct. 17, 2019, 5:53 a.m. OK PyPy 3 TESTS 84 140 0 2400
62758414 thekushalghosh E Oct. 17, 2019, 5:51 a.m. OK PyPy 3 TESTS 84 140 0 2400
63021110 jklcrek E Oct. 20, 2019, 2:35 p.m. OK PyPy 3 TESTS 84 155 102400 2400
62758198 thekushalghosh E Oct. 17, 2019, 5:46 a.m. OK PyPy 3 TESTS 84 171 0 2400
62750570 nguyenthanhhai1069 E Oct. 17, 2019, 12:53 a.m. OK PyPy 3 TESTS 84 171 11161600 2400
62741627 Swiftending E Oct. 16, 2019, 7:58 p.m. OK Python 2 TESTS 84 171 0 2400
62755105 pajenegod E Oct. 17, 2019, 4:07 a.m. OK Python 2 TESTS 84 186 0 2400
62748817 nikolapesic2802 E Oct. 16, 2019, 11:36 p.m. OK Python 2 TESTS 84 186 0 2400
62741859 Swiftending E Oct. 16, 2019, 8:03 p.m. OK Python 2 TESTS 84 186 0 2400
62754979 pajenegod E Oct. 17, 2019, 4:02 a.m. OK Python 2 TESTS 84 187 0 2400
66974252 sruthi_1729 E Dec. 15, 2019, 2:08 p.m. OK Python 2 TESTS 84 202 0 2400
62779233 jade_belk E Oct. 17, 2019, 12:29 p.m. OK Python 2 TESTS 84 202 0 2400
62745862 IngaleAnkur10 E Oct. 16, 2019, 9:35 p.m. OK Python 3 TESTS 84 124 0 2400
62729784 Kiri8128 E Oct. 16, 2019, 4:55 p.m. OK Python 3 TESTS 84 140 0 2400
62970426 vishnutheerthep E Oct. 20, 2019, 6:42 a.m. OK Python 3 TESTS 84 171 9728000 2400
62739518 Maripium E Oct. 16, 2019, 7:19 p.m. OK Python 3 TESTS 84 171 9728000 2400
62727282 sansen E Oct. 16, 2019, 4:44 p.m. OK Rust TESTS 84 31 0 2400

remove filters

Back to search problems