Codeforces Round 549 (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
1142 Codeforces Round 549 (Div. 1) FINISHED False 7200 183214163 March 30, 2019, 5:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3474 ) A The Beatles PROGRAMMING brute force math 1800

B'Recently a Golden Circle of Beetlovers was found in Byteland. It is a circle route going through n cdot k cities. The cities are numerated from 1 to n cdot k , the distance between the neighboring cities is exactly 1 km. Sergey does not like beetles, he loves burgers. Fortunately for him, there are n fast food restaurants on the circle, they are located in the 1 -st, the (k + 1) -st, the (2k + 1) -st, and so on, the ((n-1)k + 1) -st cities, i.e. the distance between the neighboring cities with fast food restaurants is k km. Sergey began his journey at some city s and traveled along the circle, making stops at cities each l km ( l > 0 ), until he stopped in s once again. Sergey then forgot numbers s and l , but he remembers that the distance from the city s to the nearest fast food restaurant was a km, and the distance from the city he stopped at after traveling the first l km from s to the nearest fast food restaurant was b km. Sergey always traveled in the same direction along the circle, but when he calculated distances to the restaurants, he considered both directions. Now Sergey is interested in two integers. The first integer x is the minimum number of stops (excluding the first) Sergey could have done before returning to s . The second integer y is the maximum number of stops (excluding the first) Sergey could have done before returning to s . The first line contains two integers n and k ( 1 <= n, k <= 100 ,000 ) -- the number of fast food restaurants on the circle and the distance between the neighboring restaurants, respectively. The second line contains two integers a and b ( 0 <= a, b <= frac{k}{2} ) -- the distances to the nearest fast food restaurants from the initial city and from the city Sergey made the first stop at, respectively. Print the two integers x '...

Tutorials

