Tinkoff Challenge - Final Round (Codeforces Round 414, rated, Div. 1 + Div. 2)

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
794 Tinkoff Challenge - Final Round (Codeforces Round 414, rated, Div. 1 + Div. 2) FINISHED False 7200 281737523 May 13, 2017, 9:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1020 ) E Choosing Carrot PROGRAMMING games math 2700

Oleg the bank client and Igor the analyst are arguing again. This time, they want to pick a gift as a present for their friend, ZS the coder. After a long thought, they decided that their friend loves to eat carrots the most and thus they want to pick the best carrot as their present. There are n carrots arranged in a line. The i -th carrot from the left has juiciness a i . Oleg thinks ZS loves juicy carrots whereas Igor thinks that he hates juicy carrots. Thus, Oleg would like to maximize the juiciness of the carrot they choose while Igor would like to minimize the juiciness of the carrot they choose. To settle this issue, they decided to play a game again. Oleg and Igor take turns to play the game. In each turn, a player can choose a carrot from either end of the line, and eat it. The game ends when only one carrot remains. Oleg moves first. The last remaining carrot will be the carrot that they will give their friend, ZS. Oleg is a sneaky bank client. When Igor goes to a restroom, he performs k moves before the start of the game. Each move is the same as above (eat a carrot from either end of the line). After Igor returns, they start the game with Oleg still going first. Oleg wonders: for each k such that 0 ≤ k ≤ n - 1 , what is the juiciness of the carrot they will give to ZS if he makes k extra moves beforehand and both players play optimally? The first line of input contains a single integer n ( 1 ≤ n ≤ 3·10 5 ) — the total number of carrots. The next line contains n space-separated integers a 1 , a 2 , ..., a n ( 1 ≤ a i ≤ 10 9 ). Here a i denotes the juiciness of the i -th carrot from the left of the line. Output n space-separated integers x 0 , x 1 , ..., x n - 1 . Here, x i denotes the juiciness of the carrot the friends will present to ZS if k = i . For the first example, When k = 0 , one possible optimal game is as follows: Oleg eats the carrot with juiciness 1 . Igor eats the carrot with juiciness 5 . Oleg eats the carrot with juiciness 2 . Th

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40981831 ReaLNero1 E July 30, 2018, 6:09 p.m. OK GNU C++ TESTS 64 61 2252800 2700
27119155 1919810 E May 15, 2017, 10:10 a.m. OK GNU C++ TESTS 64 62 2252800 2700
27090065 AkaneSasu E May 13, 2017, 1:19 p.m. OK GNU C++ TESTS 64 93 2252800 2700
27425176 cbhcbh E May 29, 2017, 7:46 a.m. OK GNU C++ TESTS 64 109 3584000 2700
27312513 xzyxzy E May 24, 2017, 1:48 a.m. OK GNU C++ TESTS 64 109 6451200 2700
33831306 goldgenius E Dec. 31, 2017, 12:20 p.m. OK GNU C++ TESTS 64 109 18124800 2700
38342209 Heaplax E May 17, 2018, 8:26 a.m. OK GNU C++ TESTS 64 124 1228800 2700
40969115 luogu_bot1 E July 30, 2018, 12:36 p.m. OK GNU C++ TESTS 64 124 3584000 2700
40938135 foreverlasting E July 30, 2018, 7:09 a.m. OK GNU C++ TESTS 64 124 4812800 2700
40973724 luogu_bot2 E July 30, 2018, 2:23 p.m. OK GNU C++ TESTS 64 124 5017600 2700
61897252 wyl__AC E Oct. 5, 2019, 7:35 a.m. OK GNU C++11 TESTS 64 62 3481600 2700
61746199 luogu_bot4 E Oct. 3, 2019, 12:34 a.m. OK GNU C++11 TESTS 64 62 4608000 2700
61901374 luogu_bot4 E Oct. 5, 2019, 8:40 a.m. OK GNU C++11 TESTS 64 62 4915200 2700
61785174 luogu_bot1 E Oct. 3, 2019, 2:16 p.m. OK GNU C++11 TESTS 64 62 4915200 2700
27087205 FizzyDavid E May 13, 2017, 11:34 a.m. OK GNU C++11 TESTS 64 62 6041600 2700
61786123 luogu_bot2 E Oct. 3, 2019, 2:29 p.m. OK GNU C++11 TESTS 64 77 4915200 2700
44434824 yasugongshang E Oct. 17, 2018, 9:26 a.m. OK GNU C++11 TESTS 64 78 3584000 2700
51603980 liuzhangfeiabc E March 21, 2019, 6:17 a.m. OK GNU C++11 TESTS 64 93 8089600 2700
66258917 dysyn1314 E Dec. 4, 2019, 7:29 a.m. OK GNU C++11 TESTS 64 109 1228800 2700
51602321 EthanZyh E March 21, 2019, 5:01 a.m. OK GNU C++11 TESTS 64 109 1228800 2700
29640865 whzzt E Aug. 21, 2017, 10:11 a.m. OK GNU C++14 TESTS 64 78 53964800 2700
54845068 ragnarosS E May 30, 2019, 1:28 p.m. OK GNU C++14 TESTS 64 108 4915200 2700
27116736 0w1 E May 15, 2017, 6:55 a.m. OK GNU C++14 TESTS 64 140 2457600 2700
27579456 qoo2p5 E June 5, 2017, 9:25 a.m. OK GNU C++14 TESTS 64 140 3584000 2700
27758735 Deanamic_Programming E June 13, 2017, 3:56 p.m. OK GNU C++14 TESTS 64 155 2355200 2700
27104202 xsup E May 14, 2017, 9:51 a.m. OK GNU C++14 TESTS 64 155 2355200 2700
66171576 ZZZZZZZZZZZZZZZZZZ E Dec. 2, 2019, 10:40 a.m. OK GNU C++14 TESTS 64 155 2457600 2700
27085134 riadwaw E May 13, 2017, 11:17 a.m. OK GNU C++14 TESTS 64 155 2457600 2700
27181630 ctr E May 17, 2017, 2:22 p.m. OK GNU C++14 TESTS 64 155 3584000 2700
27098797 zhengsai E May 14, 2017, 1:05 a.m. OK GNU C++14 TESTS 64 155 3584000 2700
54092625 Atreus E May 14, 2019, 11:35 a.m. OK GNU C++17 TESTS 64 155 2457600 2700
45054570 OMRailgun E Oct. 29, 2018, 12:11 p.m. OK GNU C++17 TESTS 64 155 2457600 2700
51733237 LOL_SAVER E March 22, 2019, 11:07 p.m. OK GNU C++17 TESTS 64 156 2457600 2700
50772763 hddp E March 4, 2019, 6:14 a.m. OK GNU C++17 TESTS 64 156 2457600 2700
45054667 OMRailgun E Oct. 29, 2018, 12:13 p.m. OK GNU C++17 TESTS 64 156 2662400 2700
44994742 RUSH_D_CAT E Oct. 28, 2018, 2:51 p.m. OK GNU C++17 TESTS 64 156 3891200 2700
38786958 Antoine E May 31, 2018, 12:15 a.m. OK GNU C++17 TESTS 64 156 5734400 2700
49029419 Rzepa E Jan. 26, 2019, 8:58 p.m. OK GNU C++17 TESTS 64 156 8294400 2700
65790685 DeadPillow E Nov. 26, 2019, 10:09 p.m. OK GNU C++17 TESTS 64 171 2457600 2700
55978448 ema E June 23, 2019, 7:04 p.m. OK GNU C++17 TESTS 64 171 2457600 2700
27084563 Lewin E May 13, 2017, 11:11 a.m. OK Java 8 TESTS 64 202 0 2700
27160548 hama-du E May 16, 2017, 1:24 p.m. OK Java 8 TESTS 64 202 17305600 2700
30895582 JShinjuro E Oct. 1, 2017, 12:49 a.m. OK Java 8 TESTS 64 218 17305600 2700
27667501 yuya178 E June 8, 2017, 9:13 a.m. OK Java 8 TESTS 64 249 13209600 2700
27080577 Petr E May 13, 2017, 10:32 a.m. OK Java 8 TESTS 64 264 13209600 2700
60741924 Suzukaze E Sept. 17, 2019, 8:50 p.m. OK Java 8 TESTS 64 280 105676800 2700
61466488 6aren E Sept. 29, 2019, 10:37 a.m. OK Java 8 TESTS 64 561 0 2700
27165151 camypaper E May 16, 2017, 4:37 p.m. OK MS C# TESTS 64 155 27545600 2700
27083682 chokudai E May 13, 2017, 11:02 a.m. OK MS C# TESTS 64 811 37580800 2700
27120871 RCG E May 15, 2017, 12:07 p.m. OK MS C++ TESTS 64 156 1228800 2700
27088019 Ilya_MSU E May 13, 2017, 12:04 p.m. OK MS C++ TESTS 64 468 3788800 2700
27089021 Rostislav_the_great E May 13, 2017, 12:37 p.m. OK MS C++ TESTS 64 764 24166400 2700

remove filters

Back to search problems