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 |
|---|---|---|---|---|---|---|
| 1621 | Hello 2022 | FINISHED | False | 8100 | 135271484 | Jan. 3, 2022, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 144 ) | I | Two Sequences | PROGRAMMING | data structures hashing string suffix structures |
Consider an array of integers (C = c_1, c_2, \ldots, c_n) of length (n). Let's build the sequence of arrays (D_0, D_1, D_2, \ldots, D_{n}) of length (n+1) in the following way: The first element of this sequence will be equals (C): (D_0 = C). For each (1 \leq i \leq n) array (D_i) will be constructed from (D_{i-1}) in the following way: Let's find the lexicographically smallest subarray of (D_{i-1}) of length (i). Then, the first (n-i) elements of (D_i) will be equals to the corresponding (n-i) elements of array (D_{i-1}) and the last (i) elements of (D_i) will be equals to the corresponding elements of the found subarray of length (i). Let's find the lexicographically smallest subarray of (D_{i-1}) of length (i). Then, the first (n-i) elements of (D_i) will be equals to the corresponding (n-i) elements of array (D_{i-1}) and the last (i) elements of (D_i) will be equals to the corresponding elements of the found subarray of length (i). Array (x) is subarray of array (y), if (x) can be obtained by deletion of several (possibly, zero or all) elements from the beginning of (y) and several (possibly, zero or all) elements from the end of (y). For array (C) let's denote array (D_n) as (op(C)). Alice has an array of integers (A = a_1, a_2, \ldots, a_n) of length (n). She will build the sequence of arrays (B_0, B_1, \ldots, B_n) of length (n+1) in the following way: The first element of this sequence will be equals (A): (B_0 = A). For each (1 \leq i \leq n) array (B_i) will be equals (op(B_{i-1})), where (op) is the transformation described above. She will ask you (q) queries about elements of sequence of arrays (B_0, B_1, \ldots, B_n). Each query consists of two integers (i) and (j), and the answer to this query is the value of the (j)-th element of array $$$B_ |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 141598337 | HideOneMan2002 | I | Jan. 4, 2022, 3:35 a.m. | OK | GNU C++17 | TESTS | 102 | 2479 | 21299200 | ||
| 141589029 | ayushman228 | I | Jan. 3, 2022, 9:51 p.m. | OK | GNU C++17 | TESTS | 102 | 4055 | 39014400 | ||
| 141588556 | Ahmedhossam11 | I | Jan. 3, 2022, 9:36 p.m. | OK | GNU C++17 | TESTS | 102 | 4055 | 39014400 | ||
| 141588291 | IgorI | I | Jan. 3, 2022, 9:28 p.m. | OK | GNU C++17 | TESTS | 102 | 4055 | 39014400 | ||
| 141597695 | ecnerwala | I | Jan. 4, 2022, 3:20 a.m. | OK | GNU C++17 (64) | TESTS | 102 | 421 | 4812800 | ||
| 141592705 | Benq | I | Jan. 4, 2022, 12:34 a.m. | OK | GNU C++17 (64) | TESTS | 102 | 1824 | 24166400 | ||
| 141591323 | Benq | I | Jan. 3, 2022, 11:26 p.m. | OK | GNU C++17 (64) | TESTS | 102 | 2901 | 25600000 | ||
| 141591259 | Benq | I | Jan. 3, 2022, 11:23 p.m. | OK | GNU C++17 (64) | TESTS | 102 | 4414 | 25600000 | ||
| 141591196 | Benq | I | Jan. 3, 2022, 11:20 p.m. | OK | GNU C++17 (64) | TESTS | 102 | 4460 | 27033600 |
Back to search problems