Codeforces Round 709 (Div. 1, based on Technocup 2021 Final Round)

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
1483 Codeforces Round 709 (Div. 1, based on Technocup 2021 Final Round) FINISHED False 8100 115490399 March 21, 2021, 1:20 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1353 ) B Playlist PROGRAMMING data structures ds implementation two pointers

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
110745017 luogu_bot3 B March 22, 2021, 2:36 p.m. OK GNU C++11 TESTS 26 46 2560000
110657078 clfzs B March 21, 2021, 2:49 p.m. OK GNU C++11 TESTS 26 46 2560000
110643352 cutekibry B March 21, 2021, 2:05 p.m. OK GNU C++11 TESTS 26 46 4812800
110663734 hzy9819 B March 21, 2021, 3:12 p.m. OK GNU C++11 TESTS 26 46 4915200
110647684 ClCN B March 21, 2021, 2:19 p.m. OK GNU C++11 TESTS 26 46 5324800
110642865 2018LZY B March 21, 2021, 2:03 p.m. OK GNU C++11 TESTS 26 46 7475200
110646681 zhylj B March 21, 2021, 2:16 p.m. OK GNU C++11 TESTS 26 46 11161600
110647495 Young.FQ B March 21, 2021, 2:18 p.m. OK GNU C++11 TESTS 26 46 17305600
110738059 vectorwyx B March 22, 2021, 1:15 p.m. OK GNU C++11 TESTS 26 46 28057600
110644384 WinterSpell B March 21, 2021, 2:08 p.m. OK GNU C++11 TESTS 26 61 2252800
110644208 Daniel_yuan B March 21, 2021, 2:08 p.m. OK GNU C++14 TESTS 26 46 5222400
110661523 Kwords B March 21, 2021, 3:04 p.m. OK GNU C++14 TESTS 26 62 2867200
110638654 _LNHTD_ B March 21, 2021, 1:49 p.m. OK GNU C++14 TESTS 26 62 2867200
110648719 tkxkd B March 21, 2021, 2:22 p.m. OK GNU C++14 TESTS 26 62 3072000
110641656 farmerboy B March 21, 2021, 2 p.m. OK GNU C++14 TESTS 26 62 3276800
110644445 qjatn0120 B March 21, 2021, 2:09 p.m. OK GNU C++14 TESTS 26 62 4608000
110651544 shb B March 21, 2021, 2:31 p.m. OK GNU C++14 TESTS 26 62 5939200
110634992 ccf_n0i B March 21, 2021, 1:36 p.m. OK GNU C++14 TESTS 26 77 2457600
110651945 antguz B March 21, 2021, 2:32 p.m. OK GNU C++14 TESTS 26 77 2560000
110777775 1470519347 B March 23, 2021, 2:46 a.m. OK GNU C++14 TESTS 26 77 2662400
110695044 windy7926778 B March 22, 2021, 3:26 a.m. OK GNU C++17 TESTS 26 61 5529600
110771770 Zzif B March 22, 2021, 9:45 p.m. OK GNU C++17 TESTS 26 62 1843200
110654869 Flower_On_Stone B March 21, 2021, 2:41 p.m. OK GNU C++17 TESTS 26 62 2150400
110711769 HMAXS B March 22, 2021, 8:13 a.m. OK GNU C++17 TESTS 26 62 2252800
110663946 ooaa B March 21, 2021, 3:13 p.m. OK GNU C++17 TESTS 26 62 2560000
110654881 AlanSkarica B March 21, 2021, 2:41 p.m. OK GNU C++17 TESTS 26 62 2867200
110747098 WHUWKL B March 22, 2021, 3 p.m. OK GNU C++17 TESTS 26 62 3174400
110644118 xmt B March 21, 2021, 2:07 p.m. OK GNU C++17 TESTS 26 62 3276800
110659154 cs142857 B March 21, 2021, 2:55 p.m. OK GNU C++17 TESTS 26 62 3481600
110648446 WNG B March 21, 2021, 2:21 p.m. OK GNU C++17 TESTS 26 62 3481600
110636496 stevenkplus B March 21, 2021, 1:42 p.m. OK GNU C++17 (64) TESTS 26 46 2355200
110672597 RCG B March 21, 2021, 4:48 p.m. OK GNU C++17 (64) TESTS 26 46 3072000
110633516 never_giveup B March 21, 2021, 1:32 p.m. OK GNU C++17 (64) TESTS 26 46 3174400
110692646 George1123 B March 22, 2021, 2:07 a.m. OK GNU C++17 (64) TESTS 26 61 2662400
110648006 Robin B March 21, 2021, 2:20 p.m. OK GNU C++17 (64) TESTS 26 61 2867200
110691630 ffao B March 22, 2021, 1:22 a.m. OK GNU C++17 (64) TESTS 26 62 2355200
110691625 Sana B March 22, 2021, 1:21 a.m. OK GNU C++17 (64) TESTS 26 62 2355200
110761649 Ronnie007 B March 22, 2021, 6:09 p.m. OK GNU C++17 (64) TESTS 26 62 2560000
110691916 orzdevinwang B March 22, 2021, 1:35 a.m. OK GNU C++17 (64) TESTS 26 62 2560000
110638706 orzdevinwang B March 21, 2021, 1:50 p.m. OK GNU C++17 (64) TESTS 26 62 2560000
110735204 0x3F B March 22, 2021, 12:44 p.m. OK Go TESTS 26 140 6144000
110734001 0x3F B March 22, 2021, 12:31 p.m. OK Go TESTS 26 171 10752000
110636670 uwi B March 21, 2021, 1:42 p.m. OK Java 11 TESTS 26 249 0
110645516 Apfeloxid B March 21, 2021, 2:12 p.m. OK Java 11 TESTS 26 296 2764800
110644719 mikit B March 21, 2021, 2:10 p.m. OK Java 11 TESTS 26 296 3788800
110641608 Discombobulated B March 21, 2021, 1:59 p.m. OK Java 11 TESTS 26 327 5939200
110637718 fetetriste B March 21, 2021, 1:46 p.m. OK Java 11 TESTS 26 343 2048000
110770136 reennn B March 22, 2021, 8:53 p.m. OK Java 11 TESTS 26 343 7475200
110673575 its_aks_ulure B March 21, 2021, 5:01 p.m. OK Java 11 TESTS 26 390 7065600
110642728 Justyo B March 21, 2021, 2:03 p.m. OK Java 11 TESTS 26 498 17203200
110642579 dalt B March 21, 2021, 2:03 p.m. OK Java 8 TESTS 26 217 0
110640372 awesomelemonade B March 21, 2021, 1:55 p.m. OK Java 8 TESTS 26 233 2969600
110757389 2020akadaver B March 22, 2021, 5:08 p.m. OK Java 8 TESTS 26 265 6656000
110770005 reennn B March 22, 2021, 8:49 p.m. OK Java 8 TESTS 26 280 7270400
110653942 shilov B March 21, 2021, 2:38 p.m. OK Java 8 TESTS 26 311 8601600
110648183 hu_tao B March 21, 2021, 2:20 p.m. OK Java 8 TESTS 26 389 6963200
110638336 Tlatoani B March 21, 2021, 1:48 p.m. OK Kotlin TESTS 26 311 6348800
110644015 arvindf232 B March 21, 2021, 2:07 p.m. OK Kotlin TESTS 26 405 14336000
110640458 r57shell B March 21, 2021, 1:56 p.m. OK MS C++ TESTS 26 124 5632000
110733237 CrashMaster B March 22, 2021, 12:22 p.m. OK MS C++ 2017 TESTS 26 218 6963200
110754063 Friska B March 22, 2021, 4:24 p.m. OK MS C++ 2017 TESTS 26 233 27136000
110737760 tennisru B March 22, 2021, 1:12 p.m. OK Node.js TESTS 26 1263 18432000
110751489 oadey89 B March 22, 2021, 3:51 p.m. OK PyPy 3 TESTS 26 249 13721600
110751798 oadey89 B March 22, 2021, 3:55 p.m. OK PyPy 3 TESTS 26 249 13824000
110751404 oadey89 B March 22, 2021, 3:50 p.m. OK PyPy 3 TESTS 26 264 12902400
110751877 oadey89 B March 22, 2021, 3:56 p.m. OK PyPy 3 TESTS 26 264 13926400
110751753 oadey89 B March 22, 2021, 3:54 p.m. OK PyPy 3 TESTS 26 280 13414400
110751948 oadey89 B March 22, 2021, 3:57 p.m. OK PyPy 3 TESTS 26 296 13107200
110749739 oadey89 B March 22, 2021, 3:31 p.m. OK PyPy 3 TESTS 26 296 15564800
110690053 Bungmint B March 22, 2021, 12:09 a.m. OK PyPy 3 TESTS 26 327 15257600
110709751 not_tehlka B March 22, 2021, 7:45 a.m. OK PyPy 3 TESTS 26 654 12492800
110660066 at_f B March 21, 2021, 2:59 p.m. OK PyPy 3 TESTS 26 670 17510400
110675686 sansen B March 21, 2021, 5:32 p.m. OK Rust TESTS 26 46 11980800
110640008 sansen B March 21, 2021, 1:54 p.m. OK Rust TESTS 26 61 6860800
110641724 toomer B March 21, 2021, 2 p.m. OK Rust TESTS 26 93 4608000
110644481 hiratai B March 21, 2021, 2:09 p.m. OK Rust TESTS 26 171 5836800

remove filters

Back to search problems