Codeforces Round 485 (Div. 1)

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
986 Codeforces Round 485 (Div. 1) FINISHED False 7800 209917523 May 29, 2018, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 649 ) F Oppa Funcan Style Remastered PROGRAMMING graphs math number theory shortest paths 3200

B'Surely you have seen insane videos by South Korean rapper PSY, such as "Gangnam Style", "Gentleman" and "Daddy". You might also hear that PSY has been recording video "Oppa Funcan Style" two years ago (unfortunately we couldn 't find it on the internet). We will remind you what this hit looked like (you can find original description here): On the ground there are n platforms, which are numbered with integers from 1 to n , on i -th platform there is a dancer with number i . Further, every second all the dancers standing on the platform with number i jump to the platform with the number f(i) . The moving rule f is selected in advance and is not changed throughout the clip. The duration of the clip was k seconds and the rule f was chosen in such a way that after k seconds all dancers were in their initial positions (i.e. the i -th dancer stood on the platform with the number i ). That allowed to loop the clip and collect even more likes. PSY knows that enhanced versions of old artworks become more and more popular every day. So he decided to release a remastered-version of his video. In his case "enhanced version" means even more insanity, so the number of platforms can be up to 10^{18} ! But the video director said that if some dancer stays on the same platform all the time, then the viewer will get bored and will turn off the video immediately. Therefore, for all x from 1 to n f(x) neq x must hold. Big part of classic video 's success was in that looping, so in the remastered version all dancers should return to their initial positions in the end of the clip as well. PSY hasn 't decided on the exact number of platforms and video duration yet, so he asks you to check if there is a good rule f for different options. In the first line of input there is one integer t ( 1 <= t <= 10^{4} ) -- the number of options for n and k to check'...

Tutorials

