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 |
---|---|---|---|---|---|---|
1609 | Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) | FINISHED | False | 9000 | 93713099 | Nov. 28, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 404 ) | G | A Stroll Around the Matrix | PROGRAMMING | data structures greedy math | 3000 |
B"William has two arrays of numbers a_1, a_2, ... , a_n and b_1, b_2, ... , b_m . The arrays satisfy the conditions of being convex. Formally an array c of length k is considered convex if c_i - c_{i - 1} < c_{i + 1} - c_i for all i from 2 to k - 1 and c_1 < c_2 . Throughout William's life he observed q changes of two types happening to the arrays: After each change a matrix d is created from arrays a and b , of size n x m , where d_{i, j}=a_i + b_j . William wants to get from cell ( 1, 1 ) to cell ( n, m ) of this matrix. From cell ( x, y ) he can only move to cells ( x + 1, y ) and ( x, y + 1 ). The length of a path is calculated as the sum of numbers in cells visited by William, including the first and the last cells. After each change William wants you to help find out the minimal length of the path he could take. The first line contains three integers n , m and q ( 2 <= n <= 100, 2 <= m <= 10^5 , 1 <= q <= 10^5 ), the sizes of the arrays and the number of changes. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^{12} ), the contents of array a . The third line contains m integers b_1, b_2, ... , b_m ( 1 <= b_i <= 10^{12} ), the contents of array b . Each of the next q lines contains three integers type , k and d ( 1 <= type <= 2 , if type = 1 , then 1 <= k <= n otherwise 1 <= k <= m , 1 <= d <= 10^3 ). After each change, output one integer, the minimum length of the path in the constructed matrix. "... |
Deltix Round, Autumn 2021. Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
137273198 | Potassium | G | Nov. 28, 2021, 6:17 p.m. | OK | GNU C++14 | TESTS | 56 | 1169 | 3993600 | 3000 | |
137265785 | MoRanSky | G | Nov. 28, 2021, 4:58 p.m. | OK | GNU C++14 | TESTS | 56 | 1591 | 5222400 | 3000 | |
137258429 | peehs_moorhsum | G | Nov. 28, 2021, 4:23 p.m. | OK | GNU C++14 | TESTS | 56 | 2058 | 22425600 | 3000 | |
137254535 | Radewoosh | G | Nov. 28, 2021, 4:07 p.m. | OK | GNU C++14 | TESTS | 56 | 2885 | 48435200 | 3000 | |
137262185 | Karry5307_AK_NOI2021 | G | Nov. 28, 2021, 4:41 p.m. | OK | GNU C++14 | TESTS | 56 | 3478 | 11264000 | 3000 | |
137263274 | emptyhope | G | Nov. 28, 2021, 4:46 p.m. | OK | GNU C++14 | TESTS | 56 | 5522 | 33689600 | 3000 | |
137288585 | ugly2333 | G | Nov. 29, 2021, 2:03 a.m. | OK | GNU C++14 | TESTS | 56 | 5865 | 16793600 | 3000 | |
137260806 | he_____hezhou | G | Nov. 28, 2021, 4:34 p.m. | OK | GNU C++17 | TESTS | 56 | 1279 | 2457600 | 3000 | |
137263379 | fivedemands | G | Nov. 28, 2021, 4:47 p.m. | OK | GNU C++17 | TESTS | 56 | 1465 | 2457600 | 3000 | |
137267203 | yzc2005 | G | Nov. 28, 2021, 5:03 p.m. | OK | GNU C++17 | TESTS | 56 | 2776 | 12083200 | 3000 | |
137264862 | AliShahali1382 | G | Nov. 28, 2021, 4:54 p.m. | OK | GNU C++17 | TESTS | 56 | 2885 | 8806400 | 3000 | |
137288193 | ButterCake | G | Nov. 29, 2021, 1:49 a.m. | OK | GNU C++17 | TESTS | 56 | 2886 | 11264000 | 3000 | |
137312389 | A_M--Unstoppable | G | Nov. 29, 2021, 5:48 a.m. | OK | GNU C++17 | TESTS | 56 | 3509 | 3584000 | 3000 | |
137287836 | rui-de | G | Nov. 29, 2021, 1:35 a.m. | OK | GNU C++17 | TESTS | 56 | 3868 | 21196800 | 3000 | |
137274295 | wifiiii | G | Nov. 28, 2021, 6:32 p.m. | OK | GNU C++17 | TESTS | 56 | 3931 | 9113600 | 3000 | |
137265416 | Ra16bit | G | Nov. 28, 2021, 4:56 p.m. | OK | GNU C++17 | TESTS | 56 | 4336 | 10444800 | 3000 | |
137272811 | SHZhang2 | G | Nov. 28, 2021, 6:11 p.m. | OK | GNU C++17 | TESTS | 56 | 5100 | 12185600 | 3000 | |
137283756 | errorgorn | G | Nov. 28, 2021, 10:23 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 779 | 3174400 | 3000 | |
137256905 | maroonrk | G | Nov. 28, 2021, 4:17 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 904 | 4915200 | 3000 | |
137267514 | basic_string | G | Nov. 28, 2021, 5:04 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 1091 | 3174400 | 3000 | |
137259638 | zh0ukangyang | G | Nov. 28, 2021, 4:29 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 1153 | 63078400 | 3000 | |
137285970 | Alan233 | G | Nov. 29, 2021, 12:03 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 1216 | 4812800 | 3000 | |
137288157 | He_Ren | G | Nov. 29, 2021, 1:48 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 1388 | 3993600 | 3000 | |
137268925 | sjimed | G | Nov. 28, 2021, 5:32 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 2105 | 10444800 | 3000 | |
137289036 | Laurie | G | Nov. 29, 2021, 2:21 a.m. | OK | GNU C++17 (64) | TESTS | 56 | 2527 | 3993600 | 3000 | |
137269139 | froggyzhang | G | Nov. 28, 2021, 5:32 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 2558 | 14438400 | 3000 | |
137263614 | ainta | G | Nov. 28, 2021, 4:48 p.m. | OK | GNU C++17 (64) | TESTS | 56 | 2683 | 4096000 | 3000 | |
137273844 | Krolo7 | G | Nov. 28, 2021, 6:26 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 1201 | 3174400 | 3000 | |
137300530 | BalintR | G | Nov. 29, 2021, 4:46 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 1309 | 2457600 | 3000 | |
137259792 | ko_osaga | G | Nov. 28, 2021, 4:29 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 1310 | 4198400 | 3000 | |
137262883 | Parsa84 | G | Nov. 28, 2021, 4:44 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 1482 | 7372800 | 3000 | |
137310417 | BalintR | G | Nov. 29, 2021, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 1560 | 2457600 | 3000 | |
137310897 | BalintR | G | Nov. 29, 2021, 5:21 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 1590 | 2457600 | 3000 | |
137310554 | BalintR | G | Nov. 29, 2021, 5:15 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 1606 | 2457600 | 3000 | |
137258174 | xtqqwq | G | Nov. 28, 2021, 4:22 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 1996 | 8396800 | 3000 | |
137273589 | Ormlis | G | Nov. 28, 2021, 6:22 p.m. | OK | GNU C++20 (64) | TESTS | 56 | 2137 | 9011200 | 3000 | |
137290297 | wygzgyw | G | Nov. 29, 2021, 3:01 a.m. | OK | GNU C++20 (64) | TESTS | 56 | 2293 | 12800000 | 3000 | |
137283701 | sansen | G | Nov. 28, 2021, 10:21 p.m. | OK | Rust 2021 | TESTS | 56 | 3619 | 22220800 | 3000 |
Back to search problems