Good Bye 2020

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
1466 Good Bye 2020 FINISHED False 10800 127841063 Dec. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7440 ) E Apollo versus Pan PROGRAMMING bitmasks math

B"Only a few know that Pan and Apollo weren't only battling for the title of the GOAT musician. A few millenniums later, they also challenged each other in math (or rather in fast calculations). The task they got to solve is the following: Let x_1, x_2, ldots, x_n be the sequence of n non-negative integers. Find this value: sum_{i=1}^n sum_{j=1}^n sum_{k=1}^n (x_i , & , x_j) cdot (x_j , | , x_k) Here & denotes the bitwise and, and | denotes the bitwise or. Pan and Apollo could solve this in a few seconds. Can you do it too? For convenience, find the answer modulo 10^9 + 7 . The first line of the input contains a single integer t ( 1 <= q t <= q 1 ,000 ) denoting the number of test cases, then t test cases follow. The first line of each test case consists of a single integer n ( 1 <= q n <= q 5 cdot 10^5 ), the length of the sequence. The second one contains n non-negative integers x_1, x_2, ldots, x_n ( 0 <= q x_i < 2^{60} ), elements of the sequence. The sum of n over all test cases will not exceed 5 cdot 10^5 . Print t lines. The i -th line should contain the answer to the i -th text case. "...

Tutorials

