Технокубок 2021 - Финал

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
1482 Технокубок 2021 - Финал FINISHED False 10800 120857963 March 21, 2021, 10:20 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3914 ) D Playlist PROGRAMMING data structures ds implementation

B"Arkady has a playlist that initially consists of n songs, numerated from 1 to n in the order they appear in the playlist. Arkady starts listening to the songs in the playlist one by one, starting from song 1 . The playlist is cycled, i. e. after listening to the last song, Arkady will continue listening from the beginning. Each song has a genre a_i , which is a positive integer. Let Arkady finish listening to a song with genre y , and the genre of the next-to-last listened song be x . If operatorname{gcd}(x, y) = 1 , he deletes the last listened song (with genre y ) from the playlist. After that he continues listening normally, skipping the deleted songs, and forgetting about songs he listened to before. In other words, after he deletes a song, he can't delete the next song immediately. Here operatorname{gcd}(x, y) denotes the greatest common divisor (GCD) of integers x and y . For example, if the initial songs' genres were [5, 9, 2, 10, 15] , then the playlist is converted as follows: [5, 9, 2, 10, 15] to [5, 9, 2, 10, 15] to [5, 2, 10, 15] (because operatorname{gcd}(5, 9) = 1 ) to [5, 2, 10, 15] to [5, 2, 10, 15] to [5, 2, 10, 15] to [5, 2, 10, 15] to [5, 2, 10, 15] to [5, 10, 15] (because operatorname{gcd}(5, 2) = 1 ) to [5, 10, 15] to [5, 10, 15] to ... The bold numbers represent the two last played songs. Note that after a song is deleted, Arkady forgets that he listened to that and the previous songs. Given the initial playlist, please determine which songs are eventually deleted and the order these songs are deleted. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10 ,000 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) -- the number of so"...

Tutorials

