Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad)

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
1444 Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad) FINISHED False 7200 133124111 Nov. 1, 2020, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13315 ) A Division PROGRAMMING math number theory

B"Oleg's favorite subjects are History and Math, and his favorite branch of mathematics is division. To improve his division skills, Oleg came up with t pairs of integers p_i and q_i and for each pair decided to find the greatest integer x_i , such that: The first line contains an integer t ( 1 <= t <= 50 ) -- the number of pairs. Each of the following t lines contains two integers p_i and q_i ( 1 <= p_i <= 10^{18} ; 2 <= q_i <= 10^{9} ) -- the i -th pair of integers. Print t integers: the i -th integer is the largest x_i such that p_i is divisible by x_i , but x_i is not divisible by q_i . One can show that there is always at least one value of x_i satisfying the divisibility conditions for the given constraints. For the first pair, where p_1 = 10 and q_1 = 4 , the answer is x_1 = 10 , since it is the greatest divisor of 10 and 10 is not divisible by 4 . For the second pair, where p_2 = 12 and q_2 = 6 , note that "...

Tutorials

Codeforces Round #680 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
97309113 Gassa A Nov. 1, 2020, 11:14 a.m. OK D TESTS 27 31 0
97309429 hos.lyric A Nov. 1, 2020, 11:14 a.m. OK D TESTS 27 46 0
97306115 Isonan A Nov. 1, 2020, 11:10 a.m. OK GNU C++11 TESTS 27 30 0
97347752 TakeAway A Nov. 1, 2020, 12:45 p.m. OK GNU C++11 TESTS 27 30 0
97318460 computerkiller A Nov. 1, 2020, 11:29 a.m. OK GNU C++11 TESTS 27 30 0
97306851 xpptsdy A Nov. 1, 2020, 11:11 a.m. OK GNU C++11 TESTS 27 30 0
97348132 jiangxuancheng A Nov. 1, 2020, 12:46 p.m. OK GNU C++11 TESTS 27 30 0
97320543 panmotian_2018 A Nov. 1, 2020, 11:33 a.m. OK GNU C++11 TESTS 27 30 102400
97307828 kkktl01 A Nov. 1, 2020, 11:12 a.m. OK GNU C++11 TESTS 27 30 614400
97328322 Chiro_11 A Nov. 1, 2020, 11:50 a.m. OK GNU C++11 TESTS 27 30 819200
97313126 bizhouziwei20 A Nov. 1, 2020, 11:20 a.m. OK GNU C++11 TESTS 27 30 1638400
97394696 RGB_ICPC7 A Nov. 2, 2020, 3:21 a.m. OK GNU C++11 TESTS 30 31 0
97309853 Zoli9 A Nov. 1, 2020, 11:15 a.m. OK GNU C++14 TESTS 27 30 0
97396010 Anonymousbud A Nov. 2, 2020, 3:58 a.m. OK GNU C++14 TESTS 30 30 102400
97379404 dr.ken A Nov. 1, 2020, 6:25 p.m. OK GNU C++14 TESTS 30 31 0
97400555 Greatest789 A Nov. 2, 2020, 5:50 a.m. OK GNU C++14 TESTS 30 31 0
97386429 V1lg3for7z A Nov. 1, 2020, 9:22 p.m. OK GNU C++14 TESTS 30 31 0
97386048 sher_007 A Nov. 1, 2020, 9:07 p.m. OK GNU C++14 TESTS 30 31 0
97379533 abhinay007 A Nov. 1, 2020, 6:28 p.m. OK GNU C++14 TESTS 30 31 0
97379048 dinosaurabh A Nov. 1, 2020, 6:19 p.m. OK GNU C++14 TESTS 30 31 0
97371980 HajLorenzo A Nov. 1, 2020, 4:24 p.m. OK GNU C++14 TESTS 30 31 0
97366053 yadavsa A Nov. 1, 2020, 3:08 p.m. OK GNU C++14 TESTS 28 31 0
97372439 Nartov_dima A Nov. 1, 2020, 4:31 p.m. OK GNU C++17 TESTS 30 30 100249600
97393133 Evil_Hunter A Nov. 2, 2020, 2:37 a.m. OK GNU C++17 TESTS 30 31 0
97393377 anishkoulgi A Nov. 2, 2020, 2:43 a.m. OK GNU C++17 TESTS 30 31 0
97401067 ujjwalsanjay05 A Nov. 2, 2020, 6 a.m. OK GNU C++17 TESTS 30 31 0
97400437 tmriddle A Nov. 2, 2020, 5:47 a.m. OK GNU C++17 TESTS 30 31 0
97399474 dhaval_418 A Nov. 2, 2020, 5:27 a.m. OK GNU C++17 TESTS 30 31 0
97397947 Losser_cuet A Nov. 2, 2020, 4:54 a.m. OK GNU C++17 TESTS 30 31 0
97394737 Fysty A Nov. 2, 2020, 3:22 a.m. OK GNU C++17 TESTS 30 31 0
97393972 inder128 A Nov. 2, 2020, 3:01 a.m. OK GNU C++17 TESTS 30 31 0
97394343 BrayanD A Nov. 2, 2020, 3:11 a.m. OK GNU C++17 TESTS 30 31 0
97306446 zx2003 A Nov. 1, 2020, 11:10 a.m. OK GNU C++17 (64) TESTS 27 30 0
97321410 SSRS_ A Nov. 1, 2020, 11:35 a.m. OK GNU C++17 (64) TESTS 27 30 0
97318279 antguz A Nov. 1, 2020, 11:29 a.m. OK GNU C++17 (64) TESTS 27 30 0
97309913 Nyaan A Nov. 1, 2020, 11:15 a.m. OK GNU C++17 (64) TESTS 27 30 0
97307510 EternalAlexander A Nov. 1, 2020, 11:11 a.m. OK GNU C++17 (64) TESTS 27 30 0
97308604 Tiramister A Nov. 1, 2020, 11:13 a.m. OK GNU C++17 (64) TESTS 27 30 204800
97400234 xiaoqi132 A Nov. 2, 2020, 5:43 a.m. OK GNU C++17 (64) TESTS 30 31 0
97400306 AC_AR A Nov. 2, 2020, 5:44 a.m. OK GNU C++17 (64) TESTS 30 31 0
97399882 xiaoqi132 A Nov. 2, 2020, 5:36 a.m. OK GNU C++17 (64) TESTS 30 31 0
97393932 __utkarshvashisth94__ A Nov. 2, 2020, 3 a.m. OK GNU C++17 (64) TESTS 30 31 0
97365038 eR6 A Nov. 1, 2020, 2:56 p.m. OK Go TESTS 28 46 0
97310378 mphillotry A Nov. 1, 2020, 11:15 a.m. OK Java 11 TESTS 27 186 0
97387589 skittles1412 A Nov. 1, 2020, 10:09 p.m. OK Java 11 TESTS 30 186 307200
97386610 Ahmad A Nov. 1, 2020, 9:29 p.m. OK Java 11 TESTS 30 187 0
97315522 fpeterfalvi A Nov. 1, 2020, 11:24 a.m. OK Java 11 TESTS 27 187 0
97315570 grekiki A Nov. 1, 2020, 11:24 a.m. OK Java 11 TESTS 27 187 0
97309876 uwi A Nov. 1, 2020, 11:15 a.m. OK Java 11 TESTS 27 217 0
97348741 Apfeloxid A Nov. 1, 2020, 12:48 p.m. OK Java 11 TESTS 27 218 0
97310309 dusty.and.rusty A Nov. 1, 2020, 11:15 a.m. OK Java 11 TESTS 27 234 512000
97383318 robinz62 A Nov. 1, 2020, 7:46 p.m. OK Java 8 TESTS 30 109 0
97305817 cwise A Nov. 1, 2020, 11:09 a.m. OK Java 8 TESTS 27 124 0
97321375 Katushechka A Nov. 1, 2020, 11:35 a.m. OK Java 8 TESTS 27 124 0
97317493 YahiaSherif A Nov. 1, 2020, 11:27 a.m. OK Java 8 TESTS 27 124 0
97323725 golions A Nov. 1, 2020, 11:40 a.m. OK Java 8 TESTS 27 139 0
97320923 xwchen A Nov. 1, 2020, 11:34 a.m. OK Java 8 TESTS 27 139 0
97309767 BNL A Nov. 1, 2020, 11:15 a.m. OK Java 8 TESTS 27 139 0
97315370 adp527 A Nov. 1, 2020, 11:24 a.m. OK Java 8 TESTS 27 140 0
97316275 Hemose A Nov. 1, 2020, 11:25 a.m. OK Java 8 TESTS 27 140 0
97312440 reborn.chris A Nov. 1, 2020, 11:19 a.m. OK Java 8 TESTS 27 140 0
97389070 Spheniscine A Nov. 1, 2020, 11:30 p.m. OK Kotlin TESTS 30 124 0
97317477 Electromaster A Nov. 1, 2020, 11:27 a.m. OK Kotlin TESTS 27 140 0
97317949 koper A Nov. 1, 2020, 11:28 a.m. OK Kotlin TESTS 27 140 512000
97309778 darnley A Nov. 1, 2020, 11:15 a.m. OK Kotlin TESTS 27 140 512000
97389505 MrLolthe1st A Nov. 1, 2020, 11:55 p.m. OK Kotlin TESTS 30 155 512000
97387844 P___ A Nov. 1, 2020, 10:24 p.m. OK MS C++ 2017 TESTS 30 31 0
97362444 VladislavArt A Nov. 1, 2020, 2:28 p.m. OK MS C++ 2017 TESTS 28 31 819200
97319727 vpike A Nov. 1, 2020, 11:32 a.m. OK MS C++ 2017 TESTS 27 46 0
97333028 AnnSuperstar A Nov. 1, 2020, 12:02 p.m. OK MS C++ 2017 TESTS 27 46 0
97358422 Gravekper A Nov. 1, 2020, 1:46 p.m. OK MS C++ 2017 TESTS 27 46 0
97308635 keymoon A Nov. 1, 2020, 11:13 a.m. OK .NET Core C# TESTS 27 109 204800
97317921 mban259 A Nov. 1, 2020, 11:28 a.m. OK .NET Core C# TESTS 27 109 307200
97313017 azukun A Nov. 1, 2020, 11:20 a.m. OK .NET Core C# TESTS 27 109 409600
97382163 tsp67 A Nov. 1, 2020, 7:19 p.m. OK Node.js TESTS 30 389 2560000
97310053 tamato A Nov. 1, 2020, 11:15 a.m. OK PyPy 3 TESTS 27 140 1433600
97362385 asdsasd A Nov. 1, 2020, 2:27 p.m. OK PyPy 3 TESTS 28 155 1331200
97397438 YMSeah A Nov. 2, 2020, 4:40 a.m. OK PyPy 3 TESTS 30 155 1433600
97386939 armoking A Nov. 1, 2020, 9:41 p.m. OK PyPy 3 TESTS 30 155 1433600
97374836 varsha765.vc A Nov. 1, 2020, 5:09 p.m. OK PyPy 3 TESTS 30 155 1433600
97311567 dynam1c A Nov. 1, 2020, 11:17 a.m. OK PyPy 3 TESTS 27 155 1433600
97398548 sid_121212 A Nov. 2, 2020, 5:07 a.m. OK PyPy 3 TESTS 30 155 1843200
97312631 qwertz73355a A Nov. 1, 2020, 11:19 a.m. OK PyPy 3 TESTS 27 171 1433600
97364606 zapdospops A Nov. 1, 2020, 2:51 p.m. OK PyPy 3 TESTS 28 171 2048000
97326421 kclee2172 A Nov. 1, 2020, 11:46 a.m. OK PyPy 3 TESTS 27 186 1331200
97372414 ki0apa A Nov. 1, 2020, 4:31 p.m. OK Python 2 TESTS 30 436 0
97315525 GeoffreyY A Nov. 1, 2020, 11:24 a.m. OK Rust TESTS 27 46 0
97313460 ngtkana A Nov. 1, 2020, 11:20 a.m. OK Rust TESTS 27 46 0
97309658 nebocco A Nov. 1, 2020, 11:14 a.m. OK Rust TESTS 27 46 0
97310084 sansen A Nov. 1, 2020, 11:15 a.m. OK Rust TESTS 27 61 614400

remove filters

Back to search problems