Good Bye 2020 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
102851097 cheese-cracker E Dec. 30, 2020, 5:09 p.m. OK D TESTS 36 858 43929600
102850708 mircea_007 E Dec. 30, 2020, 5:07 p.m. OK GNU C11 TESTS 36 889 3993600
102882757 hocky E Dec. 31, 2020, 5:16 a.m. OK GNU C++11 TESTS 36 530 0
102884292 fishcathu. E Dec. 31, 2020, 5:43 a.m. OK GNU C++11 TESTS 36 545 3993600
102883167 fishcathu. E Dec. 31, 2020, 5:23 a.m. OK GNU C++11 TESTS 36 546 3993600
102882454 hocky E Dec. 31, 2020, 5:10 a.m. OK GNU C++11 TESTS 36 576 0
102882988 hocky E Dec. 31, 2020, 5:20 a.m. OK GNU C++11 TESTS 36 576 0
102882714 hocky E Dec. 31, 2020, 5:15 a.m. OK GNU C++11 TESTS 36 592 0
102877282 xryjr233 E Dec. 31, 2020, 3:07 a.m. OK GNU C++11 TESTS 36 639 3993600
102875155 Eric_hooo E Dec. 31, 2020, 1:44 a.m. OK GNU C++11 TESTS 36 686 3993600
102849998 Michael_Li_Bryant E Dec. 30, 2020, 5:05 p.m. OK GNU C++11 TESTS 36 764 3993600
102884209 TLP.39 E Dec. 31, 2020, 5:41 a.m. OK GNU C++11 TESTS 36 826 3993600
102885065 zhongzh13 E Dec. 31, 2020, 5:56 a.m. OK GNU C++14 TESTS 36 655 3993600
102878338 BiscuiTi E Dec. 31, 2020, 3:35 a.m. OK GNU C++14 TESTS 36 670 3993600
102866831 kartiktomar E Dec. 30, 2020, 8:40 p.m. OK GNU C++14 TESTS 36 685 3993600
102876839 thehard E Dec. 31, 2020, 2:52 a.m. OK GNU C++14 TESTS 36 686 3993600
102877562 Potassium E Dec. 31, 2020, 3:15 a.m. OK GNU C++14 TESTS 36 686 3993600
102876469 gegewepe E Dec. 31, 2020, 2:40 a.m. OK GNU C++14 TESTS 36 748 3993600
102876436 gegewepe E Dec. 31, 2020, 2:39 a.m. OK GNU C++14 TESTS 36 764 3993600
102866480 hateiit E Dec. 30, 2020, 8:33 p.m. OK GNU C++14 TESTS 36 779 3993600
102849020 girinandan_07 E Dec. 30, 2020, 5:01 p.m. OK GNU C++14 TESTS 36 795 4915200
102881957 Apurv_Gupta E Dec. 31, 2020, 5 a.m. OK GNU C++14 TESTS 36 811 3993600
102857344 jimola E Dec. 30, 2020, 5:30 p.m. OK GNU C++17 TESTS 36 436 3993600
102848361 iliaM E Dec. 30, 2020, 4:59 p.m. OK GNU C++17 TESTS 36 545 7987200
102865336 viniciustht E Dec. 30, 2020, 8:15 p.m. OK GNU C++17 TESTS 36 561 3993600
102866089 ShuvoMalakar E Dec. 30, 2020, 8:26 p.m. OK GNU C++17 TESTS 36 592 3993600
102883190 vincentpikachu20 E Dec. 31, 2020, 5:23 a.m. OK GNU C++17 TESTS 36 592 3993600
102866562 ShuvoMalakar E Dec. 30, 2020, 8:35 p.m. OK GNU C++17 TESTS 36 607 3993600
102881764 KhanhHoa_NNTan E Dec. 31, 2020, 4:56 a.m. OK GNU C++17 TESTS 36 639 36044800
102853238 _Meet_Patel_ E Dec. 30, 2020, 5:16 p.m. OK GNU C++17 TESTS 36 654 7987200
102853048 cowbrain E Dec. 30, 2020, 5:16 p.m. OK GNU C++17 TESTS 36 655 3993600
102884512 poiminhcanh08092001 E Dec. 31, 2020, 5:47 a.m. OK GNU C++17 TESTS 36 670 3993600
102872143 olympia E Dec. 30, 2020, 11:21 p.m. OK GNU C++17 (64) TESTS 36 264 3993600
102876030 Soumya1 E Dec. 31, 2020, 2:23 a.m. OK GNU C++17 (64) TESTS 36 327 3993600
102875658 rgnerdplayer E Dec. 31, 2020, 2:06 a.m. OK GNU C++17 (64) TESTS 36 327 3993600
102866473 kaiboy E Dec. 30, 2020, 8:33 p.m. OK GNU C++17 (64) TESTS 36 343 3993600
102851692 Alphagocc E Dec. 30, 2020, 5:11 p.m. OK GNU C++17 (64) TESTS 36 343 8601600
102870414 smurfer E Dec. 30, 2020, 10:15 p.m. OK GNU C++17 (64) TESTS 36 358 3993600
102862413 scol E Dec. 30, 2020, 7:37 p.m. OK GNU C++17 (64) TESTS 36 358 3993600
102870837 .__. E Dec. 30, 2020, 10:31 p.m. OK GNU C++17 (64) TESTS 36 358 5632000
102872315 dgcnz E Dec. 30, 2020, 11:29 p.m. OK GNU C++17 (64) TESTS 36 373 7987200
102873101 WrongAnswerOnTest1 E Dec. 31, 2020, 12:05 a.m. OK GNU C++17 (64) TESTS 36 374 3993600
102862024 afrozenman E Dec. 30, 2020, 7:35 p.m. OK Go TESTS 36 1372 89600000
102879919 nietzschewalrus779 E Dec. 31, 2020, 4:15 a.m. OK Java 11 TESTS 36 1294 35942400
102864138 Okhair E Dec. 30, 2020, 7:59 p.m. OK Java 11 TESTS 36 1387 35942400
102878278 blackBird E Dec. 31, 2020, 3:34 a.m. OK Java 11 TESTS 36 1418 35942400
102874202 cprayer E Dec. 31, 2020, 12:58 a.m. OK Java 11 TESTS 36 1575 35942400
102868440 ay_08 E Dec. 30, 2020, 9:17 p.m. OK Java 11 TESTS 36 1622 35942400
102862400 kostasanemozalis E Dec. 30, 2020, 7:37 p.m. OK Java 11 TESTS 36 1622 35942400
102880061 tusharjape007 E Dec. 31, 2020, 4:18 a.m. OK Java 11 TESTS 36 1684 0
102853436 nirvana_rsc E Dec. 30, 2020, 5:17 p.m. OK Java 11 TESTS 36 1793 35942400
102874956 cprayer E Dec. 31, 2020, 1:35 a.m. OK Java 11 TESTS 36 1809 35942400
102874245 cprayer E Dec. 31, 2020, 1 a.m. OK Java 11 TESTS 36 1809 35942400
102863747 mwen E Dec. 30, 2020, 7:54 p.m. OK Java 8 TESTS 36 826 69529600
102863375 mwen E Dec. 30, 2020, 7:50 p.m. OK Java 8 TESTS 36 1122 69529600
102866210 HideBeyondYou E Dec. 30, 2020, 8:29 p.m. OK Java 8 TESTS 36 1248 77824000
102866160 HideBeyondYou E Dec. 30, 2020, 8:28 p.m. OK Java 8 TESTS 36 1248 77824000
102864699 Blowy E Dec. 30, 2020, 8:06 p.m. OK Java 8 TESTS 36 1263 77721600
102850742 sam_20101999 E Dec. 30, 2020, 5:07 p.m. OK Java 8 TESTS 36 1465 77619200
102863813 robinz62 E Dec. 30, 2020, 7:55 p.m. OK Java 8 TESTS 36 1496 0
102878506 sudhanshu_lucky E Dec. 31, 2020, 3:40 a.m. OK Java 8 TESTS 36 1497 77721600
102858700 Vaibhav_Domadia E Dec. 30, 2020, 5:34 p.m. OK Java 8 TESTS 36 1528 0
102879103 Nicolas125841 E Dec. 31, 2020, 3:55 a.m. OK Java 8 TESTS 36 1528 77619200
102883093 Spheniscine E Dec. 31, 2020, 5:22 a.m. OK Kotlin TESTS 36 763 1331200
102867769 catforce E Dec. 30, 2020, 9:01 p.m. OK Kotlin TESTS 36 1138 85299200
102876716 Spheniscine E Dec. 31, 2020, 2:48 a.m. OK Kotlin TESTS 36 1169 1331200
102876644 Spheniscine E Dec. 31, 2020, 2:46 a.m. OK Kotlin TESTS 36 1356 1331200
102866961 catforce E Dec. 30, 2020, 8:42 p.m. OK Kotlin TESTS 36 1637 85299200
102869588 cmplx-xyttmt E Dec. 30, 2020, 9:49 p.m. OK Kotlin TESTS 36 1762 78745600
102869559 cmplx-xyttmt E Dec. 30, 2020, 9:47 p.m. OK Kotlin TESTS 36 1809 78745600
102871443 CepGamer E Dec. 30, 2020, 10:53 p.m. OK Kotlin TESTS 36 1871 0
102876574 Spheniscine E Dec. 31, 2020, 2:43 a.m. OK Kotlin TESTS 36 1918 1331200
102870363 CepGamer E Dec. 30, 2020, 10:14 p.m. OK Kotlin TESTS 36 1933 0
102864475 Megalitum E Dec. 30, 2020, 8:03 p.m. OK MS C++ 2017 TESTS 36 1248 13824000
102851143 Present E Dec. 30, 2020, 5:09 p.m. OK MS C++ 2017 TESTS 36 1544 3993600
102865675 EvgeniusASPX E Dec. 30, 2020, 8:20 p.m. OK MS C++ 2017 TESTS 36 1747 4812800
102864892 JackieLee E Dec. 30, 2020, 8:09 p.m. OK MS C++ 2017 TESTS 36 1824 9830400
102857453 haminh0307 E Dec. 30, 2020, 5:30 p.m. OK MS C++ 2017 TESTS 36 1934 3993600
102882902 pajenegod E Dec. 31, 2020, 5:18 a.m. OK PyPy 2 TESTS 36 717 57651200
102882788 pajenegod E Dec. 31, 2020, 5:16 a.m. OK PyPy 2 TESTS 36 717 57651200
102882716 pajenegod E Dec. 31, 2020, 5:15 a.m. OK PyPy 2 TESTS 36 733 57651200
102883011 pajenegod E Dec. 31, 2020, 5:20 a.m. OK PyPy 2 TESTS 36 795 57651200
102882982 pajenegod E Dec. 31, 2020, 5:20 a.m. OK PyPy 2 TESTS 36 811 57651200
102882643 pajenegod E Dec. 31, 2020, 5:14 a.m. OK PyPy 2 TESTS 36 873 57651200
102882359 pajenegod E Dec. 31, 2020, 5:08 a.m. OK PyPy 2 TESTS 36 904 57651200
102869838 at_f E Dec. 30, 2020, 9:56 p.m. OK PyPy 2 TESTS 36 904 67174400
102868929 at_f E Dec. 30, 2020, 9:29 p.m. OK PyPy 2 TESTS 36 935 67276800
102882553 pajenegod E Dec. 31, 2020, 5:12 a.m. OK PyPy 2 TESTS 36 950 57651200
102864808 at_f E Dec. 30, 2020, 8:07 p.m. OK PyPy 3 TESTS 36 1138 69017600
102879413 sh1194 E Dec. 31, 2020, 4:03 a.m. OK PyPy 3 TESTS 36 1622 69017600
102879293 sh1194 E Dec. 31, 2020, 4 a.m. OK PyPy 3 TESTS 36 1637 69017600
102862814 at_f E Dec. 30, 2020, 7:43 p.m. OK PyPy 3 TESTS 36 1762 69017600
102872477 rocurley E Dec. 30, 2020, 11:36 p.m. OK Rust TESTS 36 498 19763200
102869057 sansen E Dec. 30, 2020, 9:33 p.m. OK Rust TESTS 36 607 25190400
102871285 rocurley E Dec. 30, 2020, 10:47 p.m. OK Rust TESTS 36 1076 19660800
102875437 ia7ck E Dec. 31, 2020, 1:56 a.m. OK Rust TESTS 36 1122 27443200
102883965 togatoga E Dec. 31, 2020, 5:37 a.m. OK Rust TESTS 36 1497 39321600
102882404 togatoga E Dec. 31, 2020, 5:09 a.m. OK Rust TESTS 36 1512 39321600
102883155 togatoga E Dec. 31, 2020, 5:23 a.m. OK Rust TESTS 36 1575 39321600
102883303 togatoga E Dec. 31, 2020, 5:25 a.m. OK Rust TESTS 36 1824 4198400
102882171 togatoga E Dec. 31, 2020, 5:05 a.m. OK Rust TESTS 36 1824 4198400
102882110 togatoga E Dec. 31, 2020, 5:04 a.m. OK Rust TESTS 36 1855 4198400

remove filters

Back to search problems