Codeforces Round #549 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52035022 Gassa A March 30, 2019, 5:26 p.m. OK D TESTS 37 124 4198400 1800
53481847 rr_ A April 28, 2019, 8:52 p.m. OK D TESTS 37 280 11980800 1800
53481832 rr_ A April 28, 2019, 8:51 p.m. OK D TESTS 37 311 11980800 1800
52040922 knightL A March 30, 2019, 5:51 p.m. OK GNU C++11 TESTS 37 31 0 1800
53980096 Crowy A May 11, 2019, 6:40 a.m. OK GNU C++11 TESTS 37 46 716800 1800
57636827 northern_lights A July 24, 2019, 11:07 a.m. OK GNU C++11 TESTS 37 61 0 1800
52954545 054025 A April 18, 2019, 1:15 p.m. OK GNU C++11 TESTS 37 61 0 1800
52250967 cjychenjiayi A April 3, 2019, 12:10 a.m. OK GNU C++11 TESTS 37 61 0 1800
52061072 1592063346 A March 31, 2019, 1:01 a.m. OK GNU C++11 TESTS 37 61 0 1800
52034385 _rqy A March 30, 2019, 5:23 p.m. OK GNU C++11 TESTS 37 61 0 1800
59398440 Priyank A Aug. 24, 2019, 11:13 a.m. OK GNU C++11 TESTS 37 62 0 1800
54542972 FlappyFish A May 24, 2019, 3:52 a.m. OK GNU C++11 TESTS 37 62 0 1800
54328989 vjudge3 A May 18, 2019, 4:44 a.m. OK GNU C++11 TESTS 37 62 0 1800
52047480 abeker A March 30, 2019, 6:25 p.m. OK GNU C++14 TESTS 37 31 0 1800
52293867 jx_25 A April 4, 2019, 4:47 a.m. OK GNU C++14 TESTS 37 31 102400 1800
52080433 Jarug A March 31, 2019, 11:58 a.m. OK GNU C++14 TESTS 37 46 0 1800
52229251 upc_ode A April 2, 2019, 11:11 a.m. OK GNU C++14 TESTS 37 61 0 1800
52063676 6aren A March 31, 2019, 3:40 a.m. OK GNU C++14 TESTS 37 61 0 1800
58912523 idxcalcal A Aug. 16, 2019, 1:37 p.m. OK GNU C++14 TESTS 37 62 0 1800
57916380 foreverdiv3 A July 29, 2019, 1:40 a.m. OK GNU C++14 TESTS 37 62 0 1800
56156222 dedeomkar A June 27, 2019, 10:19 a.m. OK GNU C++14 TESTS 37 62 0 1800
54266960 RNS_CUS A May 17, 2019, 6:36 a.m. OK GNU C++14 TESTS 37 62 0 1800
52771668 BadBot A April 15, 2019, 9:14 a.m. OK GNU C++14 TESTS 37 62 0 1800
61424105 Tejs A Sept. 28, 2019, 12:39 p.m. OK GNU C++17 TESTS 37 30 0 1800
61423993 Tejs A Sept. 28, 2019, 12:37 p.m. OK GNU C++17 TESTS 37 30 0 1800
53397771 bmerry A April 27, 2019, 10:01 a.m. OK GNU C++17 TESTS 37 30 0 1800
55610418 ReaLNero1 A June 16, 2019, 5:18 a.m. OK GNU C++17 TESTS 37 31 0 1800
52053441 Arterm A March 30, 2019, 7:04 p.m. OK GNU C++17 TESTS 37 31 0 1800
52038343 ilyausmanov A March 30, 2019, 5:39 p.m. OK GNU C++17 TESTS 37 31 0 1800
52033975 kefaa2 A March 30, 2019, 5:22 p.m. OK GNU C++17 TESTS 37 31 0 1800
52049789 SHAMPINION A March 30, 2019, 6:40 p.m. OK GNU C++17 TESTS 37 31 819200 1800
64715065 Antygenius A Nov. 11, 2019, 9:14 p.m. OK GNU C++17 TESTS 37 62 0 1800
59949976 krazy ZXyang A Sept. 3, 2019, 2:12 p.m. OK GNU C++17 TESTS 37 62 0 1800
52560917 365050244 A April 10, 2019, 10:20 a.m. OK Go TESTS 37 171 0 1800
52222632 dtsarun A April 2, 2019, 7:29 a.m. OK Java 8 TESTS 37 140 0 1800
52032615 Egor A March 30, 2019, 5:18 p.m. OK Java 8 TESTS 37 186 0 1800
58974576 Darth_Jar_Jar_Binks A Aug. 17, 2019, 11:09 p.m. OK Java 8 TESTS 37 202 0 1800
52414324 beroul A April 6, 2019, 2:50 p.m. OK Java 8 TESTS 37 249 0 1800
52033819 Slamur A March 30, 2019, 5:21 p.m. OK Java 8 TESTS 37 264 0 1800
52032947 ilyakor A March 30, 2019, 5:19 p.m. OK Java 8 TESTS 37 264 0 1800
52057997 fnch A March 30, 2019, 9:09 p.m. OK Java 8 TESTS 37 265 0 1800
52057071 PrakharJain A March 30, 2019, 8:32 p.m. OK Java 8 TESTS 37 265 0 1800
52036734 Jeel_Vaishnav A March 30, 2019, 5:33 p.m. OK Java 8 TESTS 37 265 0 1800
52561723 Tooc0ld A April 10, 2019, 10:48 a.m. OK Java 8 TESTS 37 280 0 1800
52482715 exs A April 8, 2019, 6:47 a.m. OK Kotlin TESTS 37 234 3379200 1800
52127781 alykov A March 31, 2019, 6:37 p.m. OK Kotlin TESTS 37 280 0 1800
52055794 kuuso A March 30, 2019, 7:59 p.m. OK Mono C# TESTS 37 171 0 1800
53386159 vjudge4 A April 27, 2019, 3:41 a.m. OK MS C++ TESTS 37 156 0 1800
52050046 BaturaDima A March 30, 2019, 6:42 p.m. OK MS C++ TESTS 37 156 0 1800
53386173 vjudge3 A April 27, 2019, 3:41 a.m. OK MS C++ TESTS 37 156 0 1800
52037750 math957963 A March 30, 2019, 5:37 p.m. OK MS C++ TESTS 37 187 0 1800
52135617 swofde A April 1, 2019, 2:15 a.m. OK MS C++ TESTS 37 280 0 1800
52628859 vjudge3 A April 12, 2019, 5:46 a.m. OK MS C++ TESTS 37 280 19353600 1800
61861568 tarattata1 A Oct. 4, 2019, 3:29 p.m. OK MS C++ TESTS 37 296 0 1800
52034981 Milanin A March 30, 2019, 5:26 p.m. OK MS C++ 2017 TESTS 37 93 0 1800
53382676 wisest A April 27, 2019, 12:55 a.m. OK MS C++ 2017 TESTS 37 93 0 1800
52425869 Rbinn A April 6, 2019, 7:18 p.m. OK MS C++ 2017 TESTS 37 140 0 1800
52485543 AleksanderBalobanov A April 8, 2019, 8:45 a.m. OK MS C++ 2017 TESTS 37 156 0 1800
52553558 Mukundan314 A April 10, 2019, 6:22 a.m. OK PyPy 2 TESTS 37 389 1126400 1800
52033802 aeternalis1 A March 30, 2019, 5:21 p.m. OK PyPy 2 TESTS 37 405 18022400 1800
52284264 Helli.code A April 3, 2019, 6:47 p.m. OK PyPy 2 TESTS 37 421 7680000 1800
52211507 sheaf A April 1, 2019, 8:08 p.m. OK PyPy 2 TESTS 37 436 7680000 1800
52031797 LaiMeiyun A March 30, 2019, 5:16 p.m. OK PyPy 2 TESTS 37 452 7680000 1800
52553866 Mukundan314 A April 10, 2019, 6:32 a.m. OK PyPy 3 TESTS 37 405 1228800 1800
53977216 TangentOfA A May 11, 2019, 5:03 a.m. OK PyPy 3 TESTS 37 420 3276800 1800
52033383 meooow A March 30, 2019, 5:20 p.m. OK PyPy 3 TESTS 37 451 1536000 1800
52423891 nexus.chebykin A April 6, 2019, 6:26 p.m. OK PyPy 3 TESTS 37 685 1843200 1800
52498970 Stephan A April 8, 2019, 3:05 p.m. OK PyPy 3 TESTS 37 701 3584000 1800
52617631 rookzeno A April 11, 2019, 7:22 p.m. OK PyPy 3 TESTS 37 888 83148800 1800
52035853 nwi A March 30, 2019, 5:29 p.m. OK Python 2 TESTS 37 810 5324800 1800
53426763 Delfad0r A April 27, 2019, 2:02 p.m. OK Python 3 TESTS 37 312 7577600 1800
52920502 sdhd A April 17, 2019, 5:37 p.m. OK Python 3 TESTS 37 451 0 1800
52075185 wa007 A March 31, 2019, 9:39 a.m. OK Python 3 TESTS 37 467 0 1800
52056421 tabasz A March 30, 2019, 8:13 p.m. OK Python 3 TESTS 37 623 0 1800
53391261 IngaleAnkur10 A April 27, 2019, 6:59 a.m. OK Python 3 TESTS 37 670 0 1800
52341280 grandesonnerie A April 5, 2019, 10:38 a.m. OK Python 3 TESTS 37 748 15257600 1800
52423909 nexus.chebykin A April 6, 2019, 6:26 p.m. OK Python 3 TESTS 37 795 0 1800
52550745 d_shiladityab24 A April 10, 2019, 4 a.m. OK Python 3 TESTS 37 841 0 1800
62342949 tanphatls987 A Oct. 11, 2019, 6:09 a.m. OK Python 3 TESTS 37 873 0 1800
52263717 albinpaul.ks A April 3, 2019, 10:21 a.m. OK Python 3 TESTS 37 950 0 1800
52037309 EbTech A March 30, 2019, 5:35 p.m. OK Rust TESTS 37 156 204800 1800

remove filters

Back to search problems