Codeforces Round 750 (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
1582 Codeforces Round 750 (Div. 2) FINISHED False 9000 96753299 Oct. 24, 2021, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20879 ) B Luntik and Subsequences PROGRAMMING combinatorics math

B'Luntik came out for a morning stroll and found an array a of length n . He calculated the sum s of the elements of the array ( s= sum_{i=1}^{n} a_i ). Luntik calls a subsequence of the array a nearly full if the sum of the numbers in that subsequence is equal to s-1 . Luntik really wants to know the number of nearly full subsequences of the array a . But he needs to come home so he asks you to solve that problem! A sequence x is a subsequence of a sequence y if x can be obtained from y by deletion of several (possibly, zero or all) elements. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The next 2 cdot t lines contain descriptions of test cases. The description of each test case consists of two lines. The first line of each test case contains a single integer n ( 1 <= n <= 60 ) -- the length of the array. The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 10^9 ) -- the elements of the array a . For each test case print the number of nearly full subsequences of the array. In the first test case, s=1+2+3+4+5=15 , only (2,3,4,5) is a nearly full subsequence among all subsequences, the sum in it is equal to 2+3+4+5=14=15-1 . In the second test case, there are no nearly full subsequences. In the third test case, s=1+0=1 , the nearly full subsequences are (0) and () (the sum of an empty subsequence is 0 ). '...

Tutorials

