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 |
---|---|---|---|---|---|---|
1922 | Educational Codeforces Round 161 (Rated for Div. 2) | FINISHED | False | 7200 | 26234699 | Jan. 18, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 20812 ) | B | Forming Triangles | PROGRAMMING | combinatorics implementation math |
B'You have n sticks, numbered from 1 to n . The length of the i -th stick is 2^{a_i} . You want to choose exactly 3 sticks out of the given n sticks, and form a non-degenerate triangle out of them, using the sticks as the sides of the triangle. A triangle is called non-degenerate if its area is strictly greater than 0 . You have to calculate the number of ways to choose exactly 3 sticks so that a triangle can be formed out of them. Note that the order of choosing sticks does not matter (for example, choosing the 1 -st, 2 -nd and 4 -th stick is the same as choosing the 2 -nd, 4 -th and 1 -st stick). The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of two lines: Additional constraint on the input: the sum of n over all test cases does not exceed 3 cdot 10^5 . For each test case, print one integer -- the number of ways to choose exactly 3 sticks so that a triangle can be formed out of them. In the first test case of the example, any three sticks out of the given 7 can be chosen. In the second test case of the example, you can choose the 1 -st, 2 -nd and 4 -th stick, or the 1 -st, 3 -rd and 4 -th stick. In the third test case of the example, you cannot form a triangle out of the given sticks with lengths 2 , 4 and 8 . '... |
Educational Codeforces Round 161 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
242355625 | _Ghoco_ | B | Jan. 18, 2024, 10:04 p.m. | OK | C# 10 | TESTS | 4 | 108 | 26009600 | ||
242360724 | bluemegane | B | Jan. 19, 2024, 12:54 a.m. | OK | C# 8 | TESTS | 4 | 202 | 25190400 | ||
242326870 | W_A_I_T | B | Jan. 18, 2024, 4:59 p.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 1075 | 2662400 | ||
242370339 | Rikka_venti | B | Jan. 19, 2024, 3:59 a.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 1154 | 2560000 | ||
242369326 | NHBC | B | Jan. 19, 2024, 3:44 a.m. | OK | GNU C11 | TESTS | 4 | 78 | 5120000 | ||
242332483 | shineXP | B | Jan. 18, 2024, 5:31 p.m. | OK | GNU C11 | TESTS | 4 | 93 | 2355200 | ||
242339779 | Kaushal655 | B | Jan. 18, 2024, 6:23 p.m. | OK | GNU C11 | TESTS | 4 | 124 | 4812800 | ||
242337129 | Sanchit27 | B | Jan. 18, 2024, 6:03 p.m. | OK | GNU C11 | TESTS | 4 | 155 | 4812800 | ||
242363959 | flow_frenzy_27 | B | Jan. 19, 2024, 2:13 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 2150400 | ||
242333502 | Haunted_Cpp | B | Jan. 18, 2024, 5:37 p.m. | OK | GNU C++17 | TESTS | 4 | 46 | 0 | ||
242329529 | GS42 | B | Jan. 18, 2024, 5:13 p.m. | OK | GNU C++17 | TESTS | 4 | 46 | 1228800 | ||
242372256 | luckgod | B | Jan. 19, 2024, 4:28 a.m. | OK | GNU C++17 | TESTS | 4 | 46 | 1228800 | ||
242370843 | SopaconK | B | Jan. 19, 2024, 4:06 a.m. | OK | GNU C++17 | TESTS | 4 | 46 | 2355200 | ||
242361595 | Hell2Evator | B | Jan. 19, 2024, 1:18 a.m. | OK | GNU C++17 | TESTS | 4 | 46 | 3584000 | ||
242331217 | vishh_all | B | Jan. 18, 2024, 5:23 p.m. | OK | GNU C++17 | TESTS | 4 | 61 | 0 | ||
242335824 | Egorsa | B | Jan. 18, 2024, 5:53 p.m. | OK | GNU C++17 | TESTS | 4 | 61 | 0 | ||
242350407 | Waranasi | B | Jan. 18, 2024, 8:16 p.m. | OK | GNU C++17 | TESTS | 4 | 61 | 0 | ||
242350769 | amaze_28 | B | Jan. 18, 2024, 8:22 p.m. | OK | GNU C++17 | TESTS | 4 | 61 | 0 | ||
242364666 | jackylova_fan_fan_fan | B | Jan. 19, 2024, 2:28 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 1228800 | ||
242372193 | Ruanyy | B | Jan. 19, 2024, 4:26 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 2457600 | ||
242323924 | heisenberg_120 | B | Jan. 18, 2024, 4:47 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 2355200 | ||
242362514 | shirokane_rinko | B | Jan. 19, 2024, 1:41 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 4812800 | ||
242377824 | __zy__ | B | Jan. 19, 2024, 5:30 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 4812800 | ||
242331946 | _GENESIS | B | Jan. 18, 2024, 5:27 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 31 | 0 | ||
242363768 | jdurie | B | Jan. 19, 2024, 2:08 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 31 | 0 | ||
242362344 | H_obert | B | Jan. 19, 2024, 1:37 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 31 | 0 | ||
242336667 | TNCWB_Better | B | Jan. 18, 2024, 5:59 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 31 | 0 | ||
242331039 | SirNathaN | B | Jan. 18, 2024, 5:22 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 31 | 0 | ||
242368488 | cmottao | B | Jan. 19, 2024, 3:32 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
242344760 | binary_coder_01 | B | Jan. 18, 2024, 7:10 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
242341583 | Ahmed_Essam_Yassin | B | Jan. 18, 2024, 6:38 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 2457600 | ||
242335094 | thewoahguy24 | B | Jan. 18, 2024, 5:48 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 2457600 | ||
242347815 | Khaled_Al_Awad | B | Jan. 18, 2024, 7:44 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 30 | 4812800 | ||
242325011 | kareem_Bizreh | B | Jan. 18, 2024, 4:51 p.m. | OK | GNU C++20 (64) | TESTS | 4 | 30 | 4812800 | ||
242373050 | haters | B | Jan. 19, 2024, 4:39 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 31 | 0 | ||
242374131 | brxteforceman | B | Jan. 19, 2024, 4:53 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 31 | 0 | ||
242378504 | guanglongshen | B | Jan. 19, 2024, 5:37 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 31 | 0 | ||
242379892 | turkhuu622 | B | Jan. 19, 2024, 5:48 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 31 | 0 | ||
242352106 | kiruxan | B | Jan. 18, 2024, 8:44 p.m. | OK | Go | TESTS | 4 | 77 | 13312000 | ||
242336371 | october_rain | B | Jan. 18, 2024, 5:57 p.m. | OK | Haskell | TESTS | 4 | 904 | 35737600 | ||
242355435 | Sherif_Toiema_22 | B | Jan. 18, 2024, 9:59 p.m. | OK | Java 21 | TESTS | 4 | 233 | 409600 | ||
242328795 | yvbf | B | Jan. 18, 2024, 5:09 p.m. | OK | Java 21 | TESTS | 4 | 248 | 0 | ||
242339153 | y_a_s | B | Jan. 18, 2024, 6:18 p.m. | OK | Java 21 | TESTS | 4 | 249 | 0 | ||
242345255 | iknownothing13 | B | Jan. 18, 2024, 7:15 p.m. | OK | Java 21 | TESTS | 4 | 264 | 307200 | ||
242334413 | V1GYAT | B | Jan. 18, 2024, 5:43 p.m. | OK | Java 21 | TESTS | 4 | 265 | 0 | ||
242324348 | pavan.nagaraju94 | B | Jan. 18, 2024, 4:48 p.m. | OK | Java 21 | TESTS | 4 | 280 | 0 | ||
242374643 | umcleji | B | Jan. 19, 2024, 4:59 a.m. | OK | Java 21 | TESTS | 4 | 280 | 0 | ||
242354801 | susvant | B | Jan. 18, 2024, 9:43 p.m. | OK | Java 21 | TESTS | 4 | 280 | 0 | ||
242334449 | Xing_ke | B | Jan. 18, 2024, 5:43 p.m. | OK | Java 21 | TESTS | 4 | 280 | 0 | ||
242334251 | Bill35 | B | Jan. 18, 2024, 5:42 p.m. | OK | Java 21 | TESTS | 4 | 280 | 0 | ||
242329135 | qwerty12345qwerty | B | Jan. 18, 2024, 5:11 p.m. | OK | Java 8 | TESTS | 4 | 124 | 0 | ||
242362796 | etian6795 | B | Jan. 19, 2024, 1:47 a.m. | OK | Java 8 | TESTS | 4 | 155 | 2662400 | ||
242325666 | ycnetsisnoc | B | Jan. 18, 2024, 4:53 p.m. | OK | Java 8 | TESTS | 4 | 187 | 0 | ||
242363873 | Gavind | B | Jan. 19, 2024, 2:11 a.m. | OK | Java 8 | TESTS | 4 | 233 | 16281600 | ||
242343549 | Sumitsingh7 | B | Jan. 18, 2024, 6:57 p.m. | OK | Java 8 | TESTS | 4 | 233 | 21708800 | ||
242363769 | Gavind | B | Jan. 19, 2024, 2:08 a.m. | OK | Java 8 | TESTS | 4 | 249 | 13312000 | ||
242332246 | Paramveer01 | B | Jan. 18, 2024, 5:29 p.m. | OK | Java 8 | TESTS | 4 | 405 | 0 | ||
242324073 | krushi1902 | B | Jan. 18, 2024, 4:47 p.m. | OK | Java 8 | TESTS | 4 | 405 | 0 | ||
242359983 | Ikshvaku | B | Jan. 19, 2024, 12:30 a.m. | OK | Java 8 | TESTS | 4 | 420 | 0 | ||
242370934 | Mr_A | B | Jan. 19, 2024, 4:07 a.m. | OK | Java 8 | TESTS | 4 | 436 | 0 | ||
242364180 | aluckyboy | B | Jan. 19, 2024, 2:18 a.m. | OK | MS C++ 2017 | TESTS | 4 | 171 | 2355200 | ||
242366142 | vishvjoshi | B | Jan. 19, 2024, 2:53 a.m. | OK | MS C++ 2017 | TESTS | 4 | 186 | 0 | ||
242334829 | autumn_mountain | B | Jan. 18, 2024, 5:46 p.m. | OK | MS C++ 2017 | TESTS | 4 | 186 | 1228800 | ||
242343471 | Whitemir | B | Jan. 18, 2024, 6:56 p.m. | OK | MS C++ 2017 | TESTS | 4 | 187 | 0 | ||
242329407 | shuangya | B | Jan. 18, 2024, 5:12 p.m. | OK | MS C++ 2017 | TESTS | 4 | 202 | 1228800 | ||
242373425 | ysysn | B | Jan. 19, 2024, 4:44 a.m. | OK | MS C++ 2017 | TESTS | 4 | 202 | 2355200 | ||
242345528 | IITeens | B | Jan. 18, 2024, 7:18 p.m. | OK | MS C++ 2017 | TESTS | 4 | 202 | 2355200 | ||
242365617 | Pandit_Jwalit | B | Jan. 19, 2024, 2:45 a.m. | OK | MS C++ 2017 | TESTS | 4 | 233 | 2355200 | ||
242341234 | AvanSingh | B | Jan. 18, 2024, 6:35 p.m. | OK | MS C++ 2017 | TESTS | 4 | 234 | 2355200 | ||
242370087 | Square_Sponge | B | Jan. 19, 2024, 3:55 a.m. | OK | MS C++ 2017 | TESTS | 4 | 717 | 3584000 | ||
242360469 | crapcode | B | Jan. 19, 2024, 12:45 a.m. | OK | PHP | TESTS | 4 | 139 | 48332800 | ||
242329876 | mcb1303 | B | Jan. 18, 2024, 5:15 p.m. | OK | PyPy 3 | TESTS | 4 | 452 | 21196800 | ||
242326648 | adityamehrotra | B | Jan. 18, 2024, 4:58 p.m. | OK | PyPy 3 | TESTS | 4 | 467 | 22937600 | ||
242342800 | Paras2856 | B | Jan. 18, 2024, 6:49 p.m. | OK | PyPy 3 | TESTS | 4 | 499 | 21196800 | ||
242352866 | gardengnome | B | Jan. 18, 2024, 8:58 p.m. | OK | PyPy 3-64 | TESTS | 4 | 124 | 36761600 | ||
242337143 | AHappyPotato | B | Jan. 18, 2024, 6:03 p.m. | OK | PyPy 3-64 | TESTS | 4 | 140 | 38400000 | ||
242371377 | DarkTemplarDrop | B | Jan. 19, 2024, 4:14 a.m. | OK | PyPy 3-64 | TESTS | 4 | 155 | 29491200 | ||
242368059 | a_nanas | B | Jan. 19, 2024, 3:26 a.m. | OK | PyPy 3-64 | TESTS | 4 | 155 | 30617600 | ||
242374963 | theRealChainman | B | Jan. 19, 2024, 5:03 a.m. | OK | PyPy 3-64 | TESTS | 4 | 155 | 31846400 | ||
242345197 | ankitesh | B | Jan. 18, 2024, 7:14 p.m. | OK | PyPy 3-64 | TESTS | 4 | 155 | 36966400 | ||
242341527 | NitroSpear | B | Jan. 18, 2024, 6:38 p.m. | OK | PyPy 3-64 | TESTS | 4 | 170 | 37068800 | ||
242328022 | helltractor | B | Jan. 18, 2024, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 4 | 186 | 32563200 | ||
242348482 | Deecey01 | B | Jan. 18, 2024, 7:52 p.m. | OK | PyPy 3-64 | TESTS | 4 | 186 | 38707200 | ||
242324290 | KAMITO | B | Jan. 18, 2024, 4:48 p.m. | OK | PyPy 3-64 | TESTS | 4 | 187 | 37068800 | ||
242333041 | OLOGY | B | Jan. 18, 2024, 5:34 p.m. | OK | Python 2 | TESTS | 4 | 218 | 18022400 | ||
242377560 | 368_kLH | B | Jan. 19, 2024, 5:28 a.m. | OK | Python 3 | TESTS | 4 | 139 | 28160000 | ||
242338562 | lunilay2002 | B | Jan. 18, 2024, 6:14 p.m. | OK | Python 3 | TESTS | 4 | 139 | 40038400 | ||
242330019 | Posvan | B | Jan. 18, 2024, 5:16 p.m. | OK | Python 3 | TESTS | 4 | 170 | 39424000 | ||
242324320 | victorLi | B | Jan. 18, 2024, 4:48 p.m. | OK | Python 3 | TESTS | 4 | 171 | 38604800 | ||
242361455 | VioletVal | B | Jan. 19, 2024, 1:15 a.m. | OK | Python 3 | TESTS | 4 | 202 | 38502400 | ||
242330370 | AdithyaCh | B | Jan. 18, 2024, 5:18 p.m. | OK | Python 3 | TESTS | 4 | 202 | 38707200 | ||
242325285 | eugalt | B | Jan. 18, 2024, 4:52 p.m. | OK | Python 3 | TESTS | 4 | 202 | 40038400 | ||
242331708 | palestep | B | Jan. 18, 2024, 5:26 p.m. | OK | Python 3 | TESTS | 4 | 217 | 38604800 | ||
242340231 | ___a_s_1_2___ | B | Jan. 18, 2024, 6:27 p.m. | OK | Python 3 | TESTS | 4 | 217 | 38707200 | ||
242330034 | amod_24 | B | Jan. 18, 2024, 5:16 p.m. | OK | Python 3 | TESTS | 4 | 217 | 38707200 | ||
242338029 | 0x81 | B | Jan. 18, 2024, 6:10 p.m. | OK | Ruby 3 | TESTS | 4 | 733 | 32972800 | ||
242349423 | vstiff | B | Jan. 18, 2024, 8:03 p.m. | OK | Rust 2021 | TESTS | 4 | 31 | 9420800 | ||
242337484 | manan180796 | B | Jan. 18, 2024, 6:06 p.m. | OK | Rust 2021 | TESTS | 4 | 108 | 27136000 |
Back to search problems