Codeforces Round 547 (Div. 3)

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
1141 Codeforces Round 547 (Div. 3) FINISHED False 7200 178817099 March 19, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4232 ) F2 Same Sum Blocks (Hard) PROGRAMMING data structures greedy 2200

B'This problem is given in two editions, which differ exclusively in the constraints on the number n . You are given an array of integers a[1], a[2], ... , a[n]. A block is a sequence of contiguous (consecutive) elements a[l], a[l+1], ... , a[r] ( 1 <= l <= r <= n ). Thus, a block is defined by a pair of indices (l, r) . Find a set of blocks (l_1, r_1), (l_2, r_2), ... , (l_k, r_k) such that: Write a program to find such a set of blocks. The first line contains integer n ( 1 <= n <= 1500 ) -- the length of the given array. The second line contains the sequence of elements a[1], a[2], ... , a[n] ( -10^5 <= a_i <= 10^5 ). In the first line print the integer k ( 1 <= k <= n ). The following k lines should contain blocks, one per line. In each line print a pair of indices l_i, r_i ( 1 <= l_i <= r_i <= n ) -- the bounds of the i -th block. You can print blocks in any order. If there are multiple answers, print any of them. '...

Tutorials

66062

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53986381 chaorenhaha F2 May 11, 2019, 9:57 a.m. OK FPC TESTS 36 343 27648000 2200
53824574 rainboy F2 May 6, 2019, 3:14 p.m. OK GNU C11 TESTS 36 498 31641600 2200
58855225 guyan F2 Aug. 15, 2019, 9:02 a.m. OK GNU C++11 TESTS 36 124 48332800 2200
58855262 luogu_bot2 F2 Aug. 15, 2019, 9:02 a.m. OK GNU C++11 TESTS 36 124 48332800 2200
60380224 nwpu2018302329 F2 Sept. 11, 2019, 8:46 a.m. OK GNU C++11 TESTS 36 140 37888000 2200
54245807 DovydasVad F2 May 16, 2019, 2:50 p.m. OK GNU C++11 TESTS 36 155 49868800 2200
58710200 luogu_bot1 F2 Aug. 13, 2019, 11:56 a.m. OK GNU C++11 TESTS 36 186 27238400 2200
60471160 tanao030801 F2 Sept. 13, 2019, 5:36 a.m. OK GNU C++11 TESTS 36 187 27238400 2200
57916927 gfonn F2 July 29, 2019, 2:04 a.m. OK GNU C++11 TESTS 36 187 58572800 2200
57916581 gfonn F2 July 29, 2019, 1:48 a.m. OK GNU C++11 TESTS 36 187 58675200 2200
57917151 gfonn F2 July 29, 2019, 2:13 a.m. OK GNU C++11 TESTS 36 187 58675200 2200
57917125 gfonn F2 July 29, 2019, 2:12 a.m. OK GNU C++11 TESTS 36 202 58572800 2200
51881409 T.V_N F2 March 27, 2019, 1:20 a.m. OK GNU C++14 TESTS 36 124 48128000 2200
55812535 ffao F2 June 20, 2019, 4:43 a.m. OK GNU C++14 TESTS 36 155 37888000 2200
52557202 365050244 F2 April 10, 2019, 8:23 a.m. OK GNU C++14 TESTS 36 186 13516800 2200
51923149 abu_raihan F2 March 28, 2019, 5:55 a.m. OK GNU C++14 TESTS 36 218 27238400 2200
52630047 H4XeO6 F2 April 12, 2019, 6:30 a.m. OK GNU C++14 TESTS 36 265 65740800 2200
56302326 do_not_think_that F2 June 30, 2019, 9:38 a.m. OK GNU C++14 TESTS 36 296 50483200 2200
52301005 m.mahdi2414 F2 April 4, 2019, 9:09 a.m. OK GNU C++14 TESTS 36 327 37888000 2200
52651389 NiSO4_ F2 April 12, 2019, 4:47 p.m. OK GNU C++14 TESTS 36 358 30105600 2200
51851418 greenblade F2 March 26, 2019, 8:11 a.m. OK GNU C++14 TESTS 36 358 37888000 2200
54425888 Roohi F2 May 20, 2019, 6:24 p.m. OK GNU C++14 TESTS 36 358 38809600 2200
52916036 2010160220 F2 April 17, 2019, 3:53 p.m. OK GNU C++17 TESTS 36 124 53043200 2200
53739502 _Kkura_ F2 May 4, 2019, 12:57 p.m. OK GNU C++17 TESTS 36 140 37888000 2200
55534268 ILLLZKQF F2 June 13, 2019, 3:25 p.m. OK GNU C++17 TESTS 36 187 48640000 2200
60471145 tanao_ F2 Sept. 13, 2019, 5:36 a.m. OK GNU C++17 TESTS 36 202 27238400 2200
51811314 zzq233 F2 March 25, 2019, 5:56 a.m. OK GNU C++17 TESTS 36 249 18227200 2200
69843373 Igor_2017 F2 Jan. 30, 2020, 1:44 p.m. OK GNU C++17 TESTS 36 249 48128000 2200
52258026 carcar F2 April 3, 2019, 7:04 a.m. OK GNU C++17 TESTS 36 249 81920000 2200
61163609 S.K F2 Sept. 23, 2019, 3:56 p.m. OK GNU C++17 TESTS 36 280 27238400 2200
52625452 despair F2 April 12, 2019, 2:57 a.m. OK GNU C++17 TESTS 36 280 38707200 2200
51842929 xyw5vplus1 F2 March 26, 2019, 12:44 a.m. OK GNU C++17 TESTS 36 280 100966400 2200
67817568 sighduck F2 Dec. 28, 2019, 5:48 p.m. OK Go TESTS 36 888 104243200 2200
53825393 Dukkha F2 May 6, 2019, 3:44 p.m. OK Java 8 TESTS 36 576 39731200 2200
59498958 beginner1010 F2 Aug. 26, 2019, 1:17 a.m. OK Java 8 TESTS 36 1808 259072000 2200
59498729 beginner1010 F2 Aug. 26, 2019, 1:06 a.m. OK Java 8 TESTS 36 1887 258969600 2200
52656231 vjvjain0 F2 April 12, 2019, 7:03 p.m. OK Java 8 TESTS 36 1902 240128000 2200
52275438 prakhar897 F2 April 3, 2019, 2:35 p.m. OK Java 8 TESTS 36 1949 209715200 2200
52140198 uneven F2 April 1, 2019, 6:17 a.m. OK Java 8 TESTS 36 1949 244838400 2200
59498861 beginner1010 F2 Aug. 26, 2019, 1:13 a.m. OK Java 8 TESTS 36 1964 259174400 2200
68377745 ijxjdjd F2 Jan. 7, 2020, 9:07 p.m. OK Java 8 TESTS 36 2027 257536000 2200
52211272 bavian F2 April 1, 2019, 7:57 p.m. OK Java 8 TESTS 36 2059 228044800 2200
52024859 tahasin F2 March 30, 2019, 2:22 p.m. OK Java 8 TESTS 36 2183 220979200 2200
64874514 Spheniscine F2 Nov. 14, 2019, 9:20 a.m. OK Kotlin TESTS 36 1996 261222400 2200
64876223 Spheniscine F2 Nov. 14, 2019, 9:56 a.m. OK Kotlin TESTS 36 2027 261222400 2200
64886869 Spheniscine F2 Nov. 14, 2019, 1:24 p.m. OK Kotlin TESTS 36 2059 261222400 2200
64874907 Spheniscine F2 Nov. 14, 2019, 9:28 a.m. OK Kotlin TESTS 36 2183 261222400 2200
52252380 exs F2 April 3, 2019, 2:07 a.m. OK Kotlin TESTS 36 2261 260608000 2200
64283420 Spheniscine F2 Nov. 5, 2019, 3:24 a.m. OK Kotlin TESTS 36 2277 260812800 2200
64192146 Spheniscine F2 Nov. 4, 2019, 8:11 a.m. OK Kotlin TESTS 36 2464 262758400 2200
55682585 og.kostya F2 June 17, 2019, 1:49 p.m. OK Mono C# TESTS 36 732 115712000 2200
63116119 hibatibati F2 Oct. 22, 2019, 9:24 a.m. OK Mono C# TESTS 36 1372 128819200 2200
52074452 ys1468362286 F2 March 31, 2019, 9:20 a.m. OK MS C++ TESTS 36 858 72294400 2200
52074532 vjudge2 F2 March 31, 2019, 9:22 a.m. OK MS C++ TESTS 36 889 72294400 2200
51889523 asdkjc F2 March 27, 2019, 8:23 a.m. OK MS C++ TESTS 36 920 90419200 2200
54097014 scorpiowf F2 May 14, 2019, 1:37 p.m. OK MS C++ TESTS 36 950 71884800 2200
51808692 vjudge1 F2 March 25, 2019, 2:33 a.m. OK MS C++ TESTS 36 950 94003200 2200
52448707 vjudge5 F2 April 7, 2019, 8:52 a.m. OK MS C++ TESTS 36 1216 71987200 2200
57816223 dia_niki F2 July 26, 2019, 7:50 p.m. OK MS C++ 2017 TESTS 36 529 96768000 2200
56590825 CtrlAlt F2 July 5, 2019, 5:05 p.m. OK MS C++ 2017 TESTS 36 607 84480000 2200
51975971 SendThemToHell F2 March 29, 2019, 2:19 p.m. OK MS C++ 2017 TESTS 36 763 76390400 2200
51927261 SyavaSpb F2 March 28, 2019, 8:27 a.m. OK MS C++ 2017 TESTS 36 951 62873600 2200
52616103 Husne_Matar F2 April 11, 2019, 6:32 p.m. OK MS C++ 2017 TESTS 36 951 63692800 2200
51984176 feshfesh123 F2 March 29, 2019, 5:42 p.m. OK MS C++ 2017 TESTS 36 1076 89702400 2200
51892969 Helli.code F2 March 27, 2019, 10:08 a.m. OK PyPy 2 TESTS 36 1138 155545600 2200
59679975 ssk497 F2 Aug. 29, 2019, 8:02 p.m. OK PyPy 2 TESTS 36 1247 155136000 2200
63030855 YESMAths F2 Oct. 20, 2019, 6:22 p.m. OK PyPy 2 TESTS 36 1357 151040000 2200
51816139 SoSooding F2 March 25, 2019, 9:19 a.m. OK PyPy 2 TESTS 36 1575 111411200 2200
59679409 fastnoise F2 Aug. 29, 2019, 7:45 p.m. OK PyPy 2 TESTS 36 2995 257843200 2200
52464841 Kirillov_Alexey F2 April 7, 2019, 3:05 p.m. OK PyPy 3 TESTS 36 639 110592000 2200
51827201 huangbinapple F2 March 25, 2019, 2:28 p.m. OK PyPy 3 TESTS 36 733 111104000 2200
52254535 acesine F2 April 3, 2019, 4:27 a.m. OK PyPy 3 TESTS 36 1138 124620800 2200
51846055 yumtam F2 March 26, 2019, 4:40 a.m. OK PyPy 3 TESTS 36 1169 80588800 2200
52071629 artifexbm F2 March 31, 2019, 8:05 a.m. OK PyPy 3 TESTS 36 1200 108339200 2200
52618874 rookzeno F2 April 11, 2019, 8:05 p.m. OK PyPy 3 TESTS 36 1247 179814400 2200
53840030 Annvv F2 May 7, 2019, 6:49 a.m. OK PyPy 3 TESTS 36 1481 249344000 2200
62322665 ashok123 F2 Oct. 10, 2019, 5:17 p.m. OK PyPy 3 TESTS 36 1544 156774400 2200
58426065 xuzhengqi F2 Aug. 7, 2019, 9:45 a.m. OK PyPy 3 TESTS 36 1559 157696000 2200
68691763 Gleb_Dubosarskii F2 Jan. 13, 2020, 6:26 a.m. OK PyPy 3 TESTS 36 1902 178073600 2200
51811663 huangbinapple F2 March 25, 2019, 6:16 a.m. OK Python 3 TESTS 36 1824 165683200 2200
53123333 Kjoshi F2 April 22, 2019, 12:34 p.m. OK Python 3 TESTS 36 1886 191897600 2200
51811825 Maklarenov F2 March 25, 2019, 6:24 a.m. OK Python 3 TESTS 36 1918 165683200 2200
55730079 maiti_prithvi_sh F2 June 18, 2019, 8:26 p.m. OK Python 3 TESTS 36 2573 174489600 2200
54322924 Pedantic F2 May 17, 2019, 11:16 p.m. OK Python 3 TESTS 36 2932 170598400 2200
58926460 nethish F2 Aug. 16, 2019, 7:48 p.m. OK Python 3 TESTS 36 2995 179302400 2200
52418228 alykov F2 April 6, 2019, 3:58 p.m. OK Rust TESTS 36 452 78950400 2200
61398350 sansen F2 Sept. 28, 2019, 3:50 a.m. OK Rust TESTS 36 514 48332800 2200
55295502 MishaI2004 F2 June 8, 2019, 9:42 a.m. OK Rust TESTS 36 514 104140800 2200
52417210 alykov F2 April 6, 2019, 3:33 p.m. OK Rust TESTS 36 514 104140800 2200
59942147 Lancern F2 Sept. 3, 2019, 11:50 a.m. OK Rust TESTS 36 623 63488000 2200

remove filters

Back to search problems