Codeforces Round 426 (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
833 Codeforces Round 426 (Div. 1) FINISHED False 7200 236100324 July 30, 2017, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6270 ) A The Meaningless Game PROGRAMMING math number theory 1700

B'Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting. The game consists of multiple rounds. Its rules are very simple: in each round, a natural number k is chosen. Then, the one who says (or barks) it faster than the other wins the round. After that, the winner 's score is multiplied by k2, and the loser 's score is multiplied by k. In the beginning of the game, both Slastyona and Pushok have scores equal to one. Unfortunately, Slastyona had lost her notepad where the history of all n games was recorded. She managed to recall the final results for each games, though, but all of her memories of them are vague. Help Slastyona verify their correctness, or, to put it another way, for each given pair of scores determine whether it was possible for a game to finish with such result or not. In the first string, the number of games n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89350000) is given. Each game is represented by a pair of scores a, b (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) xe2 x80 x93 the results of Slastyona and Pushok, correspondingly. For each pair of scores, answer "Yes" if it 's possible for a game to finish with given score, and "No" otherwise. You can output each letter in arbitrary case (upper or lower). First game might have been consisted of one round, in which the number 2 would have been chosen and Pushok would have won. The second game needs exactly two rounds to finish with such result: in the first one, Slastyona would have said the number 5, and in the second one, Pushok would have barked the number 3. '...

Tutorials

