Codeforces Beta Round 72 (Div. 1 Only)

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
83 Codeforces Beta Round 72 (Div. 1 Only) FINISHED False 7200 426523799 May 13, 2011, 3:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 890 ) D Numbers PROGRAMMING dp math number theory 2400

B"One quite ordinary day Valera went to school (there's nowhere else he should go on a week day). In a maths lesson his favorite teacher Ms. Evans told students about divisors. Despite the fact that Valera loved math, he didn't find this particular topic interesting. Even more, it seemed so boring that he fell asleep in the middle of a lesson. And only a loud ringing of a school bell could interrupt his sweet dream. Of course, the valuable material and the teacher's explanations were lost. However, Valera will one way or another have to do the homework. As he does not know the new material absolutely, he cannot do the job himself. That's why he asked you to help. You're his best friend after all, you just cannot refuse to help. Valera's home task has only one problem, which, though formulated in a very simple way, has not a trivial solution. Its statement looks as follows: if we consider all positive integers in the interval [a;b] then it is required to count the amount of such numbers in this interval that their smallest divisor will be a certain integer k (you do not have to consider divisor equal to one). In other words, you should count the amount of such numbers from the interval [a;b], that are not divisible by any number between 2 and k xe2 x80 x89- xe2 x80 x891 and yet are divisible by k. The first and only line contains three positive integers a, b, k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7109, xe2 x80 x892 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7109). Print on a single line the answer to the given problem. Comments to the samples from the statement: In the first sample the answer is numbers 2, xe2 x80 x894, xe2 x80 x896, xe2 x80 x898, xe2 x80 x8910. In the second one -- 15, xe2 x80 x8921 In the third one there are no such numbers."...

Tutorials

