Technocup 2019 - Elimination 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
1030 Technocup 2019 - Elimination Round 1 FINISHED False 7200 194115299 Sept. 23, 2018, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 813 ) F Putting Boxes Together PROGRAMMING data structures 2600

B"There is an infinite line consisting of cells. There are n boxes in some cells of this line. The i -th box stands in the cell a_i and has weight w_i . All a_i are distinct, moreover, a_{i - 1} < a_i holds for all valid i . You would like to put together some boxes. Putting together boxes with indices in the segment [l, r] means that you will move some of them in such a way that their positions will form some segment [x, x + (r - l)] . In one step you can move any box to a neighboring cell if it isn't occupied by another box (i.e. you can choose i and change a_i by 1 , all positions should remain distinct). You spend w_i units of energy moving the box i by one cell. You can move any box any number of times, in arbitrary order. Sometimes weights of some boxes change, so you have queries of two types: Note that you should minimize the answer, not its remainder modulo 10^9 + 7 . So if you have two possible answers 2 cdot 10^9 + 13 and 2 cdot 10^9 + 14 , you should choose the first one and print 10^9 + 6 , even though the remainder of the second answer is 0 . The first line contains two integers n and q ( 1 <= n, q <= 2 cdot 10^5 ) -- the number of boxes and the number of queries. The second line contains n integers a_1, a_2, ... a_n ( 1 <= a_i <= 10^9 ) -- the positions of the boxes. All a_i are distinct, a_{i - 1} < a_i holds for all valid i . The third line contains n integers w_1, w_2, ... w_n ( 1 <= w_i <= 10^9 ) -- the initial weights of the boxes. Next q lines describe queries, one query per line. Each query is described in a single line, containing two integers x and y . If x < 0 , then this query is of the first type, where id = -x , nw = y ( 1 <= id <= n , 1 <= nw <= 10^9 ). If x > 0 , then the query is of the second "...

Tutorials

Сodeforces Round 512 (and Technocup — Elimination Round 1) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
54218069 time_interspace F May 16, 2019, 12:46 a.m. OK GNU C++11 TESTS 60 187 3993600 2600
54217363 time_interspace F May 15, 2019, 11:20 p.m. OK GNU C++11 TESTS 60 187 3993600 2600
54218005 time_interspace F May 16, 2019, 12:41 a.m. OK GNU C++11 TESTS 60 218 3993600 2600
46200468 Vixbob F Nov. 25, 2018, 11:02 a.m. OK GNU C++11 TESTS 60 249 3993600 2600
43394355 Hachiroku F Sept. 25, 2018, 4:05 a.m. OK GNU C++11 TESTS 60 264 4300800 2600
57868812 lopare F July 27, 2019, 11:40 p.m. OK GNU C++11 TESTS 60 296 3993600 2600
46529204 luogu_bot5 F Dec. 3, 2018, 3:04 a.m. OK GNU C++11 TESTS 60 311 4812800 2600
57737632 py_ultron F July 25, 2019, 10:26 a.m. OK GNU C++11 TESTS 60 327 3993600 2600
46528976 luogu_bot2 F Dec. 3, 2018, 2:44 a.m. OK GNU C++11 TESTS 60 327 6451200 2600
44066273 Minamoto F Oct. 10, 2018, 9:30 a.m. OK GNU C++11 TESTS 60 327 10649600 2600
44751744 ReaLNero1 F Oct. 23, 2018, 8:19 p.m. OK GNU C++14 TESTS 60 171 4812800 2600
57320570 Origenes F July 19, 2019, 9:49 a.m. OK GNU C++14 TESTS 60 373 4915200 2600
43356614 tmwilliamlin168 F Sept. 24, 2018, 6:43 a.m. OK GNU C++14 TESTS 60 498 6758400 2600
43441412 FuckerQu F Sept. 26, 2018, 9:15 a.m. OK GNU C++14 TESTS 60 499 11264000 2600
43441504 vjudge4 F Sept. 26, 2018, 9:19 a.m. OK GNU C++14 TESTS 60 514 11264000 2600
43551688 MeePwn F Sept. 29, 2018, 1:24 a.m. OK GNU C++14 TESTS 60 530 4812800 2600
43441330 FuckerQu F Sept. 26, 2018, 9:12 a.m. OK GNU C++14 TESTS 60 530 11264000 2600
43509370 pzdba F Sept. 27, 2018, 9:39 p.m. OK GNU C++14 TESTS 60 545 4812800 2600
44070046 Yaroslaff F Oct. 10, 2018, 11:18 a.m. OK GNU C++14 TESTS 60 545 6451200 2600
43498659 vjudge5 F Sept. 27, 2018, 4:02 p.m. OK GNU C++14 TESTS 60 561 6451200 2600
44477301 Icceey F Oct. 18, 2018, 9:40 a.m. OK GNU C++17 TESTS 60 358 6246400 2600
44375600 F0kus F Oct. 15, 2018, 9:11 p.m. OK GNU C++17 TESTS 60 390 4812800 2600
51827294 biaoge F March 25, 2019, 2:30 p.m. OK GNU C++17 TESTS 60 405 32051200 2600
61924394 professorik F Oct. 5, 2019, 2:10 p.m. OK GNU C++17 TESTS 60 436 4812800 2600
45200502 vjudge5 F Nov. 2, 2018, 9:39 a.m. OK GNU C++17 TESTS 60 452 6656000 2600
61555161 hjk1030 F Sept. 30, 2019, 1:48 p.m. OK GNU C++17 TESTS 60 467 3993600 2600
45200931 zy2000 F Nov. 2, 2018, 9:54 a.m. OK GNU C++17 TESTS 60 467 6656000 2600
43687409 HIT_TOM F Oct. 2, 2018, 12:55 p.m. OK GNU C++17 TESTS 60 498 6758400 2600
43422798 fedoseev.timofey F Sept. 25, 2018, 6:23 p.m. OK GNU C++17 TESTS 60 499 4812800 2600
62383707 vp-asp F Oct. 11, 2019, 8:14 p.m. OK GNU C++17 TESTS 60 514 9625600 2600
45564551 layersOf F Nov. 11, 2018, 1:37 p.m. OK Java 8 TESTS 60 1169 5017600 2600
43389364 sundown F Sept. 24, 2018, 11:15 p.m. OK Mono C# TESTS 60 2495 115404800 2600

remove filters

Back to search problems