Codeforces Round #426 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
29036030 fluffyowl A July 31, 2017, 5:10 a.m. OK D TESTS 72 701 77824000 1700
29027670 Dmitriy.Belichenko A July 30, 2017, 9:04 p.m. OK Delphi TESTS 72 233 2560000 1700
29612133 ledinhhai1312 A Aug. 20, 2017, 3:30 a.m. OK FPC TESTS 72 888 0 1700
35166575 laoliumang A Feb. 12, 2018, 1:50 a.m. OK GNU C TESTS 72 187 1843200 1700
29038715 Afra A July 31, 2017, 6:43 a.m. OK GNU C TESTS 72 218 1945600 1700
33798400 243536998 A Dec. 30, 2017, 1:28 a.m. OK GNU C TESTS 72 233 1843200 1700
29083124 YmMm A Aug. 1, 2017, 12:14 a.m. OK GNU C TESTS 72 249 1945600 1700
29000848 jkxjkx1031 A July 30, 2017, 3:07 p.m. OK GNU C TESTS 72 265 1945600 1700
38680337 EthanITargaryen A May 27, 2018, 9:26 p.m. OK GNU C TESTS 72 280 0 1700
38866730 AK. A June 1, 2018, 8:44 p.m. OK GNU C TESTS 72 280 3379200 1700
28993225 1919810 A July 30, 2017, 2:42 p.m. OK GNU C++ TESTS 72 108 2150400 1700
29906589 laofudasuan A Aug. 30, 2017, 2:58 a.m. OK GNU C++ TESTS 72 109 0 1700
36305548 NEU_Karl A March 15, 2018, 3:12 p.m. OK GNU C++ TESTS 72 109 1843200 1700
28993276 chihiro A July 30, 2017, 2:42 p.m. OK GNU C++ TESTS 72 109 1945600 1700
29034061 huangzhen A July 31, 2017, 3:35 a.m. OK GNU C++ TESTS 72 109 2150400 1700
28996313 kczno1 A July 30, 2017, 2:52 p.m. OK GNU C++ TESTS 72 109 2150400 1700
40511881 luogu_bot2 A July 18, 2018, 11:29 a.m. OK GNU C++ TESTS 72 124 0 1700
40078546 Siyuan A July 8, 2018, 7:37 a.m. OK GNU C++ TESTS 72 124 819200 1700
29035038 Immortal.S A July 31, 2017, 4:22 a.m. OK GNU C++ TESTS 72 124 2048000 1700
29035062 Immortal.S A July 31, 2017, 4:23 a.m. OK GNU C++ TESTS 72 124 2150400 1700
29581966 sammko A Aug. 18, 2017, 8:47 p.m. OK GNU C11 TESTS 72 265 0 1700
29808078 289371298 liuyunhui123 eolv A Aug. 26, 2017, 2:08 p.m. OK GNU C++11 TESTS 72 93 0 1700
51135256 Gloid A March 10, 2019, 3:46 p.m. OK GNU C++11 TESTS 72 109 0 1700
28993480 ohweonfire A July 30, 2017, 2:43 p.m. OK GNU C++11 TESTS 72 109 2150400 1700
29044158 FizzyDavid A July 31, 2017, 9:36 a.m. OK GNU C++11 TESTS 72 109 2150400 1700
39763032 prakharmath A June 29, 2018, 8:43 a.m. OK GNU C++11 TESTS 72 109 3584000 1700
62171669 cuizhuyefei A Oct. 9, 2019, 1:23 a.m. OK GNU C++11 TESTS 72 124 0 1700
32747289 vjudge1 A Nov. 28, 2017, 11:02 a.m. OK GNU C++11 TESTS 72 124 2048000 1700
44691778 nansns A Oct. 22, 2018, 12:25 p.m. OK GNU C++11 TESTS 72 155 0 1700
62541168 vjudge3 A Oct. 14, 2019, 3:30 a.m. OK GNU C++11 TESTS 72 155 0 1700
28994774 xolm A July 30, 2017, 2:48 p.m. OK GNU C++11 TESTS 72 155 2150400 1700
40980423 ReaLNero1 A July 30, 2018, 5:31 p.m. OK GNU C++14 TESTS 72 108 102400 1700
28998073 _LowestJN A July 30, 2017, 2:58 p.m. OK GNU C++14 TESTS 72 109 2048000 1700
29032926 Margatroid A July 31, 2017, 2:52 a.m. OK GNU C++14 TESTS 72 109 2150400 1700
29024584 OMG_wc A July 30, 2017, 6:49 p.m. OK GNU C++14 TESTS 72 217 1945600 1700
65263176 chiraagmittal05 A Nov. 17, 2019, 3:45 p.m. OK GNU C++14 TESTS 72 218 0 1700
29095409 Hank2006 A Aug. 1, 2017, 9:55 a.m. OK GNU C++14 TESTS 72 218 1945600 1700
49854670 vjudge2 A Feb. 13, 2019, 6:31 a.m. OK GNU C++14 TESTS 72 233 0 1700
53432139 vjudge5 A April 27, 2019, 4:55 p.m. OK GNU C++14 TESTS 72 233 0 1700
29376309 vjudge2 A Aug. 12, 2017, 11:45 a.m. OK GNU C++14 TESTS 72 233 1945600 1700
29025975 skolandrik A July 30, 2017, 7:41 p.m. OK GNU C++14 TESTS 72 233 2150400 1700
61764335 vjudge5 A Oct. 3, 2019, 8:08 a.m. OK GNU C++17 TESTS 72 233 0 1700
55857891 badcw A June 21, 2019, 7:58 a.m. OK GNU C++17 TESTS 72 233 0 1700
53835092 hsnavarro A May 7, 2019, 1:44 a.m. OK GNU C++17 TESTS 72 234 0 1700
53835029 hsnavarro A May 7, 2019, 1:38 a.m. OK GNU C++17 TESTS 72 234 0 1700
37852080 vjudge4 A May 3, 2018, 2:37 a.m. OK GNU C++17 TESTS 72 234 3379200 1700
37852020 vjudge5 A May 3, 2018, 2:31 a.m. OK GNU C++17 TESTS 72 234 3379200 1700
37852138 vjudge3 A May 3, 2018, 2:43 a.m. OK GNU C++17 TESTS 72 234 3379200 1700
52935912 tinyme A April 18, 2019, 6:24 a.m. OK GNU C++17 TESTS 72 249 0 1700
61764497 vjudge4 A Oct. 3, 2019, 8:10 a.m. OK GNU C++17 TESTS 72 249 0 1700
58210641 vjudge1 A Aug. 3, 2019, 8:40 a.m. OK GNU C++17 TESTS 72 249 0 1700
66898057 al_Jahy A Dec. 15, 2019, 3:26 a.m. OK Java 11 TESTS 72 405 0 1700
66897977 al_Jahy A Dec. 15, 2019, 3:23 a.m. OK Java 11 TESTS 72 436 0 1700
28993893 Lewin A July 30, 2017, 2:45 p.m. OK Java 8 TESTS 72 264 20684800 1700
28993008 uwi A July 30, 2017, 2:40 p.m. OK Java 8 TESTS 72 265 20582400 1700
29095807 U_Square A Aug. 1, 2017, 10:10 a.m. OK Java 8 TESTS 72 280 20787200 1700
46751532 Jeel_Vaishnav A Dec. 8, 2018, 9:25 a.m. OK Java 8 TESTS 72 295 0 1700
29226980 BassamMattar1996 A Aug. 5, 2017, 8:05 p.m. OK Java 8 TESTS 72 295 20684800 1700
29638605 mualanhlung017 A Aug. 21, 2017, 8:21 a.m. OK Java 8 TESTS 72 296 6144000 1700
29242858 kucingterbang A Aug. 6, 2017, 1:52 p.m. OK Java 8 TESTS 72 296 20582400 1700
34725283 warez80 A Jan. 31, 2018, 3:17 a.m. OK Java 8 TESTS 72 311 20684800 1700
32340915 7dan A Nov. 15, 2017, 7:16 p.m. OK Java 8 TESTS 72 326 0 1700
40610362 ViciousCoder A July 21, 2018, 1:57 p.m. OK Java 8 TESTS 72 342 0 1700
31173385 og.kostya A Oct. 9, 2017, 4:58 p.m. OK MS C# TESTS 72 265 11878400 1700
51225199 vjudge2 A March 12, 2019, 1:51 p.m. OK MS C++ TESTS 72 202 0 1700
51224789 vjudge2 A March 12, 2019, 1:43 p.m. OK MS C++ TESTS 72 202 0 1700
29127265 vjudge3 A Aug. 2, 2017, 10:46 a.m. OK MS C++ TESTS 72 202 2048000 1700
56075262 vjudge2 A June 26, 2019, 12:30 p.m. OK MS C++ TESTS 72 218 0 1700
29478823 scorpiowf A Aug. 15, 2017, 10:33 a.m. OK MS C++ TESTS 72 218 2048000 1700
57725827 vjudge3 A July 25, 2019, 7:07 a.m. OK MS C++ TESTS 72 233 0 1700
29047145 jintian1529 A July 31, 2017, 11:49 a.m. OK MS C++ TESTS 72 233 2048000 1700
53877235 vjudge5 A May 8, 2019, 12:38 p.m. OK MS C++ TESTS 72 249 0 1700
62541102 vjudge3 A Oct. 14, 2019, 3:28 a.m. OK MS C++ TESTS 72 265 0 1700
62541084 vjudge5 A Oct. 14, 2019, 3:27 a.m. OK MS C++ TESTS 72 265 102400 1700
63019176 sladkayaKlubnichka A Oct. 20, 2019, 1:54 p.m. OK MS C++ 2017 TESTS 72 842 0 1700
29358208 dvec A Aug. 11, 2017, 4:43 p.m. OK Rust TESTS 72 997 1536000 1700

remove filters

Back to search problems