Codeforces Global Round 1

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
1110 Codeforces Global Round 1 FINISHED False 7200 187979123 Feb. 7, 2019, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12117 ) B Tape PROGRAMMING greedy sortings 1400

B'You have a long stick, consisting of m segments enumerated from 1 to m . Each segment is 1 centimeter long. Sadly, some segments are broken and need to be repaired. You have an infinitely long repair tape. You want to cut some pieces from the tape and use them to cover all of the broken segments. To be precise, a piece of tape of integer length t placed at some position s will cover segments s, s+1, ldots, s+t-1 . You are allowed to cover non-broken segments; it is also possible that some pieces of tape will overlap. Time is money, so you want to cut at most k continuous pieces of tape to cover all the broken segments. What is the minimum total length of these pieces? The first line contains three integers n , m and k ( 1 <= n <= 10^5 , n <= m <= 10^9 , 1 <= k <= n ) -- the number of broken segments, the length of the stick and the maximum number of pieces you can use. The second line contains n integers b_1, b_2, ldots, b_n ( 1 <= b_i <= m ) -- the positions of the broken segments. These integers are given in increasing order, that is, b_1 < b_2 < ldots < b_n . Print the minimum total length of the pieces. In the first example, you can use a piece of length 11 to cover the broken segments 20 and 30 , and another piece of length 6 to cover 75 and 80 , for a total length of 17 . In the second example, you can use a piece of length 4 to cover broken segments 1 , 2 and 4 , and two pieces of length 1 to cover broken segments 60 and 87 . '...

Tutorials

