Codeforces Round 392 (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
758 Codeforces Round 392 (Div. 2) FINISHED False 7200 252687323 Jan. 19, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 647 ) F Geometrical Progression PROGRAMMING brute force math number theory 2500

B'For given n, l and r find the number of distinct geometrical progression, each of which contains n distinct integers not less than l and not greater than r. In other words, for each progression the following must hold: l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r and ai xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89aj , where a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an is the geometrical progression, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i, xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n and i xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89j. Geometrical progression is a sequence of numbers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an where each term after first is found by multiplying the previous one by a fixed non-zero number d called the common ratio. Note that in our task d may be non-integer. For example in progression 4, xe2 x80 x896, xe2 x80 x899, common ratio is . Two progressions a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an and b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bn are considered different, if there is such i (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) that ai xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89bi. The first and the only line cotains three integers n, l and r (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89107, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89107). Print the integer K -- is the answer to the problem. These are possible progressions for the first test of examples: These are possible progressions for the second test of examples: These are possible progressions for the third test of examples: These are possible progressions for the fourth test of examples: '...

Tutorials

Codeforces Round #392 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
24336895 Holidin F Feb. 1, 2017, 8:31 a.m. OK Delphi TESTS 109 452 2560000 2500
23981586 ruban F Jan. 20, 2017, 6:39 a.m. OK Delphi TESTS 109 1092 192614400 2500
23982664 ruban F Jan. 20, 2017, 7:38 a.m. OK Delphi TESTS 109 1247 192614400 2500
23981529 ruban F Jan. 20, 2017, 6:36 a.m. OK FPC TESTS 109 1107 191692800 2500
23983736 sgtlaugh F Jan. 20, 2017, 8:33 a.m. OK GNU C TESTS 109 951 1945600 2500
23976029 koderliar F Jan. 19, 2017, 11:56 p.m. OK GNU C TESTS 109 2136 210944000 2500
29614869 djq_cpp F Aug. 20, 2017, 7:15 a.m. OK GNU C++ TESTS 109 15 12390400 2500
23984756 MemS F Jan. 20, 2017, 9:21 a.m. OK GNU C++ TESTS 109 62 10547200 2500
27662359 kczno1 F June 8, 2017, 3:38 a.m. OK GNU C++ TESTS 109 124 40243200 2500
28202537 dy0607 F July 2, 2017, 3:29 a.m. OK GNU C++ TESTS 109 234 42188800 2500
24005605 liaoliao F Jan. 21, 2017, 7:56 a.m. OK GNU C++ TESTS 109 249 2457600 2500
23991617 Stupid_cdd F Jan. 20, 2017, 2:51 p.m. OK GNU C++ TESTS 109 249 2457600 2500
38614026 vjudge1 F May 25, 2018, 4:12 p.m. OK GNU C++ TESTS 109 280 0 2500
29173902 piouscity F Aug. 3, 2017, 5:37 p.m. OK GNU C++ TESTS 109 280 42188800 2500
24961026 vjudge4 F Feb. 24, 2017, 10:08 a.m. OK GNU C++ TESTS 109 280 56320000 2500
38613966 vjudge1 F May 25, 2018, 4:09 p.m. OK GNU C++ TESTS 109 295 0 2500
68611581 rainboy F Jan. 11, 2020, 3:54 p.m. OK GNU C11 TESTS 109 312 0 2500
40982670 ReaLNero1 F July 30, 2018, 6:31 p.m. OK GNU C++11 TESTS 109 31 614400 2500
23975312 LiChenKoh F Jan. 19, 2017, 10:27 p.m. OK GNU C++11 TESTS 109 31 2662400 2500
24581550 Wuvin F Feb. 11, 2017, 3:57 a.m. OK GNU C++11 TESTS 109 31 2662400 2500
24000968 RNS_JKS F Jan. 21, 2017, 2:13 a.m. OK GNU C++11 TESTS 109 61 3379200 2500
24091206 Mikester F Jan. 24, 2017, 12:38 p.m. OK GNU C++11 TESTS 109 109 182886400 2500
23988648 yylidiw F Jan. 20, 2017, 12:41 p.m. OK GNU C++11 TESTS 109 187 2150400 2500
23978534 yokozuna57 F Jan. 20, 2017, 3:21 a.m. OK GNU C++11 TESTS 109 187 43212800 2500
24008792 Georeth F Jan. 21, 2017, 10:37 a.m. OK GNU C++11 TESTS 109 218 1843200 2500
23989069 codelegend F Jan. 20, 2017, 1 p.m. OK GNU C++11 TESTS 109 234 2150400 2500
23971099 Superty F Jan. 19, 2017, 6:54 p.m. OK GNU C++11 TESTS 109 234 2252800 2500
27458639 YOULLNEVERWA F May 31, 2017, 3:36 a.m. OK GNU C++14 TESTS 109 93 100147200 2500
29433920 Misakuralin F Aug. 13, 2017, 12:43 p.m. OK GNU C++14 TESTS 109 109 3174400 2500
24181606 uc-nuts F Jan. 27, 2017, 6:01 a.m. OK GNU C++14 TESTS 109 171 43008000 2500
31969989 abc473848880 F Nov. 2, 2017, 6:47 a.m. OK GNU C++14 TESTS 109 187 0 2500
54506140 vjudge3 F May 23, 2019, 4 a.m. OK GNU C++14 TESTS 109 202 10137600 2500
29954033 bazsi700 F Aug. 31, 2017, 3:39 p.m. OK GNU C++14 TESTS 109 234 0 2500
23988661 haleyk100198 F Jan. 20, 2017, 12:42 p.m. OK GNU C++14 TESTS 109 234 1945600 2500
25138440 cuiaoxiang F March 2, 2017, 1:29 a.m. OK GNU C++14 TESTS 109 234 2048000 2500
27412045 CookiC F May 28, 2017, 12:07 p.m. OK GNU C++14 TESTS 109 265 102400 2500
30227975 Kerim.K F Sept. 9, 2017, 2:28 p.m. OK GNU C++14 TESTS 109 265 819200 2500
47871444 Benq F Jan. 3, 2019, 1:05 p.m. OK GNU C++17 TESTS 109 312 307200 2500
58386993 QFYNH F Aug. 6, 2019, 12:20 p.m. OK GNU C++17 TESTS 109 358 409600 2500
52594998 Gene_Liu F April 11, 2019, 8:25 a.m. OK GNU C++17 TESTS 109 577 0 2500
39541355 karasek F June 23, 2018, 12:28 p.m. OK GNU C++17 TESTS 109 702 102400 2500
42809072 Tosic F Sept. 12, 2018, 6:46 p.m. OK GNU C++17 TESTS 109 764 0 2500
41567630 karasek F Aug. 13, 2018, 6:35 p.m. OK GNU C++17 TESTS 109 858 102400 2500
68212346 Anachor F Jan. 4, 2020, 8:04 p.m. OK GNU C++17 TESTS 109 873 80179200 2500
68211829 Anachor F Jan. 4, 2020, 7:46 p.m. OK GNU C++17 TESTS 109 873 80179200 2500
51673288 chinmay0906 F March 22, 2019, 9:13 a.m. OK GNU C++17 TESTS 109 873 80179200 2500
68212411 Anachor F Jan. 4, 2020, 8:06 p.m. OK GNU C++17 TESTS 109 889 80179200 2500
68611580 Dukkha F Jan. 11, 2020, 3:54 p.m. OK Java 11 TESTS 109 561 0 2500
23969002 Sumeet.Varma F Jan. 19, 2017, 6:20 p.m. OK Java 8 TESTS 109 327 20582400 2500
24002416 Megabyte F Jan. 21, 2017, 4:48 a.m. OK Java 8 TESTS 109 436 20480000 2500
23987129 IgorKoval F Jan. 20, 2017, 11:31 a.m. OK Java 8 TESTS 109 498 20582400 2500
29910616 mualanhlung017 F Aug. 30, 2017, 7:26 a.m. OK Java 8 TESTS 109 608 0 2500
24019037 stevie1024 F Jan. 21, 2017, 8:24 p.m. OK Java 8 TESTS 109 779 20582400 2500
23983472 p1p13 F Jan. 20, 2017, 8:21 a.m. OK Java 8 TESTS 109 826 20582400 2500
23986941 IgorKoval F Jan. 20, 2017, 11:21 a.m. OK Java 8 TESTS 109 919 20582400 2500
23969762 DicksOut4Harambe F Jan. 19, 2017, 6:29 p.m. OK Java 8 TESTS 109 919 141209600 2500
23987056 IgorKoval F Jan. 20, 2017, 11:27 a.m. OK Java 8 TESTS 109 920 20582400 2500
24162544 hama-du F Jan. 26, 2017, 11:40 p.m. OK Java 8 TESTS 109 935 100556800 2500
23974289 mircea85 F Jan. 19, 2017, 8:58 p.m. OK MS C# TESTS 109 3915 49561600 2500
23987105 Yurik F Jan. 20, 2017, 11:29 a.m. OK MS C++ TESTS 109 592 2048000 2500
23970792 SamuelTangz F Jan. 19, 2017, 6:47 p.m. OK MS C++ TESTS 109 685 135680000 2500
23984072 superwatermelon F Jan. 20, 2017, 8:51 a.m. OK MS C++ TESTS 109 936 2048000 2500
23975675 amethyst0 F Jan. 19, 2017, 11:11 p.m. OK MS C++ TESTS 109 3962 82227200 2500
23969044 alexey.shchepin F Jan. 19, 2017, 6:20 p.m. OK Ocaml TESTS 109 405 4096000 2500
28290401 BenL F July 4, 2017, 10:26 p.m. OK PyPy 3 TESTS 109 483 28774400 2500
23972890 Nikitka_Herach F Jan. 19, 2017, 7:52 p.m. OK PyPy 3 TESTS 109 872 25907200 2500

remove filters

Back to search problems