разбор E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
934849 Furko D Dec. 7, 2011, 7:22 p.m. OK Delphi TESTS 117 60 819200 2400
836555 Shapo D Nov. 5, 2011, 2:05 p.m. OK Delphi TESTS 117 60 1638400 2400
450584 KOTEHOK D May 13, 2011, 4:28 p.m. OK Delphi TESTS 117 1170 59084800 2400
2983192 AleksanderBalobanov D Jan. 22, 2013, 11:01 a.m. OK Delphi TESTS 117 2683 1638400 2400
449796 tourist D May 13, 2011, 4:10 p.m. OK Delphi TESTS 117 2910 205107200 2400
457401 maxim_polt D May 17, 2011, 12:35 a.m. OK Delphi TESTS 117 2910 205107200 2400
451439 Sereja D May 13, 2011, 4:47 p.m. OK FPC TESTS 117 50 1228800 2400
1465303 alexander-nsk94 D April 2, 2012, 2:56 p.m. OK FPC TESTS 117 60 1126400 2400
455651 xujie D May 15, 2011, 3:12 a.m. OK FPC TESTS 117 80 2048000 2400
455644 xujie D May 15, 2011, 3:04 a.m. OK FPC TESTS 117 90 2048000 2400
455652 siuvit D May 15, 2011, 3:13 a.m. OK FPC TESTS 117 160 1228800 2400
723750 giongto35 D Sept. 25, 2011, 9:34 a.m. OK FPC TESTS 117 300 1331200 2400
1445257 sillycross D March 31, 2012, 4:37 a.m. OK FPC TESTS 117 450 41472000 2400
15141524 HappyNewYearMike D Dec. 31, 2015, 9:35 p.m. OK FPC TESTS 117 2276 80179200 2400
486283 vlad107 D June 12, 2011, 12:08 p.m. OK FPC TESTS 117 2520 51097600 2400
486277 vlad107 D June 12, 2011, 11:57 a.m. OK FPC TESTS 117 2550 81203200 2400
454217 LayCurse D May 14, 2011, 2:14 a.m. OK GNU C TESTS 117 30 1536000 2400
495738 scottai1 D June 17, 2011, 9:16 a.m. OK GNU C TESTS 117 310 29388800 2400
488987 zzldjk D June 16, 2011, 1:40 p.m. OK GNU C TESTS 117 810 181760000 2400
3911643 dtalamas24 D June 17, 2013, 10:21 p.m. OK GNU C++ TESTS 117 15 204800 2400
3407802 AlexJH D March 26, 2013, 11:21 a.m. OK GNU C++ TESTS 117 15 204800 2400
3903025 Diego9627 D June 15, 2013, 9:22 p.m. OK GNU C++ TESTS 117 15 409600 2400
15092315 rubmary D Dec. 30, 2015, 4:33 a.m. OK GNU C++ TESTS 117 30 0 2400
16763815 vjudge1 D March 17, 2016, 1:03 p.m. OK GNU C++ TESTS 117 30 0 2400
16482615 vjudge1 D March 3, 2016, 12:45 p.m. OK GNU C++ TESTS 117 30 0 2400
15150337 kawazaki D Jan. 1, 2016, 4:39 p.m. OK GNU C++ TESTS 117 30 0 2400
15092413 rubmary D Dec. 30, 2015, 4:54 a.m. OK GNU C++ TESTS 117 30 0 2400
14194153 130705009 D Nov. 11, 2015, 8:33 a.m. OK GNU C++ TESTS 117 30 0 2400
9957085 vjudge5 D Feb. 22, 2015, 7:10 a.m. OK GNU C++ TESTS 117 30 0 2400
455103 AND1989 D May 14, 2011, 2:02 p.m. OK GNU C++0x TESTS 117 30 1331200 2400
695650 Archon.JK D Sept. 15, 2011, 1:54 p.m. OK GNU C++0x TESTS 117 50 1638400 2400
6268635 DDDDDDDDDDDDDDDDDDDDDDDD D April 6, 2014, 6:27 a.m. OK GNU C++0x TESTS 117 62 1638400 2400
456406 wRabbits_AlMag D May 15, 2011, 11:12 p.m. OK GNU C++0x TESTS 117 140 1536000 2400
5770759 adelnobel D Jan. 22, 2014, 12:52 p.m. OK GNU C++0x TESTS 117 312 28262400 2400
5770582 adelnobel D Jan. 22, 2014, 12:22 p.m. OK GNU C++0x TESTS 117 966 112947200 2400
7237519 wanbo D July 25, 2014, 3:38 a.m. OK GNU C++0x TESTS 117 2370 113356800 2400
61926115 rainboy D Oct. 5, 2019, 2:40 p.m. OK GNU C11 TESTS 117 342 25088000 2400
15581667 vedaanta D Jan. 25, 2016, 8:01 p.m. OK GNU C++11 TESTS 117 30 0 2400
15451070 movlro D Jan. 20, 2016, 9:31 a.m. OK GNU C++11 TESTS 117 30 0 2400
15581717 vedaanta D Jan. 25, 2016, 8:04 p.m. OK GNU C++11 TESTS 117 30 0 2400
27514378 Josetapia D June 2, 2017, 3:40 a.m. OK GNU C++11 TESTS 117 30 204800 2400
18697191 Y_UME D June 24, 2016, 8:42 a.m. OK GNU C++11 TESTS 117 30 409600 2400
18714604 McGinn D June 25, 2016, 6:40 a.m. OK GNU C++11 TESTS 117 30 512000 2400
31302426 alex_Harry D Oct. 14, 2017, 11:11 a.m. OK GNU C++11 TESTS 117 30 921600 2400
25385885 ordan D March 10, 2017, 5:57 p.m. OK GNU C++11 TESTS 117 30 2150400 2400
17756330 nezametdinov D May 6, 2016, 7:14 a.m. OK GNU C++11 TESTS 117 30 2252800 2400
27885861 Minology D June 18, 2017, 1:58 p.m. OK GNU C++11 TESTS 117 60 0 2400
32569953 ei133333 D Nov. 23, 2017, 8:41 a.m. OK GNU C++14 TESTS 117 30 0 2400
27442599 I_love_chickpea D May 30, 2017, 7:53 a.m. OK GNU C++14 TESTS 117 30 0 2400
25006178 N00 D Feb. 25, 2017, 7:56 a.m. OK GNU C++14 TESTS 117 30 1945600 2400
35104631 Artemis_Fowl D Feb. 9, 2018, 8:12 p.m. OK GNU C++14 TESTS 117 30 2764800 2400
21367625 SakurakoujiRuna D Oct. 11, 2016, 6:54 p.m. OK GNU C++14 TESTS 117 30 3072000 2400
22842844 Vosatorp D Dec. 9, 2016, 7:48 p.m. OK GNU C++14 TESTS 117 60 0 2400
62086915 marksman_ D Oct. 8, 2019, 2:50 a.m. OK GNU C++14 TESTS 117 60 0 2400
23620041 Ali.Pi D Jan. 7, 2017, 8:39 a.m. OK GNU C++14 TESTS 117 60 2252800 2400
60204293 jgy002 D Sept. 7, 2019, 7:28 a.m. OK GNU C++14 TESTS 117 62 0 2400
60254902 jzh817 D Sept. 8, 2019, 8:53 a.m. OK GNU C++14 TESTS 117 62 0 2400
69888373 vjudge2 D Jan. 31, 2020, 9:04 a.m. OK GNU C++17 TESTS 117 62 0 2400
69888322 vjudge4 D Jan. 31, 2020, 9:03 a.m. OK GNU C++17 TESTS 117 62 0 2400
60267062 __dungxibo123__ D Sept. 8, 2019, 1:50 p.m. OK GNU C++17 TESTS 117 62 0 2400
53834493 cohr314 D May 7, 2019, 12:56 a.m. OK GNU C++17 TESTS 117 62 0 2400
46241628 amnesiac_dusk D Nov. 26, 2018, 8:27 a.m. OK GNU C++17 TESTS 117 62 0 2400
43492943 3agwa D Sept. 27, 2018, 1:24 p.m. OK GNU C++17 TESTS 117 62 0 2400
39531957 ruo D June 23, 2018, 4:27 a.m. OK GNU C++17 TESTS 117 62 0 2400
69888678 vjudge5 D Jan. 31, 2020, 9:10 a.m. OK GNU C++17 TESTS 117 62 0 2400
47174720 Shayan.P D Dec. 17, 2018, 4:54 p.m. OK GNU C++17 TESTS 117 62 102400 2400
52675142 vjudge2 D April 13, 2019, 9:14 a.m. OK GNU C++17 TESTS 117 62 307200 2400
455881 AntonDubovik D May 15, 2011, 9:14 a.m. OK Haskell TESTS 117 110 3174400 2400
28719958 fengsuiyan D July 20, 2017, 9:22 a.m. OK Haskell TESTS 117 186 53350400 2400
452236 mmaxio D May 13, 2011, 5:02 p.m. OK Java 6 TESTS 117 90 43315200 2400
453668 madkite D May 13, 2011, 8:24 p.m. OK Java 6 TESTS 117 90 43417600 2400
545448 ostrovski.alex D July 14, 2011, 5:20 p.m. OK Java 6 TESTS 117 130 43110400 2400
453715 madkite D May 13, 2011, 8:42 p.m. OK Java 6 TESTS 117 140 43417600 2400
588296 xiaowuc1 D Aug. 6, 2011, 3:03 p.m. OK Java 6 TESTS 117 280 186880000 2400
588300 xiaowuc1 D Aug. 6, 2011, 3:05 p.m. OK Java 6 TESTS 117 280 190566400 2400
450131 ivan.metelsky D May 13, 2011, 4:17 p.m. OK Java 6 TESTS 117 330 43315200 2400
588293 xiaowuc1 D Aug. 6, 2011, 3:03 p.m. OK Java 6 TESTS 117 390 187904000 2400
456163 yaro D May 15, 2011, 4:23 p.m. OK Java 6 TESTS 117 610 73932800 2400
4874650 alibaba D Oct. 25, 2013, 5:30 a.m. OK Java 6 TESTS 117 1154 22323200 2400
2859334 niyaznigmatul D Dec. 30, 2012, 8:03 p.m. OK Java 7 TESTS 117 734 30822400 2400
8466905 I_love_Malika D Oct. 29, 2014, 8:40 a.m. OK Java 7 TESTS 117 1714 82739200 2400
14817995 dhrumil140396 D Dec. 15, 2015, 4:21 p.m. OK Java 8 TESTS 117 248 0 2400
23837468 Chapecoense D Jan. 15, 2017, 12:50 p.m. OK Java 8 TESTS 117 280 20582400 2400
61926114 Dukkha D Oct. 5, 2019, 2:40 p.m. OK Java 8 TESTS 117 716 23552000 2400
20669538 YakutovDmitriy D Sept. 16, 2016, 10:05 p.m. OK Java 8 TESTS 117 872 22732800 2400
11362676 hama-du D May 31, 2015, 3:58 a.m. OK Java 8 TESTS 117 1684 0 2400
62535467 StayAwayFromBitches D Oct. 13, 2019, 10:02 p.m. OK Java 8 TESTS 117 2026 0 2400
452385 Hadi_Asiaie D May 13, 2011, 5:05 p.m. OK Mono C# TESTS 117 330 14233600 2400
455118 AND1989 D May 14, 2011, 2:16 p.m. OK MS C++ TESTS 117 30 1331200 2400
908096 vjudge3 D Nov. 27, 2011, 12:50 p.m. OK MS C++ TESTS 117 30 1433600 2400
448758 al13n D May 13, 2011, 3:48 p.m. OK MS C++ TESTS 117 30 1638400 2400
458489 xhae D May 18, 2011, 7:21 a.m. OK MS C++ TESTS 117 30 1843200 2400
452736 Olja D May 13, 2011, 5:44 p.m. OK MS C++ TESTS 117 30 6451200 2400
455289 AND1989 D May 14, 2011, 4:52 p.m. OK MS C++ TESTS 117 50 1331200 2400
908086 vjudge4 D Nov. 27, 2011, 12:47 p.m. OK MS C++ TESTS 117 50 1433600 2400
455584 Edvard D May 14, 2011, 10:06 p.m. OK MS C++ TESTS 117 50 1638400 2400
454583 MikhailRubinchik.ru D May 14, 2011, 6:42 a.m. OK MS C++ TESTS 117 50 1843200 2400
539670 antonkov D July 9, 2011, 3:22 p.m. OK MS C++ TESTS 117 50 4915200 2400
69960278 vjudge5 D Feb. 1, 2020, 11:17 a.m. OK MS C++ 2017 TESTS 117 62 307200 2400
22843008 Vosatorp D Dec. 9, 2016, 7:56 p.m. OK PyPy 3 TESTS 117 528 7270400 2400
483700 owen_water D June 9, 2011, 1:27 a.m. OK Python 2 TESTS 117 110 4300800 2400
488913 cleaner_leon D June 16, 2011, 11:19 a.m. OK Python 2 TESTS 117 550 7884800 2400
6102279 atubo D March 22, 2014, 5:55 a.m. OK Python 2 TESTS 117 748 2969600 2400
453942 botay D May 13, 2011, 10:38 p.m. OK Python 2 TESTS 117 1470 2969600 2400

remove filters

Back to search problems