Codeforces Round #750 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
132936751 __TheKing B Oct. 24, 2021, 2:29 p.m. OK GNU C11 TESTS 7 15 3686400
132937616 Mrgglock B Oct. 24, 2021, 2:38 p.m. OK GNU C11 TESTS 7 15 3686400
132936065 NSSwallow B Oct. 24, 2021, 2:21 p.m. OK GNU C11 TESTS 7 15 3686400
132976584 Bargav B Oct. 25, 2021, 4:20 a.m. OK GNU C11 TESTS 7 30 3686400
132978699 Aditi_ag B Oct. 25, 2021, 5:01 a.m. OK GNU C11 TESTS 7 30 3686400
132971184 Youarenotgood B Oct. 25, 2021, 2:07 a.m. OK GNU C11 TESTS 7 31 3686400
132978495 Ankit_Sahu_21 B Oct. 25, 2021, 4:57 a.m. OK GNU C11 TESTS 7 31 4096000
132978670 yateng817 B Oct. 25, 2021, 5 a.m. OK GNU C++14 TESTS 7 15 1024000
132978662 austinCF_04 B Oct. 25, 2021, 5 a.m. OK GNU C++14 TESTS 7 15 1024000
132978335 shahil_y1860 B Oct. 25, 2021, 4:55 a.m. OK GNU C++14 TESTS 7 15 1024000
132978022 GudduPandit B Oct. 25, 2021, 4:49 a.m. OK GNU C++14 TESTS 7 15 1024000
132975667 GJC_xj B Oct. 25, 2021, 4 a.m. OK GNU C++14 TESTS 7 15 1024000
132981663 djh B Oct. 25, 2021, 5:52 a.m. OK GNU C++14 TESTS 7 15 1024000
132981415 Himeno.Sena B Oct. 25, 2021, 5:48 a.m. OK GNU C++14 TESTS 7 15 1024000
132979569 manankuraware B Oct. 25, 2021, 5:16 a.m. OK GNU C++14 TESTS 7 15 1024000
132979036 Mayur152 B Oct. 25, 2021, 5:07 a.m. OK GNU C++14 TESTS 7 15 1024000
132978754 ylq_s_hanpi B Oct. 25, 2021, 5:02 a.m. OK GNU C++14 TESTS 7 15 1024000
132959530 Celeng B Oct. 24, 2021, 7:40 p.m. OK GNU C++17 TESTS 7 0 1024000
132962369 tushar113 B Oct. 24, 2021, 8:36 p.m. OK GNU C++17 TESTS 7 0 1228800
132927055 jig-saw B Oct. 24, 2021, 1:08 p.m. OK GNU C++17 TESTS 7 0 1228800
132981262 thefstalphabet B Oct. 25, 2021, 5:45 a.m. OK GNU C++17 TESTS 7 15 1024000
132982125 kaushik_1904 B Oct. 25, 2021, 6 a.m. OK GNU C++17 TESTS 7 15 1024000
132982065 xypher_ex B Oct. 25, 2021, 5:59 a.m. OK GNU C++17 TESTS 7 15 1024000
132981988 Shrek_44 B Oct. 25, 2021, 5:57 a.m. OK GNU C++17 TESTS 7 15 1024000
132982041 thepeacefulwarrior B Oct. 25, 2021, 5:58 a.m. OK GNU C++17 TESTS 7 15 1024000
132981778 mahbubhasanmht B Oct. 25, 2021, 5:54 a.m. OK GNU C++17 TESTS 7 15 1024000
132981597 kushagragarg13 B Oct. 25, 2021, 5:51 a.m. OK GNU C++17 TESTS 7 15 1024000
132981491 golden.duck B Oct. 25, 2021, 5:49 a.m. OK GNU C++17 (64) TESTS 7 0 1228800
132981217 against_the_current B Oct. 25, 2021, 5:44 a.m. OK GNU C++17 (64) TESTS 7 0 1228800
132981186 aryan57 B Oct. 25, 2021, 5:43 a.m. OK GNU C++17 (64) TESTS 7 0 1228800
132975188 sidaaaaa B Oct. 25, 2021, 3:50 a.m. OK GNU C++17 (64) TESTS 7 0 1228800
132972546 LeeJiaHua B Oct. 25, 2021, 2:47 a.m. OK GNU C++17 (64) TESTS 7 0 1228800
132955900 SakiBee B Oct. 24, 2021, 6:41 p.m. OK GNU C++17 (64) TESTS 7 0 1228800
132947645 Mihnea_Info B Oct. 24, 2021, 4:37 p.m. OK GNU C++17 (64) TESTS 7 0 1228800
132946549 kingline B Oct. 24, 2021, 4:23 p.m. OK GNU C++17 (64) TESTS 7 0 1228800
132944638 Blondie B Oct. 24, 2021, 3:57 p.m. OK GNU C++17 (64) TESTS 7 0 1228800
132938126 Rawat26 B Oct. 24, 2021, 2:43 p.m. OK GNU C++17 (64) TESTS 7 0 1228800
132962805 nizamoff B Oct. 24, 2021, 8:45 p.m. OK GNU C++20 (64) TESTS 7 0 1228800
132981620 DeMoNB95 B Oct. 25, 2021, 5:51 a.m. OK GNU C++20 (64) TESTS 7 0 1228800
132966163 Koying B Oct. 24, 2021, 10:24 p.m. OK GNU C++20 (64) TESTS 7 0 1228800
132965660 Arkady_E B Oct. 24, 2021, 10:06 p.m. OK GNU C++20 (64) TESTS 7 0 1228800
132933317 SSAASSUUKKEE B Oct. 24, 2021, 1:55 p.m. OK GNU C++20 (64) TESTS 7 0 1228800
132938628 reshke B Oct. 24, 2021, 2:48 p.m. OK GNU C++20 (64) TESTS 7 0 1228800
132977734 Manish_jha B Oct. 25, 2021, 4:44 a.m. OK GNU C++20 (64) TESTS 7 0 1331200
132963922 galen_colin B Oct. 24, 2021, 9:13 p.m. OK GNU C++20 (64) TESTS 7 0 25804800
132980658 high_flyy B Oct. 25, 2021, 5:35 a.m. OK GNU C++20 (64) TESTS 7 15 1228800
132975862 alif_cse_ju B Oct. 25, 2021, 4:04 a.m. OK GNU C++20 (64) TESTS 7 15 1228800
132943116 D05T0N B Oct. 24, 2021, 3:39 p.m. OK Go TESTS 7 30 61440000
132942678 huangxuepeng B Oct. 24, 2021, 3:33 p.m. OK Go TESTS 7 530 8192000
132955032 Vijender8831 B Oct. 24, 2021, 6:27 p.m. OK Java 11 TESTS 7 171 24678400
132932590 Nullius B Oct. 24, 2021, 1:49 p.m. OK Java 11 TESTS 7 171 24678400
132966122 ethan55 B Oct. 24, 2021, 10:23 p.m. OK Java 11 TESTS 7 186 24576000
132952428 aayushdhakad B Oct. 24, 2021, 5:49 p.m. OK Java 11 TESTS 7 186 24576000
132980000 Saxam B Oct. 25, 2021, 5:23 a.m. OK Java 11 TESTS 7 186 24678400
132936025 ak6494285 B Oct. 24, 2021, 2:21 p.m. OK Java 11 TESTS 7 186 44748800
132962177 Satyaa B Oct. 24, 2021, 8:31 p.m. OK Java 11 TESTS 7 187 24576000
132974437 RegalBeast B Oct. 25, 2021, 3:32 a.m. OK Java 11 TESTS 7 187 24678400
132952836 NoName00 B Oct. 24, 2021, 5:55 p.m. OK Java 11 TESTS 7 202 24576000
132935361 chevish B Oct. 24, 2021, 2:14 p.m. OK Java 11 TESTS 7 202 24576000
132948807 NighTurs B Oct. 24, 2021, 4:54 p.m. OK Java 8 TESTS 7 92 18841600
132931197 VASU_BHANDERI B Oct. 24, 2021, 1:38 p.m. OK Java 8 TESTS 7 93 18944000
132934606 riusmalt B Oct. 24, 2021, 2:07 p.m. OK Java 8 TESTS 7 108 18841600
132958096 less_ordinary B Oct. 24, 2021, 7:14 p.m. OK Java 8 TESTS 7 108 18841600
132938438 gssakash B Oct. 24, 2021, 2:46 p.m. OK Java 8 TESTS 7 108 18944000
132966765 Shetaya B Oct. 24, 2021, 10:51 p.m. OK Java 8 TESTS 7 109 18841600
132942023 lcheeme1 B Oct. 24, 2021, 3:25 p.m. OK Java 8 TESTS 7 109 18944000
132976640 Swapniltri B Oct. 25, 2021, 4:21 a.m. OK Java 8 TESTS 7 109 18944000
132939345 AnshX B Oct. 24, 2021, 2:56 p.m. OK Java 8 TESTS 7 109 18944000
132976780 Swapniltri B Oct. 25, 2021, 4:24 a.m. OK Java 8 TESTS 7 124 18841600
132960414 mishgan B Oct. 24, 2021, 7:57 p.m. OK Kotlin 1.4 TESTS 7 171 20275200
132937749 ERIWUG B Oct. 24, 2021, 2:39 p.m. OK Kotlin 1.5 TESTS 7 218 25600000
132954750 huy.caohuyhuy123 B Oct. 24, 2021, 6:23 p.m. OK Kotlin 1.5 TESTS 7 248 25600000
132928672 Tangerine B Oct. 24, 2021, 1:18 p.m. OK MS C++ 2017 TESTS 7 31 1126400
132980351 swz B Oct. 25, 2021, 5:30 a.m. OK MS C++ 2017 TESTS 7 31 1126400
132978032 Arvind_1202 B Oct. 25, 2021, 4:49 a.m. OK MS C++ 2017 TESTS 7 31 1126400
132970053 xiayufengchen B Oct. 25, 2021, 1:27 a.m. OK MS C++ 2017 TESTS 7 31 1126400
132961264 Touristinya B Oct. 24, 2021, 8:13 p.m. OK MS C++ 2017 TESTS 7 31 1126400
132946471 huyn1602 B Oct. 24, 2021, 4:22 p.m. OK MS C++ 2017 TESTS 7 31 1126400
132939121 _lcj B Oct. 24, 2021, 2:53 p.m. OK MS C++ 2017 TESTS 7 31 1126400
132933079 carmi B Oct. 24, 2021, 1:53 p.m. OK MS C++ 2017 TESTS 7 31 1331200
132970579 sgly33 B Oct. 25, 2021, 1:46 a.m. OK MS C++ 2017 TESTS 7 46 1126400
132942124 Avram_Robert B Oct. 24, 2021, 3:26 p.m. OK MS C++ 2017 TESTS 7 46 1126400
132940794 tabibi B Oct. 24, 2021, 3:11 p.m. OK .NET Core C# TESTS 7 93 10854400
132930591 lemiao12 B Oct. 24, 2021, 1:34 p.m. OK PyPy 3 TESTS 7 124 21606400
132942230 tuan20052006 B Oct. 24, 2021, 3:28 p.m. OK PyPy 3 TESTS 7 140 20172800
132941923 puffc0rn B Oct. 24, 2021, 3:24 p.m. OK PyPy 3 TESTS 7 140 85913600
132980109 coolstreaming B Oct. 25, 2021, 5:25 a.m. OK PyPy 3 TESTS 7 155 22732800
132980545 _cyber_punk_007 B Oct. 25, 2021, 5:33 a.m. OK PyPy 3 TESTS 7 171 22323200
132977757 sumit_thakur B Oct. 25, 2021, 4:44 a.m. OK PyPy 3 TESTS 7 171 23244800
132928624 Jay_123 B Oct. 24, 2021, 1:17 p.m. OK PyPy 3 TESTS 7 171 23449600
132974969 Siddharth_Mehta1311 B Oct. 25, 2021, 3:44 a.m. OK PyPy 3 TESTS 7 171 152473600
132978629 rutz12 B Oct. 25, 2021, 5 a.m. OK PyPy 3 TESTS 7 186 22528000
132963951 Ptb B Oct. 24, 2021, 9:13 p.m. OK PyPy 3 TESTS 7 186 23244800
132958414 HETRAKESHFADIA B Oct. 24, 2021, 7:20 p.m. OK PyPy 3-64 TESTS 7 93 31846400
132945453 mayank35 B Oct. 24, 2021, 4:08 p.m. OK PyPy 3-64 TESTS 7 93 32870400
132939818 Melmetal B Oct. 24, 2021, 3 p.m. OK PyPy 3-64 TESTS 7 108 32665600
132975423 pedastrian57 B Oct. 25, 2021, 3:55 a.m. OK PyPy 3-64 TESTS 7 108 162713600
132942463 Land_oF_cOdErS B Oct. 24, 2021, 3:30 p.m. OK PyPy 3-64 TESTS 7 109 241971200
132980985 visheshsinha B Oct. 25, 2021, 5:40 a.m. OK PyPy 3-64 TESTS 7 155 37888000
132963938 Ptb B Oct. 24, 2021, 9:13 p.m. OK PyPy 3-64 TESTS 7 155 38400000
132970447 ayush2800 B Oct. 25, 2021, 1:42 a.m. OK PyPy 3-64 TESTS 7 156 38092800
132957581 TheNoOneCoder B Oct. 24, 2021, 7:06 p.m. OK PyPy 3-64 TESTS 7 170 36761600
132938110 inksamurai B Oct. 24, 2021, 2:43 p.m. OK PyPy 3-64 TESTS 7 171 36864000
132978948 sandeepaloney123 B Oct. 25, 2021, 5:05 a.m. OK Python 3 TESTS 7 46 4300800
132943554 gokufan1769 B Oct. 24, 2021, 3:44 p.m. OK Python 3 TESTS 7 46 4300800
132963762 eugalt B Oct. 24, 2021, 9:09 p.m. OK Python 3 TESTS 7 46 4505600
132939178 2019287 B Oct. 24, 2021, 2:54 p.m. OK Python 3 TESTS 7 46 4505600
132928488 sergeantsnape B Oct. 24, 2021, 1:17 p.m. OK Python 3 TESTS 7 46 4505600
132928422 sadgvf B Oct. 24, 2021, 1:16 p.m. OK Python 3 TESTS 7 46 4505600
132927036 eugalt B Oct. 24, 2021, 1:08 p.m. OK Python 3 TESTS 7 46 4505600
132948496 akt17 B Oct. 24, 2021, 4:49 p.m. OK Python 3 TESTS 7 46 4608000
132976269 ritesh_43 B Oct. 25, 2021, 4:14 a.m. OK Python 3 TESTS 7 61 4300800
132964783 neel0086 B Oct. 24, 2021, 9:39 p.m. OK Python 3 TESTS 7 61 4300800
132964464 Hyrulia B Oct. 24, 2021, 9:28 p.m. OK Rust TESTS 7 31 1228800
132928661 SorKierkegaard B Oct. 24, 2021, 1:18 p.m. OK Rust TESTS 7 31 1945600

remove filters

Back to search problems