Codeforces Round 510 (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
1042 Codeforces Round 510 (Div. 2) FINISHED False 7200 200267687 Sept. 17, 2018, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6356 ) D Petya and Array PROGRAMMING data structures divide and conquer two pointers 1800

B"Petya has an array a consisting of n integers. He has learned partial sums recently, and now he can calculate the sum of elements on any segment of the array really fast. The segment is a non-empty sequence of elements standing one next to another in the array. Now he wonders what is the number of segments in his array with the sum less than t . Help Petya to calculate this number. More formally, you are required to calculate the number of pairs l, r ( l <= r ) such that a_l + a_{l+1} + ... + a_{r-1} + a_r < t . The first line contains two integers n and t ( 1 <= n <= 200 ,000, |t| <= 2 cdot10^{14} ). The second line contains a sequence of integers a_1, a_2, ... , a_n ( |a_{i}| <= 10^{9} ) -- the description of Petya's array. Note that there might be negative, zero and positive elements. Print the number of segments in Petya's array with the sum of elements less than t . In the first example the following segments have sum less than 4 : "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43649117 cpy D Oct. 1, 2018, 2:56 p.m. OK D TESTS 46 373 11673600 1800
42992912 MinhNguye D Sept. 17, 2018, 11:05 a.m. OK FPC TESTS 46 233 30515200 1800
43235448 luogu_bot2 D Sept. 22, 2018, 7:55 a.m. OK GNU C11 TESTS 46 156 9625600 1800
57281851 vjudge2 D July 18, 2019, 1:03 p.m. OK GNU C++11 TESTS 46 46 3174400 1800
51668632 luogu_bot5 D March 22, 2019, 7:14 a.m. OK GNU C++11 TESTS 46 46 3276800 1800
44684192 msuwakow D Oct. 22, 2018, 8:28 a.m. OK GNU C++11 TESTS 46 62 5017600 1800
43017639 Umi D Sept. 18, 2018, 1:14 a.m. OK GNU C++11 TESTS 46 62 8704000 1800
44433316 luogu_bot2 D Oct. 17, 2018, 8:42 a.m. OK GNU C++11 TESTS 46 62 8806400 1800
44751567 ReaLNero1 D Oct. 23, 2018, 8:13 p.m. OK GNU C++11 TESTS 46 62 8806400 1800
43023615 hotwords D Sept. 18, 2018, 7:10 a.m. OK GNU C++11 TESTS 46 78 3379200 1800
45328274 luogu_bot5 D Nov. 5, 2018, 1:58 p.m. OK GNU C++11 TESTS 46 78 3993600 1800
45105126 SoochowWzh D Oct. 30, 2018, 3:44 p.m. OK GNU C++11 TESTS 46 78 3993600 1800
69164498 luogu_bot1 D Jan. 20, 2020, 2:46 a.m. OK GNU C++11 TESTS 46 78 3993600 1800
64313271 vjudge5 D Nov. 5, 2019, 1:22 p.m. OK GNU C++14 TESTS 46 93 3174400 1800
64313800 vjudge5 D Nov. 5, 2019, 1:31 p.m. OK GNU C++14 TESTS 46 93 3174400 1800
43039733 ..vince D Sept. 18, 2018, 3:06 p.m. OK GNU C++14 TESTS 46 93 5632000 1800
43408888 koadma D Sept. 25, 2018, 12:39 p.m. OK GNU C++14 TESTS 46 93 6758400 1800
44424998 bktl1love D Oct. 17, 2018, 3:28 a.m. OK GNU C++14 TESTS 46 108 5632000 1800
50114553 6aren D Feb. 18, 2019, 4:11 p.m. OK GNU C++14 TESTS 46 109 4812800 1800
60903399 Helman D Sept. 20, 2019, 12:17 a.m. OK GNU C++14 TESTS 46 109 4812800 1800
52534000 TwentyFour D April 9, 2019, 2:43 p.m. OK GNU C++14 TESTS 46 109 4812800 1800
42987796 solveit D Sept. 17, 2018, 9:40 a.m. OK GNU C++14 TESTS 46 109 4812800 1800
43004118 21August D Sept. 17, 2018, 3:05 p.m. OK GNU C++14 TESTS 46 109 5632000 1800
46575017 mathtrauma D Dec. 4, 2018, 8:13 a.m. OK GNU C++17 TESTS 46 108 3174400 1800
43054320 fdironia D Sept. 19, 2018, 2:03 a.m. OK GNU C++17 TESTS 46 108 3993600 1800
43055033 fdironia D Sept. 19, 2018, 2:53 a.m. OK GNU C++17 TESTS 46 109 3174400 1800
43064509 fdironia D Sept. 19, 2018, 3:52 a.m. OK GNU C++17 TESTS 46 109 3174400 1800
44226104 napLord D Oct. 12, 2018, 7:37 p.m. OK GNU C++17 TESTS 46 109 5017600 1800
57459922 vjudge3 D July 21, 2019, 1:10 p.m. OK GNU C++17 TESTS 46 109 6451200 1800
57325364 vjudge4 D July 19, 2019, 11:53 a.m. OK GNU C++17 TESTS 46 109 6451200 1800
43081056 SheepRanger D Sept. 19, 2018, 1:53 p.m. OK GNU C++17 TESTS 46 109 7270400 1800
69185109 ST_C D Jan. 20, 2020, 11:41 a.m. OK GNU C++17 TESTS 46 109 8396800 1800
57316713 vjudge4 D July 19, 2019, 8:28 a.m. OK GNU C++17 TESTS 46 109 14438400 1800
43108180 Marii D Sept. 20, 2018, 10:06 a.m. OK Go TESTS 46 358 14643200 1800
44975477 megaspazz D Oct. 28, 2018, 5:05 a.m. OK Go TESTS 46 639 23552000 1800
44975464 megaspazz D Oct. 28, 2018, 5:05 a.m. OK Go TESTS 46 717 23552000 1800
43006947 Haar D Sept. 17, 2018, 4:25 p.m. OK Haskell TESTS 46 748 80076800 1800
47820036 arvind_rvs D Jan. 1, 2019, 5:02 p.m. OK Java 8 TESTS 46 234 16486400 1800
46569855 bvd D Dec. 4, 2018, 4:39 a.m. OK Java 8 TESTS 46 280 14438400 1800
42997087 SrapZark D Sept. 17, 2018, 12:28 p.m. OK Java 8 TESTS 46 295 0 1800
42996988 SrapZark D Sept. 17, 2018, 12:26 p.m. OK Java 8 TESTS 46 295 0 1800
42995859 SrapZark D Sept. 17, 2018, 12:02 p.m. OK Java 8 TESTS 46 296 0 1800
43168505 aman28rwt D Sept. 21, 2018, 6:48 a.m. OK Java 8 TESTS 46 296 5222400 1800
43168470 aman28rwt D Sept. 21, 2018, 6:47 a.m. OK Java 8 TESTS 46 296 5324800 1800
45249888 omarnvidia D Nov. 3, 2018, 3:54 p.m. OK Java 8 TESTS 46 296 13414400 1800
43006678 NO..ONE D Sept. 17, 2018, 4:16 p.m. OK Java 8 TESTS 46 311 5734400 1800
43083343 SecondThread D Sept. 19, 2018, 2:52 p.m. OK Java 8 TESTS 46 312 12902400 1800
42994637 kuuso D Sept. 17, 2018, 11:36 a.m. OK Mono C# TESTS 46 280 36044800 1800
42995680 kuuso D Sept. 17, 2018, 11:57 a.m. OK Mono C# TESTS 46 311 51097600 1800
43009366 GustavK D Sept. 17, 2018, 5:41 p.m. OK Mono C# TESTS 46 311 58060800 1800
43358743 omikad D Sept. 24, 2018, 8 a.m. OK Mono C# TESTS 46 576 46796800 1800
52913115 vjudge1 D April 17, 2019, 2:48 p.m. OK MS C++ TESTS 46 109 4812800 1800
57348279 vjudge1 D July 20, 2019, 1:37 a.m. OK MS C++ TESTS 46 124 4812800 1800
43828202 hnust_jiangcong D Oct. 5, 2018, 12:49 p.m. OK MS C++ TESTS 46 124 5120000 1800
43087662 Amovement D Sept. 19, 2018, 5:03 p.m. OK MS C++ TESTS 46 124 6451200 1800
61961727 vjudge4 D Oct. 6, 2019, 7:40 a.m. OK MS C++ TESTS 46 124 6451200 1800
57577936 vjudge3 D July 23, 2019, 7:46 a.m. OK MS C++ TESTS 46 140 7987200 1800
46852783 vjudge5 D Dec. 10, 2018, 1:10 p.m. OK MS C++ TESTS 46 155 24064000 1800
43337438 scorpiowf D Sept. 23, 2018, 4:21 p.m. OK MS C++ TESTS 46 156 9830400 1800
63014442 vjudge5 D Oct. 20, 2019, 12:31 p.m. OK MS C++ TESTS 46 171 7987200 1800
43359102 vjudge3 D Sept. 24, 2018, 8:11 a.m. OK MS C++ TESTS 46 171 16691200 1800
59596624 vjudge5 D Aug. 28, 2019, 2:21 a.m. OK MS C++ 2017 TESTS 46 233 32051200 1800
59597076 vjudge4 D Aug. 28, 2019, 2:47 a.m. OK MS C++ 2017 TESTS 46 265 40140800 1800
59596865 vjudge5 D Aug. 28, 2019, 2:35 a.m. OK MS C++ 2017 TESTS 46 312 40140800 1800
69684934 Kirja_ES D Jan. 28, 2020, 4:42 p.m. OK MS C++ 2017 TESTS 46 436 55500800 1800
43007781 pavankatta D Sept. 17, 2018, 4:51 p.m. OK PyPy 2 TESTS 46 935 33792000 1800
43007915 pavankatta D Sept. 17, 2018, 4:55 p.m. OK PyPy 2 TESTS 46 1091 63180800 1800
43142129 WENOUT D Sept. 20, 2018, 4:11 p.m. OK PyPy 2 TESTS 46 1123 66048000 1800
45284904 omarnvidia D Nov. 4, 2018, 4 p.m. OK PyPy 3 TESTS 46 904 37683200 1800
43012094 wadissimo D Sept. 17, 2018, 7:18 p.m. OK PyPy 3 TESTS 46 935 34099200 1800
43989565 qguaihudou D Oct. 8, 2018, 9:22 a.m. OK PyPy 3 TESTS 46 1013 30515200 1800
43021253 rookzeno D Sept. 18, 2018, 5:10 a.m. OK PyPy 3 TESTS 46 1029 28672000 1800
55674567 cftt D June 17, 2019, 9:40 a.m. OK PyPy 3 TESTS 46 1076 64204800 1800
43142663 WENOUT D Sept. 20, 2018, 4:14 p.m. OK PyPy 3 TESTS 46 1309 71168000 1800
43055746 justforlaugh D Sept. 19, 2018, 3:36 a.m. OK PyPy 3 TESTS 46 1403 80486400 1800
43055608 justforlaugh D Sept. 19, 2018, 3:27 a.m. OK PyPy 3 TESTS 46 1434 84582400 1800
46015390 Firepaw D Nov. 21, 2018, 2:38 a.m. OK Python 3 TESTS 46 1855 19968000 1800
54025611 CountZero D May 12, 2019, 12:24 p.m. OK Rust TESTS 46 78 7577600 1800
43006934 yakamoto D Sept. 17, 2018, 4:25 p.m. OK Scala TESTS 46 794 8396800 1800

remove filters

Back to search problems