Codeforces Round #485 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39798007 luogu_bot4 F June 30, 2018, 12:42 p.m. OK GNU C++ TESTS 29 529 16486400 3200
39737140 SXnoname F June 28, 2018, 8:40 a.m. OK GNU C++ TESTS 29 530 16486400 3200
41331116 mayaohua2003 F Aug. 8, 2018, 8:47 a.m. OK GNU C++ TESTS 29 608 1433600 3200
41331015 mayaohua2003 F Aug. 8, 2018, 8:44 a.m. OK GNU C++ TESTS 29 670 1433600 3200
39765989 Sacrifice F June 29, 2018, 11:05 a.m. OK GNU C++ TESTS 29 717 248012800 3200
39734303 ZhongJQ F June 28, 2018, 6:25 a.m. OK GNU C++ TESTS 29 733 169984000 3200
42276341 Even_Bao F Aug. 30, 2018, 11:45 a.m. OK GNU C++ TESTS 29 748 179200000 3200
41159948 vjudge5 F Aug. 3, 2018, 2:33 p.m. OK GNU C++ TESTS 29 748 180531200 3200
39260993 vjudge4 F June 15, 2018, 8:26 a.m. OK GNU C++ TESTS 29 780 41164800 3200
39729996 ilnil F June 28, 2018, 12:55 a.m. OK GNU C++ TESTS 29 780 93798400 3200
63050352 Kylin_ F Oct. 21, 2019, 1:48 a.m. OK GNU C++11 TESTS 29 108 104243200 3200
54800697 __23333 F May 29, 2019, 11:49 a.m. OK GNU C++11 TESTS 29 109 38604800 3200
51069961 luogu_bot4 F March 9, 2019, 7:21 a.m. OK GNU C++11 TESTS 29 124 4812800 3200
51068456 oiervictor F March 9, 2019, 6:49 a.m. OK GNU C++11 TESTS 29 124 4812800 3200
38803173 FizzyDavicl F May 31, 2018, 1:16 p.m. OK GNU C++11 TESTS 29 124 28876800 3200
38802767 FizzyDavicl F May 31, 2018, 1:02 p.m. OK GNU C++11 TESTS 29 124 28876800 3200
38939437 mr.Rosha F June 4, 2018, 9:03 a.m. OK GNU C++11 TESTS 29 124 47718400 3200
38881254 yfzcsc F June 2, 2018, 9:26 a.m. OK GNU C++11 TESTS 29 139 52531200 3200
38797118 ohweonfire F May 31, 2018, 10:03 a.m. OK GNU C++11 TESTS 29 140 47616000 3200
38789689 ACCE12138 F May 31, 2018, 4:19 a.m. OK GNU C++11 TESTS 29 140 47616000 3200
40932034 ReaLNero1 F July 30, 2018, 1:32 a.m. OK GNU C++14 TESTS 29 46 1843200 3200
38819758 2222 F June 1, 2018, 6:26 a.m. OK GNU C++14 TESTS 29 46 5222400 3200
38741619 MiFaFaOvO F May 29, 2018, 4:41 p.m. OK GNU C++14 TESTS 28 62 21401600 3200
50481786 black_horse2014 F Feb. 25, 2019, 9:23 a.m. OK GNU C++14 TESTS 29 109 25600000 3200
38774101 FallDream F May 30, 2018, 1:10 p.m. OK GNU C++14 TESTS 28 139 14028800 3200
58161499 Scut82 F Aug. 2, 2019, 7:35 a.m. OK GNU C++14 TESTS 29 140 2662400 3200
38773505 apiadu F May 30, 2018, 12:51 p.m. OK GNU C++14 TESTS 28 140 6041600 3200
38787652 FizzyDavid F May 31, 2018, 1:37 a.m. OK GNU C++14 TESTS 29 156 5017600 3200
38749997 1919810 F May 29, 2018, 5:40 p.m. OK GNU C++14 TESTS 28 187 4812800 3200
38808212 Marco_L_T F May 31, 2018, 4:27 p.m. OK GNU C++14 TESTS 29 234 4403200 3200
54871724 Zhang_RQ F May 31, 2019, 9:36 a.m. OK GNU C++17 TESTS 29 124 1536000 3200
54871684 Zhang_RQ F May 31, 2019, 9:35 a.m. OK GNU C++17 TESTS 29 139 1536000 3200
66603487 Martin53 F Dec. 10, 2019, 5:28 p.m. OK GNU C++17 TESTS 29 561 17715200 3200
48063485 Benq F Jan. 7, 2019, 4:44 p.m. OK GNU C++17 TESTS 29 686 57753600 3200
45311773 Jori F Nov. 5, 2018, 4:51 a.m. OK GNU C++17 TESTS 29 717 179404800 3200
39946884 Kelvzxu F July 4, 2018, 7:56 a.m. OK GNU C++17 TESTS 29 780 16896000 3200
38765558 Kelvzxu F May 30, 2018, 8:31 a.m. OK GNU C++17 TESTS 28 795 19968000 3200
39233707 anta F June 14, 2018, 7:02 a.m. OK GNU C++17 TESTS 29 795 134963200 3200
38808813 ErdemKirez F May 31, 2018, 4:52 p.m. OK GNU C++17 TESTS 29 842 32768000 3200
38808721 ErdemKirez F May 31, 2018, 4:48 p.m. OK GNU C++17 TESTS 29 842 32768000 3200
69503507 ngfam F Jan. 25, 2020, 7:32 a.m. OK Java 11 TESTS 29 2994 260300800 3200
67060262 dalt F Dec. 17, 2019, 8:45 a.m. OK Java 8 TESTS 29 623 40243200 3200
67059694 dalt F Dec. 17, 2019, 8:31 a.m. OK Java 8 TESTS 29 639 40243200 3200
67058219 dalt F Dec. 17, 2019, 7:55 a.m. OK Java 8 TESTS 29 795 40038400 3200
67057890 dalt F Dec. 17, 2019, 7:45 a.m. OK Java 8 TESTS 29 950 41676800 3200
67059608 dalt F Dec. 17, 2019, 8:29 a.m. OK Java 8 TESTS 29 1013 40243200 3200
38767480 Egor F May 30, 2018, 9:40 a.m. OK Java 8 TESTS 28 1045 52736000 3200
38997048 uwi F June 6, 2018, 2:16 p.m. OK Java 8 TESTS 29 1231 16896000 3200
67058851 dalt F Dec. 17, 2019, 8:11 a.m. OK Java 8 TESTS 29 1231 40345600 3200
42906067 tri F Sept. 16, 2018, 1:39 a.m. OK Java 8 TESTS 29 1403 54067200 3200
38872202 Suzukaze F June 2, 2018, 3:43 a.m. OK Java 8 TESTS 29 1715 267161600 3200
38776940 Los_Angelos_Laycurse F May 30, 2018, 2:43 p.m. OK MS C++ TESTS 28 670 266649600 3200
38776918 Los_Angelos_Laycurse F May 30, 2018, 2:42 p.m. OK MS C++ TESTS 28 685 266649600 3200
65307302 vjudge2 F Nov. 18, 2019, 3:22 p.m. OK MS C++ TESTS 29 2729 63488000 3200

remove filters

Back to search problems