Codeforces Round 651 (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
1370 Codeforces Round 651 (Div. 2) FINISHED False 8100 144602663 June 20, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25051 ) C Number Game PROGRAMMING games math number theory

B'Ashishgup and FastestFinger play a game. They start with a number n and play in turns. In each turn, a player can make any one of the following moves: Divisors of a number include the number itself. The player who is unable to make a move loses the game. Ashishgup moves first. Determine the winner of the game if both of them play optimally. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The description of the test cases follows. The only line of each test case contains a single integer -- n ( 1 <= q n <= q 10^9 ). For each test case, print "Ashishgup" if he wins, and "FastestFinger" otherwise (without quotes). In the first test case, n = 1 , Ashishgup cannot make a move. He loses. In the second test case, n = 2 , Ashishgup subtracts 1 on the first move. Now n = 1 , FastestFinger cannot make a move, so he loses. In the third test case, n = 3 , Ashishgup divides by 3 on the first move. Now n = 1 , FastestFinger cannot make a move, so he loses. In the last test case, n = 12 , Ashishgup divides it by 3 . Now n = 4 , FastestFinger is forced to subtract 1 , and Ashishgup gets 3 , so he wins by dividing it by 3 . '...

Tutorials

Editorial — Codeforces Round #651

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
84493635 Gassa C June 20, 2020, 4:12 p.m. OK D TESTS 51 31 0
84496022 ruban C June 20, 2020, 4:17 p.m. OK Delphi TESTS 51 46 21196800
84484077 PAG C June 20, 2020, 3:54 p.m. OK FPC TESTS 51 31 0
84478091 madv809 C June 20, 2020, 3:43 p.m. OK FPC TESTS 51 31 0
84521047 nikm C June 20, 2020, 6:44 p.m. OK GNU C11 TESTS 51 31 0
84526220 calrare C June 20, 2020, 7:47 p.m. OK GNU C11 TESTS 51 31 0
84528346 calrare C June 20, 2020, 8:18 p.m. OK GNU C11 TESTS 51 31 0
84484267 5HaR1ar_The_N00b C June 20, 2020, 3:54 p.m. OK GNU C11 TESTS 51 31 0
84487029 rainboy C June 20, 2020, 3:59 p.m. OK GNU C11 TESTS 51 31 0
84494667 toeveryone C June 20, 2020, 4:14 p.m. OK GNU C11 TESTS 51 31 0
84498858 Zero_to_Zero C June 20, 2020, 4:23 p.m. OK GNU C11 TESTS 51 31 0
84479669 ano_nymous C June 20, 2020, 3:46 p.m. OK GNU C11 TESTS 51 31 204800
84517927 egor.anisevich C June 20, 2020, 6:18 p.m. OK GNU C11 TESTS 51 31 204800
84497185 shubhamar C June 20, 2020, 4:19 p.m. OK GNU C11 TESTS 51 46 0
84541907 lin_rany C June 21, 2020, 2:50 a.m. OK GNU C++11 TESTS 51 30 0
84509143 sean7391 C June 20, 2020, 4:44 p.m. OK GNU C++11 TESTS 51 30 0
84503253 TOMforces C June 20, 2020, 4:32 p.m. OK GNU C++11 TESTS 51 30 102400
84543523 bobby285271 C June 21, 2020, 3:29 a.m. OK GNU C++11 TESTS 51 31 0
84543474 hawk_eye29 C June 21, 2020, 3:28 a.m. OK GNU C++11 TESTS 51 31 0
84543447 2019030007547 C June 21, 2020, 3:27 a.m. OK GNU C++11 TESTS 51 31 0
84543374 xwn C June 21, 2020, 3:25 a.m. OK GNU C++11 TESTS 51 31 0
84543245 huanggs C June 21, 2020, 3:22 a.m. OK GNU C++11 TESTS 51 31 0
84543210 z-bb C June 21, 2020, 3:22 a.m. OK GNU C++11 TESTS 51 31 0
84542800 KhandokerEbrahim C June 21, 2020, 3:13 a.m. OK GNU C++11 TESTS 51 31 0
84542356 szfck C June 21, 2020, 3:02 a.m. OK GNU C++14 TESTS 51 31 0
84542469 Mestu C June 21, 2020, 3:05 a.m. OK GNU C++14 TESTS 51 31 0
84544178 duock28cbg C June 21, 2020, 3:43 a.m. OK GNU C++14 TESTS 51 31 0
84544328 Naveen_1729 C June 21, 2020, 3:46 a.m. OK GNU C++14 TESTS 51 31 0
84544514 O7Oo7oO7O C June 21, 2020, 3:51 a.m. OK GNU C++14 TESTS 51 31 0
84544518 Hidden_18 C June 21, 2020, 3:51 a.m. OK GNU C++14 TESTS 51 31 0
84544544 qeraT_niddU_habsiM C June 21, 2020, 3:51 a.m. OK GNU C++14 TESTS 51 31 0
84540765 rum3r C June 21, 2020, 2:17 a.m. OK GNU C++14 TESTS 51 31 0
84541998 inrtousd C June 21, 2020, 2:52 a.m. OK GNU C++14 TESTS 51 31 0
84542103 Harrypotter_421 C June 21, 2020, 2:55 a.m. OK GNU C++14 TESTS 51 31 0
84542541 Strengthen_Lin C June 21, 2020, 3:06 a.m. OK GNU C++17 TESTS 51 31 0
84543079 pk01 C June 21, 2020, 3:19 a.m. OK GNU C++17 TESTS 51 31 0
84542939 RauBot C June 21, 2020, 3:16 a.m. OK GNU C++17 TESTS 51 31 0
84542788 manjpatel C June 21, 2020, 3:12 a.m. OK GNU C++17 TESTS 51 31 0
84543734 Ryd C June 21, 2020, 3:33 a.m. OK GNU C++17 TESTS 51 31 0
84543576 raxtar C June 21, 2020, 3:30 a.m. OK GNU C++17 TESTS 51 31 0
84543525 AgentCode C June 21, 2020, 3:29 a.m. OK GNU C++17 TESTS 51 31 0
84543280 Saifurrahman C June 21, 2020, 3:23 a.m. OK GNU C++17 TESTS 51 31 0
84543184 Byte-Rider C June 21, 2020, 3:21 a.m. OK GNU C++17 TESTS 51 31 0
84544087 Suvasi C June 21, 2020, 3:41 a.m. OK GNU C++17 TESTS 51 31 0
84512152 dravil_rhino C June 20, 2020, 4:49 p.m. OK GNU C++17 (64) TESTS 51 30 0
84494195 kwebi C June 20, 2020, 4:13 p.m. OK GNU C++17 (64) TESTS 51 30 0
84531509 Arnab_Bhattacharjee C June 20, 2020, 9:13 p.m. OK GNU C++17 (64) TESTS 51 30 0
84539294 quadraticreciprocity C June 21, 2020, 1:28 a.m. OK GNU C++17 (64) TESTS 51 31 0
84544221 yamcha C June 21, 2020, 3:44 a.m. OK GNU C++17 (64) TESTS 51 31 0
84541079 sanyam1101 C June 21, 2020, 2:26 a.m. OK GNU C++17 (64) TESTS 51 31 0
84540538 CodingKnight C June 21, 2020, 2:11 a.m. OK GNU C++17 (64) TESTS 51 31 0
84540343 vjudge5 C June 21, 2020, 2:05 a.m. OK GNU C++17 (64) TESTS 51 31 0
84539609 shubhammitt C June 21, 2020, 1:39 a.m. OK GNU C++17 (64) TESTS 51 31 0
84539040 Mastre C June 21, 2020, 1:18 a.m. OK GNU C++17 (64) TESTS 51 31 0
84521584 Aidar.Babanov C June 20, 2020, 6:49 p.m. OK Go TESTS 51 46 0
84478790 snow_bear_328 C June 20, 2020, 3:44 p.m. OK Go TESTS 51 46 0
84538941 synapse C June 21, 2020, 1:14 a.m. OK Go TESTS 51 46 102400
84476386 takezawa C June 20, 2020, 3:40 p.m. OK Go TESTS 51 61 102400
84527450 yb1717 C June 20, 2020, 8:04 p.m. OK Java 11 TESTS 51 171 0
84523988 Demons_Rule C June 20, 2020, 7:17 p.m. OK Java 11 TESTS 51 171 0
84478518 achung72 C June 20, 2020, 3:44 p.m. OK Java 11 TESTS 51 171 0
84523755 rmahrsee1997 C June 20, 2020, 7:14 p.m. OK Java 11 TESTS 51 186 0
84542421 cuzynot C June 21, 2020, 3:03 a.m. OK Java 11 TESTS 51 186 0
84532236 tirtho2107 C June 20, 2020, 9:29 p.m. OK Java 11 TESTS 51 186 0
84527916 iammanishmg C June 20, 2020, 8:12 p.m. OK Java 11 TESTS 51 186 0
84523599 gaurav.mishra_ C June 20, 2020, 7:13 p.m. OK Java 11 TESTS 51 186 0
84523234 vineet_001 C June 20, 2020, 7:08 p.m. OK Java 11 TESTS 51 186 0
84500040 Barnot C June 20, 2020, 4:26 p.m. OK Java 11 TESTS 51 186 0
84527039 bodmas C June 20, 2020, 7:58 p.m. OK Java 8 TESTS 51 109 0
84540093 swishx C June 21, 2020, 1:56 a.m. OK Java 8 TESTS 51 109 0
84527883 Kzstar_17 C June 20, 2020, 8:11 p.m. OK Java 8 TESTS 51 109 0
84539104 sankcan55 C June 21, 2020, 1:21 a.m. OK Java 8 TESTS 51 109 0
84523212 akshayabcd1234 C June 20, 2020, 7:08 p.m. OK Java 8 TESTS 51 109 0
84518441 sourav2999 C June 20, 2020, 6:22 p.m. OK Java 8 TESTS 51 109 0
84502768 littleCatLady C June 20, 2020, 4:31 p.m. OK Java 8 TESTS 51 109 0
84501525 tarun_sm C June 20, 2020, 4:29 p.m. OK Java 8 TESTS 51 109 0
84497638 s_anand98 C June 20, 2020, 4:20 p.m. OK Java 8 TESTS 51 109 0
84492814 IBatJ C June 20, 2020, 4:10 p.m. OK Java 8 TESTS 51 109 0
84484041 Rinat_ C June 20, 2020, 3:54 p.m. OK JavaScript TESTS 51 46 0
84481710 wbars C June 20, 2020, 3:49 p.m. OK Kotlin TESTS 51 140 0
84489171 speshuric C June 20, 2020, 4:03 p.m. OK Kotlin TESTS 51 155 0
84507925 co5er C June 20, 2020, 4:42 p.m. OK Kotlin TESTS 51 155 0
84518724 PussyKiller C June 20, 2020, 6:24 p.m. OK Kotlin TESTS 51 156 0
84506446 Glamdring C June 20, 2020, 4:39 p.m. OK Kotlin TESTS 51 685 0
84486301 twa C June 20, 2020, 3:58 p.m. OK Mono C# TESTS 51 62 0
84510399 peterc C June 20, 2020, 4:46 p.m. OK Mono C# TESTS 51 62 0
84494959 _Trung_Nguyen C June 20, 2020, 4:15 p.m. OK Mono C# TESTS 51 62 1740800
84479808 DaniilPanasenko C June 20, 2020, 3:46 p.m. OK Mono C# TESTS 51 77 0
84479460 Volja C June 20, 2020, 3:45 p.m. OK MS C++ TESTS 51 31 0
84495776 Zhuravlev_Vyacheslav C June 20, 2020, 4:16 p.m. OK MS C++ 2017 TESTS 51 31 0
84478912 yikanji C June 20, 2020, 3:45 p.m. OK MS C++ 2017 TESTS 51 31 0
84538245 khoabright C June 21, 2020, 12:48 a.m. OK MS C++ 2017 TESTS 51 31 0
84542580 1912607519 C June 21, 2020, 3:07 a.m. OK MS C++ 2017 TESTS 51 31 0
84537855 khoabright C June 21, 2020, 12:33 a.m. OK MS C++ 2017 TESTS 51 31 0
84526001 alibabaand40haramies C June 20, 2020, 7:44 p.m. OK MS C++ 2017 TESTS 51 31 0
84505630 anirudhgupta0510 C June 20, 2020, 4:37 p.m. OK MS C++ 2017 TESTS 51 31 307200
84492921 borussiam C June 20, 2020, 4:10 p.m. OK MS C++ 2017 TESTS 51 31 307200
84488744 DevLuyten C June 20, 2020, 4:02 p.m. OK MS C++ 2017 TESTS 51 31 307200
84481063 _Ani C June 20, 2020, 3:48 p.m. OK MS C++ 2017 TESTS 51 31 307200
84476820 klond90 C June 20, 2020, 3:41 p.m. OK Node.js TESTS 51 140 512000
84497946 satyasushant C June 20, 2020, 4:21 p.m. OK PyPy 2 TESTS 51 139 307200
84479829 realnimish C June 20, 2020, 3:46 p.m. OK PyPy 2 TESTS 51 140 102400
84490577 chaudhary_19 C June 20, 2020, 4:06 p.m. OK PyPy 2 TESTS 51 171 1536000
84481712 sksshivam007 C June 20, 2020, 3:49 p.m. OK PyPy 2 TESTS 51 218 1740800
84490974 mo-hit C June 20, 2020, 4:07 p.m. OK PyPy 2 TESTS 51 311 9420800
84532741 ayuzh C June 20, 2020, 9:41 p.m. OK PyPy 3 TESTS 51 140 1228800
84495830 sankalp0104 C June 20, 2020, 4:16 p.m. OK PyPy 3 TESTS 51 140 1228800
84476202 vish029 C June 20, 2020, 3:40 p.m. OK PyPy 3 TESTS 51 140 1331200
84481885 x3mka C June 20, 2020, 3:50 p.m. OK PyPy 3 TESTS 51 155 0
84541128 jaeworld C June 21, 2020, 2:27 a.m. OK PyPy 3 TESTS 51 155 1228800
84534018 ivan225321 C June 20, 2020, 10:11 p.m. OK PyPy 3 TESTS 51 155 1228800
84532721 cgfs10000 C June 20, 2020, 9:41 p.m. OK PyPy 3 TESTS 51 155 1228800
84530352 Mcgregor1 C June 20, 2020, 8:52 p.m. OK PyPy 3 TESTS 51 155 1228800
84522010 abhinay007 C June 20, 2020, 6:54 p.m. OK PyPy 3 TESTS 51 155 1228800
84506571 subha0501 C June 20, 2020, 4:39 p.m. OK PyPy 3 TESTS 51 155 1228800
84496464 Ekinak C June 20, 2020, 4:18 p.m. OK Python 2 TESTS 51 218 204800
84510563 kmd99 C June 20, 2020, 4:46 p.m. OK Python 2 TESTS 51 218 409600
84495318 Haa.. C June 20, 2020, 4:15 p.m. OK Python 2 TESTS 51 233 409600
84541886 301_anky C June 21, 2020, 2:50 a.m. OK Python 3 TESTS 51 140 307200
84530694 _Asymptote_ C June 20, 2020, 8:58 p.m. OK Python 3 TESTS 51 140 307200
84503815 chainmail C June 20, 2020, 4:33 p.m. OK Python 3 TESTS 51 140 307200
84500190 ashutoshark C June 20, 2020, 4:26 p.m. OK Python 3 TESTS 51 140 307200
84493508 shivamgarg2005 C June 20, 2020, 4:12 p.m. OK Python 3 TESTS 51 140 307200
84485685 bavi19 C June 20, 2020, 3:57 p.m. OK Python 3 TESTS 51 140 307200
84485654 meru99 C June 20, 2020, 3:57 p.m. OK Python 3 TESTS 51 140 307200
84485457 luismriq C June 20, 2020, 3:56 p.m. OK Python 3 TESTS 51 140 1945600
84540598 mmhaxor1 C June 21, 2020, 2:13 a.m. OK Python 3 TESTS 51 155 307200
84522598 rnvrj C June 20, 2020, 7 p.m. OK Python 3 TESTS 51 155 307200
84493714 bqn C June 20, 2020, 4:12 p.m. OK Rust TESTS 51 61 0

remove filters

Back to search problems