Contest 2050 and Codeforces Round 718 (Div. 1 + 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
1517 Contest 2050 and Codeforces Round 718 (Div. 1 + Div. 2) FINISHED False 9900 117991463 April 23, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 992 ) E Group Photo PROGRAMMING binary search combinatorics implementation two pointers

B"In the 2050 Conference, some people from the competitive programming community meet together and are going to take a photo. The n people form a line. They are numbered from 1 to n from left to right. Each of them either holds a cardboard with the letter 'C' or a cardboard with the letter 'P'. Let C= {c_1,c_2, ... ,c_m } (c_1<c_2< ldots <c_m) be the set of people who hold cardboards of 'C'. Let P= {p_1,p_2, ... ,p_k } (p_1<p_2< ldots <p_k) be the set of people who hold cardboards of 'P'. The photo is good if and only if it satisfies the following constraints: Given an array a_1, ldots, a_n , please find the number of good photos satisfying the following condition: sum limits_{x in C} a_x < sum limits_{y in P} a_y. The answer can be large, so output it modulo 998 ,244 ,353 . Two photos are different if and only if there exists at least one person who holds a cardboard of 'C' in one photo but holds a cardboard of 'P' in the other. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 200 ,000 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= q n <= q 200 ,000 ). The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ). It is guaranteed that the sum of n over all test cases does not exceed 200 ,000 . For each test case, output the answer modulo 998 ,244 ,353 in a separate line. For the first test case, there are 10 possible good photos satisfying the condition: PPPPP, CPPPP, PCPPP, CCPPP, PCCPP, PCPCP, PPPPC, CPPPC, PCPPC, PPPCC. For the second test case, there are 7 possible good photos satisfying the condition: PPPP, PCPP, PCCP, PPPC, PCPC, PPCC, PCCC. "...

Tutorials