The Editorial of the First Codeforces Global Round

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50550133 Minasenayuki B Feb. 27, 2019, 3:13 a.m. OK Clang++17 Diagnostics TESTS 33 124 1024000 1400
52768133 hkwalker B April 15, 2019, 6:16 a.m. OK FPC TESTS 33 61 819200 1400
49653310 luogu_bot5 B Feb. 9, 2019, 8:41 a.m. OK FPC TESTS 33 61 819200 1400
49648155 Kostin2020 B Feb. 9, 2019, 6:08 a.m. OK FPC TESTS 33 62 409600 1400
49655357 wushuhan B Feb. 9, 2019, 9:37 a.m. OK FPC TESTS 33 62 819200 1400
49650429 bcr_233 B Feb. 9, 2019, 7:19 a.m. OK FPC TESTS 33 62 819200 1400
49651867 geeyiiz B Feb. 9, 2019, 8:03 a.m. OK GNU C11 TESTS 33 46 409600 1400
52219975 hjhjnnaaa B April 2, 2019, 5:56 a.m. OK GNU C11 TESTS 33 46 819200 1400
49672755 Mad_Andrei B Feb. 9, 2019, 5:53 p.m. OK GNU C11 TESTS 33 46 819200 1400
49837375 Aggr3ssor B Feb. 12, 2019, 4:47 p.m. OK GNU C11 TESTS 33 46 819200 1400
52140245 sansen B April 1, 2019, 6:19 a.m. OK GNU C11 TESTS 33 46 819200 1400
56694340 gregr B July 8, 2019, 6:11 a.m. OK GNU C11 TESTS 33 46 1228800 1400
49659728 WAFN B Feb. 9, 2019, 11:49 a.m. OK GNU C11 TESTS 33 46 3993600 1400
49878570 Justaskeleton B Feb. 13, 2019, 5:02 p.m. OK GNU C11 TESTS 33 46 80179200 1400
57605516 vjudge4 B July 23, 2019, 5:43 p.m. OK GNU C11 TESTS 33 62 819200 1400
54014001 a7o6d98 B May 12, 2019, 5:19 a.m. OK GNU C11 TESTS 33 62 819200 1400
50088316 hangyesheng B Feb. 18, 2019, 8:49 a.m. OK GNU C++11 TESTS 33 31 409600 1400
49993303 fwat B Feb. 16, 2019, 1:47 p.m. OK GNU C++11 TESTS 33 31 409600 1400
49666643 qkoqhh B Feb. 9, 2019, 2:46 p.m. OK GNU C++11 TESTS 33 31 409600 1400
49620037 ModestCoder B Feb. 8, 2019, 8:51 a.m. OK GNU C++11 TESTS 33 31 409600 1400
49619996 luogu_bot2 B Feb. 8, 2019, 8:50 a.m. OK GNU C++11 TESTS 33 31 409600 1400
58316243 xcxxcx B Aug. 5, 2019, 3:04 a.m. OK GNU C++11 TESTS 33 31 409600 1400
58316247 luogu_bot4 B Aug. 5, 2019, 3:04 a.m. OK GNU C++11 TESTS 33 31 409600 1400
51216926 luogu_bot5 B March 12, 2019, 10:58 a.m. OK GNU C++11 TESTS 33 31 409600 1400
50627386 Scut82 B March 1, 2019, 6:56 a.m. OK GNU C++11 TESTS 33 31 409600 1400
50199289 luogu_bot4 B Feb. 19, 2019, 4:55 p.m. OK GNU C++11 TESTS 33 31 409600 1400
49601503 tokitsukaze B Feb. 7, 2019, 5:19 p.m. OK GNU C++14 TESTS 33 31 1638400 1400
55091503 vjudge2 B June 4, 2019, 2:45 p.m. OK GNU C++14 TESTS 33 46 409600 1400
55397384 sachin208 B June 10, 2019, 12:23 p.m. OK GNU C++14 TESTS 33 46 409600 1400
57200885 vjudge1 B July 17, 2019, 1:41 p.m. OK GNU C++14 TESTS 33 46 409600 1400
67310737 vjudge3 B Dec. 21, 2019, 2:32 a.m. OK GNU C++14 TESTS 33 46 409600 1400
54912331 Venom_sanchit B June 1, 2019, 11:50 a.m. OK GNU C++14 TESTS 33 46 409600 1400
52292148 igorqs B April 4, 2019, 3:01 a.m. OK GNU C++14 TESTS 33 46 409600 1400
51406156 firranze B March 17, 2019, 9:58 a.m. OK GNU C++14 TESTS 33 46 409600 1400
51128404 nightcoder_98 B March 10, 2019, 12:42 p.m. OK GNU C++14 TESTS 33 46 409600 1400
49897148 vinayrajmanchala B Feb. 14, 2019, 7:29 a.m. OK GNU C++14 TESTS 33 46 409600 1400
49901392 .tx B Feb. 14, 2019, 9:33 a.m. OK GNU C++17 TESTS 33 31 819200 1400
49627209 diana.ghita.gd B Feb. 8, 2019, 12:35 p.m. OK GNU C++17 TESTS 33 46 409600 1400
52934080 zulongfei B April 18, 2019, 5:10 a.m. OK GNU C++17 TESTS 33 46 409600 1400
57591128 Chengrui1996 B July 23, 2019, 12:19 p.m. OK GNU C++17 TESTS 33 46 409600 1400
49676734 WorkHard42 B Feb. 9, 2019, 8:17 p.m. OK GNU C++17 TESTS 33 46 614400 1400
49680002 linkRs B Feb. 9, 2019, 11:48 p.m. OK GNU C++17 TESTS 33 46 614400 1400
49686937 urmat B Feb. 10, 2019, 7:49 a.m. OK GNU C++17 TESTS 33 46 614400 1400
49670358 lys1280023 B Feb. 9, 2019, 4:36 p.m. OK GNU C++17 TESTS 33 46 614400 1400
49675643 SaeedIT B Feb. 9, 2019, 7:34 p.m. OK GNU C++17 TESTS 33 46 614400 1400
49622751 Rick1 B Feb. 8, 2019, 10:15 a.m. OK GNU C++17 TESTS 33 46 614400 1400
50867008 Quandis B March 5, 2019, 9:06 p.m. OK Go TESTS 33 62 5222400 1400
49609560 savinov B Feb. 7, 2019, 10:18 p.m. OK Go TESTS 33 124 5222400 1400
49757929 Black_Fregat B Feb. 11, 2019, 7:27 a.m. OK Haskell TESTS 33 405 19148800 1400
49613516 sui_generis_ B Feb. 8, 2019, 4:12 a.m. OK Haskell TESTS 33 655 39116800 1400
49622330 sooraj10 B Feb. 8, 2019, 10:04 a.m. OK Java 8 TESTS 33 124 0 1400
52620037 beroul B April 11, 2019, 8:54 p.m. OK Java 8 TESTS 33 124 0 1400
49623519 Celesta B Feb. 8, 2019, 10:40 a.m. OK Java 8 TESTS 33 124 0 1400
49593359 mannshah27 B Feb. 7, 2019, 3:18 p.m. OK Java 8 TESTS 33 124 0 1400
49921114 romit17 B Feb. 14, 2019, 6:54 p.m. OK Java 8 TESTS 33 139 0 1400
49684392 manish_98 B Feb. 10, 2019, 6:01 a.m. OK Java 8 TESTS 33 139 0 1400
68025411 saurabhs1206 B Jan. 1, 2020, 5:15 a.m. OK Java 8 TESTS 33 140 0 1400
50009236 falken_great B Feb. 16, 2019, 5:03 p.m. OK Java 8 TESTS 33 140 0 1400
51229072 jyoti_123 B March 12, 2019, 3:21 p.m. OK Java 8 TESTS 33 155 0 1400
49978185 Faizan B Feb. 16, 2019, 7:02 a.m. OK Java 8 TESTS 33 155 0 1400
49588833 orazbek B Feb. 7, 2019, 2:56 p.m. OK JavaScript TESTS 33 140 16998400 1400
50552688 exs B Feb. 27, 2019, 5:51 a.m. OK Kotlin TESTS 33 171 0 1400
59604542 StinsonOvO B Aug. 28, 2019, 8:06 a.m. OK Kotlin TESTS 33 296 6041600 1400
49900877 glider.g B Feb. 14, 2019, 9:17 a.m. OK Kotlin TESTS 33 311 716800 1400
49685887 matej.pristak B Feb. 10, 2019, 7:05 a.m. OK Kotlin TESTS 33 312 7065600 1400
61547407 david_varela B Sept. 30, 2019, 11:03 a.m. OK Kotlin TESTS 33 327 5939200 1400
54901174 og.kostya B June 1, 2019, 6:39 a.m. OK Mono C# TESTS 33 62 819200 1400
49771282 T-D-K B Feb. 11, 2019, 1:45 p.m. OK Mono C# TESTS 33 78 1945600 1400
51816895 MinProph B March 25, 2019, 9:46 a.m. OK Mono C# TESTS 33 78 10854400 1400
49672553 amit1509kumar B Feb. 9, 2019, 5:46 p.m. OK Mono C# TESTS 33 93 10854400 1400
49661020 _SHREDDER_ B Feb. 9, 2019, 12:25 p.m. OK Mono C# TESTS 33 93 15872000 1400
52917105 TrabajoNocturno B April 17, 2019, 4:17 p.m. OK Mono C# TESTS 33 93 82841600 1400
49624324 Giangvp B Feb. 8, 2019, 11:05 a.m. OK Mono C# TESTS 33 108 10854400 1400
49586015 teru B Feb. 7, 2019, 2:44 p.m. OK Mono C# TESTS 33 108 15564800 1400
50535380 nemars B Feb. 26, 2019, 3:27 p.m. OK Mono C# TESTS 33 108 17100800 1400
49884902 zazak B Feb. 13, 2019, 8:29 p.m. OK Mono C# TESTS 33 109 15564800 1400
52943450 vjudge4 B April 18, 2019, 10:28 a.m. OK MS C++ TESTS 33 31 819200 1400
51115386 vjudge5 B March 10, 2019, 6:39 a.m. OK MS C++ TESTS 33 46 409600 1400
49688601 vjudge4 B Feb. 10, 2019, 9:43 a.m. OK MS C++ TESTS 33 46 409600 1400
49688593 vjudge1 B Feb. 10, 2019, 9:42 a.m. OK MS C++ TESTS 33 46 409600 1400
51407749 vjudge1 B March 17, 2019, 10:39 a.m. OK MS C++ TESTS 33 46 409600 1400
53672303 vjudge4 B May 2, 2019, 1:50 p.m. OK MS C++ TESTS 33 46 409600 1400
63677357 vjudge2 B Oct. 28, 2019, 6:46 p.m. OK MS C++ TESTS 33 46 819200 1400
64101125 vjudge2 B Nov. 2, 2019, 3:30 p.m. OK MS C++ TESTS 33 46 819200 1400
53294570 vjudge4 B April 25, 2019, 5:02 p.m. OK MS C++ TESTS 33 46 819200 1400
64107471 tarattata1 B Nov. 2, 2019, 5:15 p.m. OK MS C++ TESTS 33 46 819200 1400
53801045 petko_mitkov B May 5, 2019, 6:43 p.m. OK MS C++ 2017 TESTS 33 61 819200 1400
50147827 tangbinjie B Feb. 19, 2019, 5:37 a.m. OK MS C++ 2017 TESTS 33 61 1433600 1400
51433750 ztj B March 18, 2019, 4:18 a.m. OK MS C++ 2017 TESTS 33 62 819200 1400
49591753 sp201613_qwy B Feb. 7, 2019, 3:10 p.m. OK MS C++ 2017 TESTS 33 62 1638400 1400
58945950 vjudge1 B Aug. 17, 2019, 8:58 a.m. OK MS C++ 2017 TESTS 33 62 1638400 1400
49594136 zzysleep B Feb. 7, 2019, 3:22 p.m. OK MS C++ 2017 TESTS 33 62 1638400 1400
54798644 R99 B May 29, 2019, 10:56 a.m. OK MS C++ 2017 TESTS 33 62 1740800 1400
49594248 Lxyzzz B Feb. 7, 2019, 3:22 p.m. OK MS C++ 2017 TESTS 33 62 3276800 1400
57361319 ZSTU-2018329621261 B July 20, 2019, 7:49 a.m. OK MS C++ 2017 TESTS 33 62 3481600 1400
49766289 lyslyslys B Feb. 11, 2019, 11:49 a.m. OK MS C++ 2017 TESTS 33 62 7987200 1400
49913951 BadTime B Feb. 14, 2019, 3:32 p.m. OK Node.js TESTS 33 265 14540800 1400
49835050 Stanislav666 B Feb. 12, 2019, 3:44 p.m. OK PascalABC.NET TESTS 33 311 0 1400
49636514 warenzer B Feb. 8, 2019, 7:01 p.m. OK PHP TESTS 33 140 10035200 1400
49606675 mayakin B Feb. 7, 2019, 7:54 p.m. OK PHP TESTS 33 155 16384000 1400
52361542 chaudhary_19 B April 5, 2019, 8:08 p.m. OK PyPy 2 TESTS 33 155 8192000 1400
49676061 hsuyaremo B Feb. 9, 2019, 7:51 p.m. OK PyPy 2 TESTS 33 155 8192000 1400
50685918 sy_chen B March 2, 2019, 1:39 p.m. OK PyPy 2 TESTS 33 155 8396800 1400
49694741 dut200901102 B Feb. 10, 2019, 1:11 p.m. OK PyPy 2 TESTS 33 170 8089600 1400
49668691 wangkan2001 B Feb. 9, 2019, 3:41 p.m. OK PyPy 2 TESTS 33 202 7884800 1400
58343859 soumyasarkar1998 B Aug. 5, 2019, 2:11 p.m. OK PyPy 2 TESTS 33 217 10137600 1400
49604043 aeternalis1 B Feb. 7, 2019, 6:31 p.m. OK PyPy 2 TESTS 33 264 8601600 1400
54887714 kaif_7 B May 31, 2019, 6:22 p.m. OK PyPy 2 TESTS 33 389 21811200 1400
54887681 pein_7 B May 31, 2019, 6:21 p.m. OK PyPy 2 TESTS 33 389 21811200 1400
49595720 Onesh0t B Feb. 7, 2019, 3:29 p.m. OK PyPy 2 TESTS 33 436 11366400 1400
49635108 psyfoo B Feb. 8, 2019, 6:17 p.m. OK PyPy 3 TESTS 33 202 10342400 1400
49599401 ghostpy B Feb. 7, 2019, 4:40 p.m. OK PyPy 3 TESTS 33 217 12083200 1400
49647898 _Shravann_ B Feb. 9, 2019, 5:57 a.m. OK PyPy 3 TESTS 33 217 12595200 1400
49635680 Stephan B Feb. 8, 2019, 6:34 p.m. OK PyPy 3 TESTS 33 217 12595200 1400
49656365 abdolsamad B Feb. 9, 2019, 10:09 a.m. OK PyPy 3 TESTS 33 218 10752000 1400
49603229 yfo B Feb. 7, 2019, 6:09 p.m. OK PyPy 3 TESTS 33 218 11468800 1400
49599368 ghostpy B Feb. 7, 2019, 4:39 p.m. OK PyPy 3 TESTS 33 218 11776000 1400
49599335 ghostpy B Feb. 7, 2019, 4:39 p.m. OK PyPy 3 TESTS 33 218 11980800 1400
49868751 ConanYu B Feb. 13, 2019, 1:03 p.m. OK PyPy 3 TESTS 33 218 12492800 1400
49629160 pj21 B Feb. 8, 2019, 1:25 p.m. OK PyPy 3 TESTS 33 218 12595200 1400
51562150 gaidash B March 20, 2019, 8:21 a.m. OK Python 2 TESTS 33 249 5836800 1400
52943572 Nika86 B April 18, 2019, 10:31 a.m. OK Python 2 TESTS 33 265 6758400 1400
52339117 tangchuanxin B April 5, 2019, 9:34 a.m. OK Python 2 TESTS 33 280 6451200 1400
55670383 bsr011 B June 17, 2019, 7:12 a.m. OK Python 2 TESTS 33 280 6553600 1400
49930232 nealzane B Feb. 15, 2019, 3:50 a.m. OK Python 2 TESTS 33 295 5836800 1400
49595327 kardandon B Feb. 7, 2019, 3:27 p.m. OK Python 2 TESTS 33 296 5632000 1400
49880211 Luxo B Feb. 13, 2019, 5:48 p.m. OK Python 2 TESTS 33 296 5836800 1400
49674197 thenewguy39 noob77777 B Feb. 9, 2019, 6:41 p.m. OK Python 2 TESTS 33 296 6553600 1400
63676769 vjudge2 B Oct. 28, 2019, 6:36 p.m. OK Python 2 TESTS 33 311 5632000 1400
49689482 bhavana4842 B Feb. 10, 2019, 10:17 a.m. OK Python 3 TESTS 33 171 8499200 1400
49585977 eugalt B Feb. 7, 2019, 2:44 p.m. OK Python 3 TESTS 33 186 8396800 1400
63675604 vjudge3 B Oct. 28, 2019, 6:16 p.m. OK Python 3 TESTS 33 186 8499200 1400
49836347 Aggr3ssor B Feb. 12, 2019, 4:20 p.m. OK Python 3 TESTS 33 186 8499200 1400
49760653 i_am_ashnpy B Feb. 11, 2019, 8:47 a.m. OK Python 3 TESTS 33 187 8192000 1400
49613184 KanhuKeNanu B Feb. 8, 2019, 3:48 a.m. OK Python 3 TESTS 33 187 8192000 1400
49683007 strangerBoy B Feb. 10, 2019, 4:43 a.m. OK Python 3 TESTS 33 187 8396800 1400
49671315 daxua22t B Feb. 9, 2019, 5:06 p.m. OK Python 3 TESTS 33 187 8396800 1400
51467952 vjudge3 B March 19, 2019, 3:43 a.m. OK Python 3 TESTS 33 187 8499200 1400
49867363 galim665 B Feb. 13, 2019, 12:32 p.m. OK Python 3 TESTS 33 187 8499200 1400
49659319 koikotya B Feb. 9, 2019, 11:36 a.m. OK Ruby TESTS 33 171 17612800 1400
49946553 yakamoto B Feb. 15, 2019, 12:19 p.m. OK Scala TESTS 33 483 1228800 1400
49627140 limed B Feb. 8, 2019, 12:33 p.m. OK Scala TESTS 33 779 1433600 1400

remove filters

Back to search problems