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 |
---|---|---|---|---|---|---|
1942 | CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) | FINISHED | False | 10800 | 25370663 | March 30, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 719 ) | F | Farmer John's Favorite Function | PROGRAMMING | data structures |
B'Farmer John has an array a of length n . He also has a function f with the following recurrence: Note that f(i) is not necessarily an integer. He plans to do q updates to the array. Each update, he gives you two integers k and x and he wants you to set a_k = x . After each update, he wants to know lfloor f(n) rfloor , where lfloor t rfloor denotes the value of t rounded down to the nearest integer. The first line contains n and q ( 1 <= q n, q <= q 2 cdot 10^5 ), the length of a and the number of updates he will perform. The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 10^{18} ). The next q lines each contain two integers k and x ( 1 <= q k <= q n , 0 <= q x <= q 10^{18} ), the index of the update and the element he will replace a_k with. For each update, output an integer, lfloor f(n) rfloor , on a new line. In the first test case, the array after the first update is [4, 14, 0, 7, 6] . The values of f are: Since lfloor f(5) rfloor = 3 , we output 3 . The array after the second update is [3, 14, 0, 7, 6] . The values of f , rounded to 6 decimal places, are: Since lfloor f(5) rfloor = 2 , we output 2 . '... |
CodeTON Round 8 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
254195376 | qwef_ | F | March 30, 2024, 5:27 p.m. | OK | C++14 (GCC 6-32) | TESTS | 30 | 1387 | 29593600 | ||
254193584 | crazy_sea | F | March 30, 2024, 5:21 p.m. | OK | C++14 (GCC 6-32) | TESTS | 30 | 1933 | 22630400 | ||
254190348 | cfhj | F | March 30, 2024, 5:11 p.m. | OK | C++14 (GCC 6-32) | TESTS | 30 | 3493 | 7987200 | ||
254232487 | ACOIer | F | March 31, 2024, 1:39 a.m. | OK | C++14 (GCC 6-32) | TESTS | 31 | 4149 | 5632000 | ||
254193264 | xzc0920 | F | March 30, 2024, 5:20 p.m. | OK | C++14 (GCC 6-32) | TESTS | 30 | 4211 | 6451200 | ||
254203733 | Marco_L_T | F | March 30, 2024, 6:34 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 312 | 3481600 | ||
254245714 | trytestfail | F | March 31, 2024, 5:11 a.m. | OK | C++17 (GCC 7-32) | TESTS | 31 | 421 | 4812800 | ||
254203408 | gamegame | F | March 30, 2024, 6:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 451 | 4915200 | ||
254195754 | A_zjzj | F | March 30, 2024, 5:28 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 545 | 25702400 | ||
254195880 | i_will_be_less_than_blue | F | March 30, 2024, 5:28 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 670 | 5324800 | ||
254192418 | Enchom | F | March 30, 2024, 5:17 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 701 | 13312000 | ||
254190146 | KevinWan | F | March 30, 2024, 5:10 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 904 | 147456000 | ||
254187333 | Ormlis | F | March 30, 2024, 5 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 920 | 17920000 | ||
254213984 | bobbilyking | F | March 30, 2024, 8:10 p.m. | OK | C++17 (GCC 7-32) | TESTS | 31 | 1029 | 48435200 | ||
254203106 | Potassium | F | March 30, 2024, 6:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 30 | 1138 | 3379200 | ||
254242477 | JCY_ | F | March 31, 2024, 4:28 a.m. | OK | C++20 (GCC 13-64) | TESTS | 31 | 171 | 14438400 | ||
254224154 | SuperJ6 | F | March 30, 2024, 10:34 p.m. | OK | C++20 (GCC 13-64) | TESTS | 31 | 202 | 1945600 | ||
254202917 | MridulAhi | F | March 30, 2024, 6:29 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 217 | 12083200 | ||
254185245 | SanguineChameleon | F | March 30, 2024, 4:54 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 265 | 4198400 | ||
254188338 | PinkieRabbit | F | March 30, 2024, 5:04 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 280 | 14233600 | ||
254196808 | Brovko | F | March 30, 2024, 5:31 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 281 | 25702400 | ||
254189927 | Kapt | F | March 30, 2024, 5:09 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 311 | 1638400 | ||
254186658 | 5ab | F | March 30, 2024, 4:58 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 312 | 18432000 | ||
254185921 | Golovanov399 | F | March 30, 2024, 4:56 p.m. | OK | C++20 (GCC 13-64) | TESTS | 30 | 343 | 1843200 | ||
254243070 | Matutino | F | March 31, 2024, 4:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 31 | 358 | 15872000 | ||
254192516 | Tlatoani | F | March 30, 2024, 5:18 p.m. | OK | Kotlin 1.9 | TESTS | 30 | 3774 | 25804800 |
Back to search problems