Contest 2050 and Codeforces Round #718 (Div.1 + Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
114067093 fishcathu. E April 24, 2021, 2:28 a.m. OK GNU C++11 TESTS 25 46 819200
114038796 CQBZXYX E April 23, 2021, 5:04 p.m. OK GNU C++11 TESTS 25 46 3276800
114035945 czynt E April 23, 2021, 4:51 p.m. OK GNU C++11 TESTS 25 46 4096000
114065771 xyf007 E April 24, 2021, 1:48 a.m. OK GNU C++11 TESTS 25 61 5939200
114046415 fishcathu. E April 23, 2021, 6:08 p.m. OK GNU C++11 TESTS 25 62 2457600
114047109 WDCnew E April 23, 2021, 6:16 p.m. OK GNU C++11 TESTS 25 62 3788800
114044743 clfzs E April 23, 2021, 5:53 p.m. OK GNU C++11 TESTS 25 62 3993600
114040305 Kubic E April 23, 2021, 5:11 p.m. OK GNU C++11 TESTS 25 62 5632000
114047625 yao11617 E April 23, 2021, 6:25 p.m. OK GNU C++11 TESTS 25 77 1945600
114044398 serener E April 23, 2021, 5:49 p.m. OK GNU C++11 TESTS 25 78 2662400
114037110 kimjihoon E April 23, 2021, 4:56 p.m. OK GNU C++14 TESTS 25 93 6451200
114030751 irreversible E April 23, 2021, 4:29 p.m. OK GNU C++14 TESTS 25 93 7987200
114050832 ajj E April 23, 2021, 7:14 p.m. OK GNU C++14 TESTS 25 108 14438400
114049212 bktl1love E April 23, 2021, 6:48 p.m. OK GNU C++14 TESTS 25 109 3174400
114029986 Potassium E April 23, 2021, 4:26 p.m. OK GNU C++14 TESTS 25 109 4812800
114050626 ajj E April 23, 2021, 7:11 p.m. OK GNU C++14 TESTS 25 109 14438400
114077102 ajj E April 24, 2021, 5:47 a.m. OK GNU C++14 TESTS 25 109 14438400
114037375 Hollowed E April 23, 2021, 4:58 p.m. OK GNU C++14 TESTS 25 124 3174400
114041334 IsaacMoris E April 23, 2021, 5:15 p.m. OK GNU C++14 TESTS 25 124 3993600
114033683 Goshkata E April 23, 2021, 4:41 p.m. OK GNU C++14 TESTS 25 124 3993600
114041324 d0vegx E April 23, 2021, 5:15 p.m. OK GNU C++17 TESTS 25 77 3993600
114072182 allfadeaway E April 24, 2021, 4:26 a.m. OK GNU C++17 TESTS 25 78 7372800
114029175 BigBag E April 23, 2021, 4:23 p.m. OK GNU C++17 TESTS 25 93 819200
114065436 hefan E April 24, 2021, 1:37 a.m. OK GNU C++17 TESTS 25 93 2457600
114057653 _no0B E April 23, 2021, 9:11 p.m. OK GNU C++17 TESTS 25 93 4812800
114041959 ialakhtin E April 23, 2021, 5:17 p.m. OK GNU C++17 TESTS 25 93 6451200
114036644 Taffyz E April 23, 2021, 4:54 p.m. OK GNU C++17 TESTS 25 108 1638400
114031637 rdd6584 E April 23, 2021, 4:32 p.m. OK GNU C++17 TESTS 25 108 3379200
114041904 Baraa_Armoush E April 23, 2021, 5:17 p.m. OK GNU C++17 TESTS 25 109 3174400
114066864 TISparta E April 24, 2021, 2:21 a.m. OK GNU C++17 TESTS 25 109 3174400
114049869 Nanored E April 23, 2021, 6:58 p.m. OK GNU C++17 (64) TESTS 25 62 2150400
114045626 ajit E April 23, 2021, 6:01 p.m. OK GNU C++17 (64) TESTS 25 77 4812800
114034856 thenymphsofdelphi E April 23, 2021, 4:46 p.m. OK GNU C++17 (64) TESTS 25 77 6451200
114039574 Ormlis E April 23, 2021, 5:07 p.m. OK GNU C++17 (64) TESTS 25 77 7270400
114036730 orzdevinwang E April 23, 2021, 4:55 p.m. OK GNU C++17 (64) TESTS 25 77 24064000
114044178 HolyK E April 23, 2021, 5:47 p.m. OK GNU C++17 (64) TESTS 25 78 2457600
114037327 Takagi E April 23, 2021, 4:57 p.m. OK GNU C++17 (64) TESTS 25 78 3174400
114032888 haruki_K E April 23, 2021, 4:38 p.m. OK GNU C++17 (64) TESTS 25 78 3276800
114039370 hld67890 E April 23, 2021, 5:06 p.m. OK GNU C++17 (64) TESTS 25 78 5222400
114031419 Elegia E April 23, 2021, 4:32 p.m. OK GNU C++17 (64) TESTS 25 78 5632000
114031486 Dukkha E April 23, 2021, 4:32 p.m. OK Java 11 TESTS 25 217 0
114072656 ypa E April 24, 2021, 4:35 a.m. OK Java 11 TESTS 25 405 6553600
114038218 Apfeloxid E April 23, 2021, 5:01 p.m. OK Java 11 TESTS 25 467 4505600
114062111 martins E April 23, 2021, 11:19 p.m. OK Java 8 TESTS 25 202 3174400
114048311 Agnimandur E April 23, 2021, 6:35 p.m. OK Java 8 TESTS 25 343 5529600
114035966 dalt E April 23, 2021, 4:51 p.m. OK Java 8 TESTS 25 405 0
114041285 iakovlev.zakhar E April 23, 2021, 5:15 p.m. OK Java 8 TESTS 25 997 79257600
114043909 iakovlev.zakhar E April 23, 2021, 5:46 p.m. OK Java 8 TESTS 25 998 79155200
114044354 r57shell E April 23, 2021, 5:49 p.m. OK MS C++ TESTS 25 109 3993600
114056560 Arnyev E April 23, 2021, 8:49 p.m. OK .NET Core C# TESTS 25 514 36761600
114031094 dolphinigle E April 23, 2021, 4:30 p.m. OK PyPy 2 TESTS 25 935 42803200
114070934 codicon E April 24, 2021, 4:01 a.m. OK PyPy 3 TESTS 25 701 34611200
114070920 codicon E April 24, 2021, 4:01 a.m. OK PyPy 3 TESTS 25 701 34611200
114070584 colicon E April 24, 2021, 3:54 a.m. OK PyPy 3 TESTS 25 701 34611200
114070674 colicon E April 24, 2021, 3:56 a.m. OK PyPy 3 TESTS 25 702 34611200
114070307 colicon E April 24, 2021, 3:48 a.m. OK PyPy 3 TESTS 25 717 34611200
114050931 titia E April 23, 2021, 7:16 p.m. OK PyPy 3 TESTS 25 920 35328000
114034625 FlakeLCR E April 23, 2021, 4:45 p.m. OK PyPy 3 TESTS 25 998 23859200
114051242 titia E April 23, 2021, 7:21 p.m. OK PyPy 3 TESTS 25 998 35328000
114047542 toomer E April 23, 2021, 6:23 p.m. OK Rust TESTS 25 93 6963200

remove filters

Back to search problems