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
( 3891 ) F1 Same Sum Blocks (Easy) PROGRAMMING greedy 2000

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 <= 50 ) -- 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
53824578 rainboy F1 May 6, 2019, 3:14 p.m. OK GNU C11 TESTS 40 31 31641600 2000
52137074 fishbowl F1 April 1, 2019, 3:48 a.m. OK GNU C++11 TESTS 40 15 102400 2000
51811746 WangAlbert F1 March 25, 2019, 6:20 a.m. OK GNU C++11 TESTS 40 30 102400 2000
51863241 whymhe F1 March 26, 2019, 2:03 p.m. OK GNU C++11 TESTS 40 30 102400 2000
54790387 limabeans F1 May 29, 2019, 6:48 a.m. OK GNU C++11 TESTS 40 31 0 2000
52438700 Photinia.S F1 April 7, 2019, 5:29 a.m. OK GNU C++11 TESTS 40 31 0 2000
56008587 catalystgma F1 June 24, 2019, 4:53 p.m. OK GNU C++11 TESTS 40 31 0 2000
52301472 learningmou F1 April 4, 2019, 9:28 a.m. OK GNU C++11 TESTS 40 31 0 2000
53207738 tyzc F1 April 24, 2019, 12:58 a.m. OK GNU C++11 TESTS 40 31 0 2000
69867329 akkipoonia F1 Jan. 30, 2020, 9:07 p.m. OK GNU C++11 TESTS 40 31 102400 2000
69933277 vjudge2 F1 Feb. 1, 2020, 1:53 a.m. OK GNU C++11 TESTS 40 31 102400 2000
59258894 mirfanf F1 Aug. 22, 2019, 7:46 a.m. OK GNU C++14 TESTS 40 15 0 2000
54724240 knight-erraunt F1 May 27, 2019, 7:13 p.m. OK GNU C++14 TESTS 40 15 204800 2000
52314564 icecuber F1 April 4, 2019, 4:20 p.m. OK GNU C++14 TESTS 40 15 204800 2000
52000028 redb17 F1 March 30, 2019, 5:44 a.m. OK GNU C++14 TESTS 40 15 204800 2000
51887222 Naim_Hasan F1 March 27, 2019, 7:05 a.m. OK GNU C++14 TESTS 40 15 204800 2000
55651738 _i_mean_its_mine_ F1 June 16, 2019, 2:55 p.m. OK GNU C++14 TESTS 40 15 204800 2000
68407612 AceOfStrings F1 Jan. 8, 2020, 3:36 p.m. OK GNU C++14 TESTS 40 15 1024000 2000
62138991 derrickball F1 Oct. 8, 2019, 3:37 p.m. OK GNU C++14 TESTS 40 30 0 2000
53656476 2017114524lyx F1 May 2, 2019, 5:12 a.m. OK GNU C++14 TESTS 40 30 0 2000
52652168 WhaleVomit F1 April 12, 2019, 5:08 p.m. OK GNU C++14 TESTS 40 30 0 2000
53610928 vjudge4 F1 May 1, 2019, 1:01 p.m. OK GNU C++17 TESTS 40 15 102400 2000
51897650 chiragjn F1 March 27, 2019, 12:17 p.m. OK GNU C++17 TESTS 40 15 204800 2000
58636068 vjudge2 F1 Aug. 12, 2019, 12:24 a.m. OK GNU C++17 TESTS 40 15 204800 2000
55527132 AhmedEzzatG F1 June 13, 2019, 11:44 a.m. OK GNU C++17 TESTS 40 15 204800 2000
52666760 Durumu F1 April 13, 2019, 5:11 a.m. OK GNU C++17 TESTS 40 15 204800 2000
52079123 one2345678 F1 March 31, 2019, 11:25 a.m. OK GNU C++17 TESTS 40 15 204800 2000
51952558 d_i_m_a F1 March 28, 2019, 9:40 p.m. OK GNU C++17 TESTS 40 15 204800 2000
51804234 vikrambishnoi F1 March 24, 2019, 8:11 p.m. OK GNU C++17 TESTS 40 15 204800 2000
59941772 DEKU_ F1 Sept. 3, 2019, 11:42 a.m. OK GNU C++17 TESTS 40 15 307200 2000
64352239 sfy F1 Nov. 6, 2019, 8:51 a.m. OK GNU C++17 TESTS 40 15 307200 2000
52328304 cs_office F1 April 5, 2019, 3:03 a.m. OK Go TESTS 40 31 716800 2000
68872054 4D5F525F47 F1 Jan. 15, 2020, 3:35 p.m. OK Java 8 TESTS 40 109 0 2000
52475216 FluffyPotato F1 April 7, 2019, 9:54 p.m. OK Java 8 TESTS 40 109 0 2000
68871956 vjudge1 F1 Jan. 15, 2020, 3:33 p.m. OK Java 8 TESTS 40 124 0 2000
52806144 GiantTornado F1 April 16, 2019, 4:46 a.m. OK Java 8 TESTS 40 124 0 2000
52796686 CloverAsta F1 April 15, 2019, 9:27 p.m. OK Java 8 TESTS 40 124 0 2000
52656217 vjvjain0 F1 April 12, 2019, 7:03 p.m. OK Java 8 TESTS 40 124 0 2000
52581242 Piccadilly F1 April 10, 2019, 7:21 p.m. OK Java 8 TESTS 40 124 0 2000
52443854 sumit3 F1 April 7, 2019, 7:19 a.m. OK Java 8 TESTS 40 124 0 2000
52275396 prakhar897 F1 April 3, 2019, 2:34 p.m. OK Java 8 TESTS 40 124 0 2000
52024827 tahasin F1 March 30, 2019, 2:21 p.m. OK Java 8 TESTS 40 124 0 2000
52252388 exs F1 April 3, 2019, 2:08 a.m. OK Kotlin TESTS 40 124 0 2000
64192239 Spheniscine F1 Nov. 4, 2019, 8:13 a.m. OK Kotlin TESTS 40 140 0 2000
55682607 og.kostya F1 June 17, 2019, 1:50 p.m. OK Mono C# TESTS 40 62 204800 2000
63116090 hibatibati F1 Oct. 22, 2019, 9:23 a.m. OK Mono C# TESTS 40 62 4096000 2000
52555153 treasuryonly F1 April 10, 2019, 7:17 a.m. OK Mono C# TESTS 40 171 37580800 2000
54097429 scorpiowf F1 May 14, 2019, 1:50 p.m. OK MS C++ TESTS 40 31 102400 2000
52450592 vjudge1 F1 April 7, 2019, 9:34 a.m. OK MS C++ TESTS 40 31 102400 2000
52074502 vjudge3 F1 March 31, 2019, 9:21 a.m. OK MS C++ TESTS 40 31 512000 2000
52074440 ys1468362286 F1 March 31, 2019, 9:20 a.m. OK MS C++ TESTS 40 46 512000 2000
52151526 vjudge3 F1 April 1, 2019, 11:48 a.m. OK MS C++ TESTS 40 46 10137600 2000
51889514 asdkjc F1 March 27, 2019, 8:23 a.m. OK MS C++ TESTS 40 46 36659200 2000
51827174 SyavaSpb F1 March 25, 2019, 2:27 p.m. OK MS C++ 2017 TESTS 40 31 0 2000
51944040 Kyryll F1 March 28, 2019, 3:53 p.m. OK MS C++ 2017 TESTS 40 31 102400 2000
56590834 CtrlAlt F1 July 5, 2019, 5:05 p.m. OK MS C++ 2017 TESTS 40 31 102400 2000
51976007 SendThemToHell F1 March 29, 2019, 2:20 p.m. OK MS C++ 2017 TESTS 40 31 102400 2000
51983227 feshfesh123 F1 March 29, 2019, 5:18 p.m. OK MS C++ 2017 TESTS 40 31 204800 2000
52616120 Husne_Matar F1 April 11, 2019, 6:32 p.m. OK MS C++ 2017 TESTS 40 31 921600 2000
63030840 YESMAths F1 Oct. 20, 2019, 6:21 p.m. OK PyPy 2 TESTS 40 156 1126400 2000
59679978 ssk497 F1 Aug. 29, 2019, 8:02 p.m. OK PyPy 2 TESTS 40 233 8396800 2000
52464830 Kirillov_Alexey F1 April 7, 2019, 3:05 p.m. OK PyPy 3 TESTS 40 139 0 2000
52254527 acesine F1 April 3, 2019, 4:27 a.m. OK PyPy 3 TESTS 40 140 614400 2000
52618861 rookzeno F1 April 11, 2019, 8:05 p.m. OK PyPy 3 TESTS 40 155 1024000 2000
58426016 xuzhengqi F1 Aug. 7, 2019, 9:44 a.m. OK PyPy 3 TESTS 40 156 2048000 2000
51846044 yumtam F1 March 26, 2019, 4:40 a.m. OK PyPy 3 TESTS 40 171 614400 2000
54322930 Pedantic F1 May 17, 2019, 11:17 p.m. OK PyPy 3 TESTS 40 171 1024000 2000
62322712 ashok123 F1 Oct. 10, 2019, 5:18 p.m. OK PyPy 3 TESTS 40 186 2355200 2000
52071644 artifexbm F1 March 31, 2019, 8:06 a.m. OK PyPy 3 TESTS 40 265 1740800 2000
51816127 SoSooding F1 March 25, 2019, 9:18 a.m. OK Python 2 TESTS 40 171 102400 2000
51893071 Helli.code F1 March 27, 2019, 10:11 a.m. OK Python 2 TESTS 40 187 409600 2000
59653943 fastnoise F1 Aug. 29, 2019, 9:29 a.m. OK Python 2 TESTS 40 405 102400 2000
55730023 maiti_prithvi_sh F1 June 18, 2019, 8:23 p.m. OK Python 3 TESTS 40 109 307200 2000
53839824 Annvv F1 May 7, 2019, 6:41 a.m. OK Python 3 TESTS 40 109 307200 2000
54651662 bwang1008 F1 May 26, 2019, 5:49 a.m. OK Python 3 TESTS 40 109 409600 2000
65332611 NocturneBflat F1 Nov. 19, 2019, 7:10 a.m. OK Python 3 TESTS 40 124 307200 2000
56561027 brosucks F1 July 5, 2019, 2:58 p.m. OK Python 3 TESTS 40 124 307200 2000
68691698 Gleb_Dubosarskii F1 Jan. 13, 2020, 6:24 a.m. OK Python 3 TESTS 40 140 716800 2000
53123269 Kjoshi F1 April 22, 2019, 12:31 p.m. OK Python 3 TESTS 40 140 716800 2000
58926473 nethish F1 Aug. 16, 2019, 7:48 p.m. OK Python 3 TESTS 40 155 716800 2000
52132364 grandesonnerie F1 March 31, 2019, 9:44 p.m. OK Python 3 TESTS 40 156 307200 2000
51974905 tereshina_m F1 March 29, 2019, 1:57 p.m. OK Python 3 TESTS 40 1794 20582400 2000
52417192 alykov F1 April 6, 2019, 3:33 p.m. OK Rust TESTS 40 31 204800 2000
61399826 sansen F1 Sept. 28, 2019, 4:37 a.m. OK Rust TESTS 40 31 307200 2000

remove filters

Back to search problems