Technocup 2021: Final Round and Codeforces Round #709 — tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
110612509 Enkognit D March 21, 2021, 11:17 a.m. OK GNU C++11 TESTS 26 139 4505600
110616157 stanislau D March 21, 2021, 11:51 a.m. OK GNU C++11 TESTS 26 202 7987200
110728338 igorwwylson D March 22, 2021, 11:32 a.m. OK GNU C++11 TESTS 26 296 7577600
110624059 01eg D March 21, 2021, 1:08 p.m. OK GNU C++11 TESTS 26 327 3686400
110616807 YanikusGG D March 21, 2021, 11:57 a.m. OK GNU C++14 TESTS 26 77 2662400
110690573 CWHer D March 22, 2021, 12:35 a.m. OK GNU C++14 TESTS 26 77 2867200
110625047 ZuZKho D March 21, 2021, 1:16 p.m. OK GNU C++14 TESTS 26 78 2252800
110691263 Kayaking D March 22, 2021, 1:07 a.m. OK GNU C++14 TESTS 26 78 5529600
110613842 All1gator D March 21, 2021, 11:30 a.m. OK GNU C++14 TESTS 26 93 2867200
110624420 baby_tape D March 21, 2021, 1:11 p.m. OK GNU C++14 TESTS 26 93 5939200
110620505 Manaeff.Ivan D March 21, 2021, 12:34 p.m. OK GNU C++14 TESTS 26 93 6451200
110616909 p3rfect D March 21, 2021, 11:58 a.m. OK GNU C++14 TESTS 26 93 6553600
110625576 KblP_COCN4KA D March 21, 2021, 1:19 p.m. OK GNU C++14 TESTS 26 93 7372800
110615960 ArtNext D March 21, 2021, 11:49 a.m. OK GNU C++14 TESTS 26 108 6758400
110622486 _Jeweler D March 21, 2021, 12:54 p.m. OK GNU C++17 TESTS 26 62 2150400
110616613 GolubevVA D March 21, 2021, 11:55 a.m. OK GNU C++17 TESTS 26 62 2867200
110616853 hackerito D March 21, 2021, 11:58 a.m. OK GNU C++17 TESTS 26 62 3276800
110678124 ilyaleshchik D March 21, 2021, 6:07 p.m. OK GNU C++17 TESTS 26 62 3481600
110617879 43V3R D March 21, 2021, 12:08 p.m. OK GNU C++17 TESTS 26 77 2150400
110612994 Aris_244_ D March 21, 2021, 11:21 a.m. OK GNU C++17 TESTS 26 77 2252800
110612092 Karabutsa D March 21, 2021, 11:13 a.m. OK GNU C++17 TESTS 26 77 2252800
110620259 AlmadelX D March 21, 2021, 12:32 p.m. OK GNU C++17 TESTS 26 77 2457600
110613509 Alexander_Kozhevnikov D March 21, 2021, 11:26 a.m. OK GNU C++17 TESTS 26 77 2457600
110612780 alegsandyr D March 21, 2021, 11:19 a.m. OK GNU C++17 TESTS 26 77 2457600
110612541 UncleSema D March 21, 2021, 11:17 a.m. OK GNU C++17 (64) TESTS 26 61 2252800
110619382 gendenir D March 21, 2021, 12:23 p.m. OK GNU C++17 (64) TESTS 26 61 2355200
110614441 AstolfoKawaii D March 21, 2021, 11:35 a.m. OK GNU C++17 (64) TESTS 26 61 5427200
110612609 Snoudin D March 21, 2021, 11:18 a.m. OK GNU C++17 (64) TESTS 26 62 2355200
110614800 minmise D March 21, 2021, 11:38 a.m. OK GNU C++17 (64) TESTS 26 62 2764800
110613095 Vladikus004 D March 21, 2021, 11:22 a.m. OK GNU C++17 (64) TESTS 26 62 3276800
110620680 Tikhon228 D March 21, 2021, 12:36 p.m. OK GNU C++17 (64) TESTS 26 62 3584000
110610123 antony191 D March 21, 2021, 10:56 a.m. OK GNU C++17 (64) TESTS 26 62 7577600
110618909 ReTlaCe D March 21, 2021, 12:18 p.m. OK GNU C++17 (64) TESTS 26 77 2764800
110617361 kirdmivus D March 21, 2021, 12:03 p.m. OK GNU C++17 (64) TESTS 26 77 2764800
110736618 0x3F D March 22, 2021, 12:59 p.m. OK Go TESTS 26 140 6144000
110738336 0x3F D March 22, 2021, 1:19 p.m. OK Go TESTS 26 155 6144000
110690804 4mda4mda D March 22, 2021, 12:47 a.m. OK Java 8 TESTS 26 187 1843200
110615624 egordunaev D March 21, 2021, 11:46 a.m. OK MS C++ 2017 TESTS 26 202 2764800
110621532 a.stepanov281005 D March 21, 2021, 12:44 p.m. OK MS C++ 2017 TESTS 26 202 6348800
110620524 NewLul D March 21, 2021, 12:34 p.m. OK MS C++ 2017 TESTS 26 249 6758400
110619363 teoretik D March 21, 2021, 12:23 p.m. OK MS C++ 2017 TESTS 26 249 8499200
110623689 _TheLostDesu_ D March 21, 2021, 1:05 p.m. OK MS C++ 2017 TESTS 26 265 7270400
110754816 oadey89 D March 22, 2021, 4:34 p.m. OK PyPy 3 TESTS 26 296 13107200
110621583 asvasil D March 21, 2021, 12:45 p.m. OK PyPy 3 TESTS 26 546 17408000
110742045 jimm89 D March 22, 2021, 2:01 p.m. OK PyPy 3 TESTS 26 608 14131200
110723424 aberent D March 22, 2021, 10:37 a.m. OK PyPy 3 TESTS 26 872 13209600

remove filters

Back to search problems