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 |
---|---|---|---|---|---|---|
1899 | Codeforces Round 909 (Div. 3) | FINISHED | False | 8100 | 31591499 | Nov. 17, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 13674 ) | D | Yarik and Musical Notes | PROGRAMMING | math number theory |
B"Yarik is a big fan of many kinds of music. But Yarik loves not only listening to music but also writing it. He likes electronic music most of all, so he has created his own system of music notes, which, in his opinion, is best for it. Since Yarik also likes informatics, in his system notes are denoted by integers of 2^k , where k ge 1 -- a positive integer. But, as you know, you can't use just notes to write music, so Yarik uses combinations of two notes. The combination of two notes (a, b) , where a = 2^k and b = 2^l , he denotes by the integer a^b . For example, if a = 8 = 2^3 , b = 4 = 2^2 , then the combination (a, b) is denoted by the integer a^b = 8^4 = 4096 . Note that different combinations can have the same notation, e.g., the combination (64, 2) is also denoted by the integer 4096 = 64^2 . Yarik has already chosen n notes that he wants to use in his new melody. However, since their integers can be very large, he has written them down as an array a of length n , then the note i is b_i = 2^{a_i} . The integers in array a can be repeated. The melody will consist of several combinations of two notes. Yarik was wondering how many pairs of notes b_i, b_j (i < j) exist such that the combination (b_i, b_j) is equal to the combination (b_j, b_i) . In other words, he wants to count the number of pairs (i, j) (i < j) such that b_i^{b_j} = b_j^{b_i} . Help him find the number of such pairs. The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains one integer n ( 1 <= q n <= q 2 cdot 10^5 ) -- the length of the arrays. The next line contains n integers a_1, a_2, ... , a_n ( 1 <= q a_i <= q 10^9 ) -- array a . It is guaranteed that the sum of n over all test cases does not exceed "... |
Разбор Codeforces Round 909 (Div. 3) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
233203536 | volhalink | D | Nov. 17, 2023, 5:31 p.m. | OK | C# 10 | TESTS | 13 | 124 | 23654400 | ||
233227176 | Gassa | D | Nov. 17, 2023, 10:32 p.m. | OK | D | TESTS | 13 | 78 | 38195200 | ||
233226730 | Gassa | D | Nov. 17, 2023, 10:20 p.m. | OK | D | TESTS | 13 | 93 | 24473600 | ||
233203003 | eastnman | D | Nov. 17, 2023, 5:27 p.m. | OK | FPC | TESTS | 13 | 108 | 5120000 | ||
233200731 | jielosc | D | Nov. 17, 2023, 5:14 p.m. | OK | GNU C++14 | TESTS | 13 | 62 | 819200 | ||
233192224 | Comentropy | D | Nov. 17, 2023, 4:44 p.m. | OK | GNU C++14 | TESTS | 13 | 62 | 819200 | ||
233198356 | fairyduck | D | Nov. 17, 2023, 5:01 p.m. | OK | GNU C++14 | TESTS | 13 | 62 | 1638400 | ||
233204089 | Zenocres | D | Nov. 17, 2023, 5:35 p.m. | OK | GNU C++14 | TESTS | 13 | 62 | 24064000 | ||
233232267 | Konggee. | D | Nov. 18, 2023, 1:22 a.m. | OK | GNU C++14 | TESTS | 13 | 77 | 5939200 | ||
233231905 | orz_0000 | D | Nov. 18, 2023, 1:11 a.m. | OK | GNU C++14 | TESTS | 13 | 77 | 5939200 | ||
233211024 | mihirmilindkumar | D | Nov. 17, 2023, 6:32 p.m. | OK | GNU C++14 | TESTS | 13 | 77 | 5939200 | ||
233224100 | harshjaiswalcr7 | D | Nov. 17, 2023, 9:23 p.m. | OK | GNU C++14 | TESTS | 13 | 78 | 2150400 | ||
233200070 | hphucvn | D | Nov. 17, 2023, 5:10 p.m. | OK | GNU C++14 | TESTS | 13 | 78 | 4505600 | ||
233201070 | XpectoPatronum | D | Nov. 17, 2023, 5:16 p.m. | OK | GNU C++14 | TESTS | 13 | 92 | 5939200 | ||
233238576 | whj828 | D | Nov. 18, 2023, 3:27 a.m. | OK | GNU C++17 | TESTS | 13 | 62 | 819200 | ||
233206838 | sangyanDayal | D | Nov. 17, 2023, 5:56 p.m. | OK | GNU C++17 | TESTS | 13 | 62 | 1638400 | ||
233204949 | _aditya_b | D | Nov. 17, 2023, 5:41 p.m. | OK | GNU C++17 | TESTS | 13 | 62 | 1638400 | ||
233213980 | zitVang | D | Nov. 17, 2023, 7:02 p.m. | OK | GNU C++17 | TESTS | 13 | 62 | 5017600 | ||
233241734 | __New_coder | D | Nov. 18, 2023, 4:17 a.m. | OK | GNU C++17 | TESTS | 13 | 62 | 5836800 | ||
233247529 | FernandoJC07 | D | Nov. 18, 2023, 5:29 a.m. | OK | GNU C++17 | TESTS | 13 | 77 | 1638400 | ||
233228524 | Theodor14 | D | Nov. 17, 2023, 11:11 p.m. | OK | GNU C++17 | TESTS | 13 | 77 | 1638400 | ||
233195317 | RezRhyme | D | Nov. 17, 2023, 4:49 p.m. | OK | GNU C++17 | TESTS | 13 | 77 | 1638400 | ||
233206236 | maverickreal | D | Nov. 17, 2023, 5:51 p.m. | OK | GNU C++17 | TESTS | 13 | 77 | 5017600 | ||
233246141 | yuval_b | D | Nov. 18, 2023, 5:14 a.m. | OK | GNU C++17 | TESTS | 13 | 77 | 6656000 | ||
233209828 | HelmOptimum | D | Nov. 17, 2023, 6:21 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 46 | 1638400 | ||
233196466 | C10udz | D | Nov. 17, 2023, 4:54 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 46 | 1638400 | ||
233234860 | fs20091003 | D | Nov. 18, 2023, 2:21 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 46 | 2969600 | ||
233194628 | C10udz | D | Nov. 17, 2023, 4:49 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 46 | 16076800 | ||
233195110 | C10udz | D | Nov. 17, 2023, 4:49 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 61 | 1638400 | ||
233209735 | Cyoan | D | Nov. 17, 2023, 6:20 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 61 | 4710400 | ||
233236461 | Forbidden_ | D | Nov. 18, 2023, 2:50 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 62 | 1638400 | ||
233230818 | Warrior_1729 | D | Nov. 18, 2023, 12:34 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 62 | 1638400 | ||
233220354 | doppelgangerOfMeow | D | Nov. 17, 2023, 8:22 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 62 | 4710400 | ||
233230946 | JustA7 | D | Nov. 18, 2023, 12:38 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 62 | 5529600 | ||
233234385 | XingRin | D | Nov. 18, 2023, 2:11 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233232287 | secretman1312 | D | Nov. 18, 2023, 1:22 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233228633 | Ibraheem.MH | D | Nov. 17, 2023, 11:15 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233228569 | Ibraheem.MH | D | Nov. 17, 2023, 11:12 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233228461 | Ibraheem.MH | D | Nov. 17, 2023, 11:09 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233227960 | Ibraheem.MH | D | Nov. 17, 2023, 10:53 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233200414 | phattr | D | Nov. 17, 2023, 5:12 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233199383 | vipulahir7 | D | Nov. 17, 2023, 5:07 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233198489 | vipulahir7 | D | Nov. 17, 2023, 5:02 p.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 819200 | ||
233240483 | kuguadawang | D | Nov. 18, 2023, 3:57 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 46 | 1638400 | ||
233198749 | kiruxan | D | Nov. 17, 2023, 5:03 p.m. | OK | Go | TESTS | 13 | 77 | 15052800 | ||
233232959 | CruellaDeVil | D | Nov. 18, 2023, 1:38 a.m. | OK | Go | TESTS | 13 | 124 | 8908800 | ||
233193546 | hathawayANdRX105 | D | Nov. 17, 2023, 4:47 p.m. | OK | Go | TESTS | 13 | 171 | 9728000 | ||
233225423 | IceWolf898 | D | Nov. 17, 2023, 9:49 p.m. | OK | Java 11 | TESTS | 13 | 264 | 7168000 | ||
233224916 | RiceTofu | D | Nov. 17, 2023, 9:39 p.m. | OK | Java 11 | TESTS | 13 | 280 | 5222400 | ||
233240844 | barbar1k | D | Nov. 18, 2023, 4:03 a.m. | OK | Java 11 | TESTS | 13 | 280 | 6246400 | ||
233200538 | emperor_r | D | Nov. 17, 2023, 5:13 p.m. | OK | Java 11 | TESTS | 13 | 311 | 5324800 | ||
233197543 | kribri | D | Nov. 17, 2023, 4:58 p.m. | OK | Java 11 | TESTS | 13 | 311 | 7065600 | ||
233235415 | LeoIsKing | D | Nov. 18, 2023, 2:31 a.m. | OK | Java 11 | TESTS | 13 | 327 | 5836800 | ||
233242546 | ljjkr | D | Nov. 18, 2023, 4:28 a.m. | OK | Java 11 | TESTS | 13 | 327 | 22528000 | ||
233195084 | themadknight45 | D | Nov. 17, 2023, 4:49 p.m. | OK | Java 11 | TESTS | 13 | 343 | 26828800 | ||
233199008 | kribri | D | Nov. 17, 2023, 5:05 p.m. | OK | Java 11 | TESTS | 13 | 374 | 7065600 | ||
233212311 | vedjaiswal | D | Nov. 17, 2023, 6:45 p.m. | OK | Java 11 | TESTS | 13 | 514 | 5120000 | ||
233198395 | TheLastDanceCoder | D | Nov. 17, 2023, 5:02 p.m. | OK | Java 17 | TESTS | 13 | 264 | 8499200 | ||
233243211 | AKhacks | D | Nov. 18, 2023, 4:38 a.m. | OK | Java 17 | TESTS | 13 | 296 | 614400 | ||
233199444 | md_yusuf | D | Nov. 17, 2023, 5:07 p.m. | OK | Java 17 | TESTS | 13 | 296 | 7270400 | ||
233202139 | AKhacks | D | Nov. 17, 2023, 5:21 p.m. | OK | Java 17 | TESTS | 13 | 327 | 7782400 | ||
233195434 | 21h51a0560 | D | Nov. 17, 2023, 4:49 p.m. | OK | Java 17 | TESTS | 13 | 546 | 13004800 | ||
233213705 | vyom_1225 | D | Nov. 17, 2023, 6:59 p.m. | OK | Java 17 | TESTS | 13 | 577 | 5939200 | ||
233249731 | skylord69 | D | Nov. 18, 2023, 5:52 a.m. | OK | Java 17 | TESTS | 13 | 592 | 6246400 | ||
233224811 | fenixsandrit | D | Nov. 17, 2023, 9:37 p.m. | OK | Java 17 | TESTS | 13 | 608 | 6451200 | ||
233222047 | Baniya_09 | D | Nov. 17, 2023, 8:49 p.m. | OK | Java 17 | TESTS | 13 | 670 | 6553600 | ||
233249757 | Vikash_Rathour | D | Nov. 18, 2023, 5:53 a.m. | OK | Java 17 | TESTS | 13 | 685 | 5222400 | ||
233199405 | frey4 | D | Nov. 17, 2023, 5:07 p.m. | OK | Java 21 | TESTS | 13 | 342 | 8396800 | ||
233242475 | BloCamLimb | D | Nov. 18, 2023, 4:27 a.m. | OK | Java 21 | TESTS | 13 | 374 | 6860800 | ||
233194319 | V0ice | D | Nov. 17, 2023, 4:48 p.m. | OK | Java 21 | TESTS | 13 | 686 | 409600 | ||
233214077 | RatanK | D | Nov. 17, 2023, 7:03 p.m. | OK | Java 21 | TESTS | 13 | 982 | 16691200 | ||
233206593 | vatsal_04 | D | Nov. 17, 2023, 5:54 p.m. | OK | Java 8 | TESTS | 13 | 187 | 5529600 | ||
233199798 | Yousef_Badr | D | Nov. 17, 2023, 5:09 p.m. | OK | Java 8 | TESTS | 13 | 202 | 3686400 | ||
233192499 | dvkcool | D | Nov. 17, 2023, 4:45 p.m. | OK | Java 8 | TESTS | 13 | 202 | 4403200 | ||
233219837 | sumitlaura101 | D | Nov. 17, 2023, 8:16 p.m. | OK | Java 8 | TESTS | 13 | 202 | 19660800 | ||
233199099 | devesh434 | D | Nov. 17, 2023, 5:05 p.m. | OK | Java 8 | TESTS | 13 | 217 | 3072000 | ||
233225881 | sagbis | D | Nov. 17, 2023, 10 p.m. | OK | Java 8 | TESTS | 13 | 264 | 10649600 | ||
233203960 | kdprasad0036 | D | Nov. 17, 2023, 5:34 p.m. | OK | Java 8 | TESTS | 13 | 483 | 5120000 | ||
233227406 | mohamedhassan_c | D | Nov. 17, 2023, 10:38 p.m. | OK | Java 8 | TESTS | 13 | 498 | 21708800 | ||
233192204 | 6thSense | D | Nov. 17, 2023, 4:44 p.m. | OK | Java 8 | TESTS | 13 | 592 | 17817600 | ||
233212617 | h1nk | D | Nov. 17, 2023, 6:48 p.m. | OK | MS C++ 2017 | TESTS | 13 | 217 | 4403200 | ||
233204180 | Pankaj8433 | D | Nov. 17, 2023, 5:35 p.m. | OK | MS C++ 2017 | TESTS | 13 | 218 | 4608000 | ||
233198923 | Pankaj8433 | D | Nov. 17, 2023, 5:04 p.m. | OK | MS C++ 2017 | TESTS | 13 | 233 | 3788800 | ||
233237833 | Ir0nic_Joker | D | Nov. 18, 2023, 3:14 a.m. | OK | MS C++ 2017 | TESTS | 13 | 249 | 7577600 | ||
233228101 | AhsanRandhawa | D | Nov. 17, 2023, 10:57 p.m. | OK | PyPy 3 | TESTS | 13 | 311 | 17920000 | ||
233241096 | hugenoob | D | Nov. 18, 2023, 4:07 a.m. | OK | PyPy 3 | TESTS | 13 | 343 | 20787200 | ||
233249357 | pedastrian57 | D | Nov. 18, 2023, 5:49 a.m. | OK | PyPy 3 | TESTS | 13 | 358 | 83353600 | ||
233226134 | Keval_78 | D | Nov. 17, 2023, 10:06 p.m. | OK | PyPy 3 | TESTS | 13 | 390 | 84684800 | ||
233229863 | DRDIV | D | Nov. 17, 2023, 11:59 p.m. | OK | PyPy 3 | TESTS | 13 | 405 | 20787200 | ||
233233643 | derevianko152 | D | Nov. 18, 2023, 1:54 a.m. | OK | PyPy 3 | TESTS | 13 | 451 | 17920000 | ||
233195470 | n_o_n_o_n | D | Nov. 17, 2023, 4:49 p.m. | OK | PyPy 3 | TESTS | 13 | 452 | 19148800 | ||
233245484 | dheemanth_1910 | D | Nov. 18, 2023, 5:06 a.m. | OK | PyPy 3 | TESTS | 13 | 514 | 19456000 | ||
233220473 | string_eureka | D | Nov. 17, 2023, 8:24 p.m. | OK | PyPy 3-64 | TESTS | 13 | 124 | 27033600 | ||
233192515 | Erum_Meraj | D | Nov. 17, 2023, 4:45 p.m. | OK | PyPy 3-64 | TESTS | 13 | 139 | 26726400 | ||
233191572 | bluecloud | D | Nov. 17, 2023, 4:43 p.m. | OK | PyPy 3-64 | TESTS | 13 | 140 | 27750400 | ||
233198774 | gardengnome | D | Nov. 17, 2023, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 27340800 | ||
233217295 | dodobow | D | Nov. 17, 2023, 7:42 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 27852800 | ||
233218004 | sixthcore | D | Nov. 17, 2023, 7:50 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 39116800 | ||
233218301 | sixthcore | D | Nov. 17, 2023, 7:54 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 39219200 | ||
233218288 | sixthcore | D | Nov. 17, 2023, 7:54 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 39219200 | ||
233218274 | sixthcore | D | Nov. 17, 2023, 7:54 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 39219200 | ||
233227394 | sixthcore | D | Nov. 17, 2023, 10:38 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 39321600 | ||
233216172 | billythebishop4 | D | Nov. 17, 2023, 7:28 p.m. | OK | Python 3 | TESTS | 13 | 187 | 26828800 | ||
233230984 | ropzrode | D | Nov. 18, 2023, 12:39 a.m. | OK | Python 3 | TESTS | 13 | 202 | 25600000 | ||
233230816 | 2022040093 | D | Nov. 18, 2023, 12:34 a.m. | OK | Python 3 | TESTS | 13 | 202 | 28672000 | ||
233208094 | TruongAnim | D | Nov. 17, 2023, 6:06 p.m. | OK | Python 3 | TESTS | 13 | 202 | 28672000 | ||
233193782 | syedwajid01 | D | Nov. 17, 2023, 4:47 p.m. | OK | Python 3 | TESTS | 13 | 202 | 28672000 | ||
233195854 | WuYifan. | D | Nov. 17, 2023, 4:51 p.m. | OK | Python 3 | TESTS | 13 | 202 | 29491200 | ||
233235399 | Adelhyde | D | Nov. 18, 2023, 2:31 a.m. | OK | Python 3 | TESTS | 13 | 217 | 25190400 | ||
233195680 | khushigupta515 | D | Nov. 17, 2023, 4:51 p.m. | OK | Python 3 | TESTS | 13 | 217 | 28672000 | ||
233248809 | Shadow___Monarch___JR | D | Nov. 18, 2023, 5:43 a.m. | OK | Python 3 | TESTS | 13 | 218 | 28057600 | ||
233220248 | JuanFPTam | D | Nov. 17, 2023, 8:21 p.m. | OK | Python 3 | TESTS | 13 | 233 | 28672000 | ||
233192685 | twinkle_tri | D | Nov. 17, 2023, 4:45 p.m. | OK | Ruby 3 | TESTS | 13 | 639 | 32563200 | ||
233227411 | vstiff | D | Nov. 17, 2023, 10:39 p.m. | OK | Rust 2021 | TESTS | 13 | 108 | 6656000 | ||
233198235 | _a253 | D | Nov. 17, 2023, 5:01 p.m. | OK | Rust 2021 | TESTS | 13 | 124 | 17100800 |
Back to search problems