Codeforces Beta Round 86 (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
113 Codeforces Beta Round 86 (Div. 1 Only) FINISHED False 7200 416329199 Sept. 8, 2011, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1240 ) C Double Happiness PROGRAMMING brute force math number theory 2200

B'On the math lesson a teacher asked each pupil to come up with his own lucky numbers. As a fan of number theory Peter chose prime numbers. Bob was more original. He said that number t is his lucky number, if it can be represented as: Now, the boys decided to find out how many days of the interval [l, xe2 x80 x89r] (l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r) are suitable for pair programming. They decided that the day i (l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r) is suitable for pair programming if and only if the number i is lucky for Peter and lucky for Bob at the same time. Help the boys to find the number of such days. The first line of the input contains integer numbers l, xe2 x80 x89r (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l, xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7108). In the only line print the number of days on the segment [l, xe2 x80 x89r], which are lucky for Peter and Bob at the same time.'...

Tutorials

Codeforces Beta Round #86 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
910539 Mazeev C Nov. 29, 2011, 3:11 p.m. OK Delphi TESTS 61 60 3481600 2200
682852 tourist C Sept. 8, 2011, 7:16 p.m. OK Delphi TESTS 61 890 921600 2200
710006 Toshik C Sept. 20, 2011, 5:50 p.m. OK Delphi TESTS 61 1800 921600 2200
1124617 vlad107 C Jan. 28, 2012, 10:12 p.m. OK Delphi TESTS 61 1910 3379200 2200
688482 ruban C Sept. 10, 2011, 2:03 p.m. OK Delphi TESTS 61 2940 1024000 2200
678665 CherryTree C Sept. 8, 2011, 4 p.m. OK Delphi TESTS 61 3410 921600 2200
3150341 AleksanderBalobanov C Feb. 20, 2013, 12:27 p.m. OK Delphi TESTS 61 4102 3686400 2200
687217 Depool C Sept. 9, 2011, 9:22 p.m. OK Delphi TESTS 61 4840 921600 2200
913861 coolinging C Dec. 2, 2011, 7:13 a.m. OK FPC TESTS 61 140 1024000 2200
685564 vilcheuski C Sept. 9, 2011, 9:09 a.m. OK FPC TESTS 61 380 1331200 2200
1388373 sillycross C March 23, 2012, 4:55 a.m. OK FPC TESTS 61 1220 1024000 2200
686029 superpear C Sept. 9, 2011, 12:08 p.m. OK FPC TESTS 61 1720 1024000 2200
683276 Rubanenko C Sept. 8, 2011, 7:46 p.m. OK FPC TESTS 61 2730 1126400 2200
8699116 torest C Nov. 15, 2014, 3:11 a.m. OK FPC TESTS 61 2791 2560000 2200
691894 giongto35 C Sept. 13, 2011, 4:53 a.m. OK FPC TESTS 61 3080 1024000 2200
731093 Jicote C Sept. 30, 2011, 1:20 a.m. OK FPC TESTS 61 3220 1843200 2200
1124616 vlad107 C Jan. 28, 2012, 10:10 p.m. OK FPC TESTS 61 4330 3481600 2200
5915875 Reventon1 C Feb. 7, 2014, 9:59 a.m. OK FPC TESTS 61 4586 50073600 2200
684032 stubbscroll C Sept. 8, 2011, 11:28 p.m. OK GNU C TESTS 61 190 1433600 2200
680528 zpl2 C Sept. 8, 2011, 4:35 p.m. OK GNU C TESTS 61 1300 2150400 2200
684269 scottai1 C Sept. 9, 2011, 1:20 a.m. OK GNU C TESTS 61 3590 106598400 2200
731952 alex_borisov C Sept. 30, 2011, 4:01 p.m. OK GNU C TESTS 61 4860 38912000 2200
7497995 vjudge3 C Aug. 18, 2014, 6:08 a.m. OK GNU C++ TESTS 61 30 1126400 2200
936547 UESTC_Defense C Dec. 9, 2011, 4:48 a.m. OK GNU C++ TESTS 61 30 1638400 2200
682834 pimpke C Sept. 8, 2011, 7:14 p.m. OK GNU C++ TESTS 61 50 1536000 2200
684605 csimstu C Sept. 9, 2011, 3:13 a.m. OK GNU C++ TESTS 61 50 2457600 2200
681294 goo.gl_SsAhv C Sept. 8, 2011, 4:49 p.m. OK GNU C++ TESTS 61 50 5632000 2200
680523 daizhenyang C Sept. 8, 2011, 4:35 p.m. OK GNU C++ TESTS 61 60 27443200 2200
7666495 Mothaiba C Sept. 2, 2014, 9:20 a.m. OK GNU C++ TESTS 61 61 102400 2200
4605561 CyberKasumi C Sept. 29, 2013, 1:48 p.m. OK GNU C++ TESTS 61 62 409600 2200
1259263 sandytea C March 3, 2012, 6:43 a.m. OK GNU C++ TESTS 61 90 1433600 2200
4325241 JustN C Aug. 22, 2013, 6:07 p.m. OK GNU C++ TESTS 61 92 409600 2200
1708289 whbm C May 21, 2012, 4:24 p.m. OK GNU C++0x TESTS 61 30 1638400 2200
684646 Archon.JK C Sept. 9, 2011, 3:26 a.m. OK GNU C++0x TESTS 61 390 1536000 2200
4621381 A_Le_K C Oct. 1, 2013, 3:28 p.m. OK GNU C++0x TESTS 61 1216 0 2200
2171715 EarlOfDitches C Sept. 15, 2012, 9:34 a.m. OK GNU C++0x TESTS 61 1671 1638400 2200
680311 sexyprincess91 C Sept. 8, 2011, 4:30 p.m. OK GNU C++0x TESTS 61 1880 1433600 2200
681415 chyx C Sept. 8, 2011, 4:51 p.m. OK GNU C++0x TESTS 61 2410 20787200 2200
6254859 marat.snowbear C April 4, 2014, 12:48 a.m. OK GNU C++0x TESTS 61 2526 133836800 2200
6724968 FancyCoder C May 28, 2014, 5:31 a.m. OK GNU C++0x TESTS 61 2588 6041600 2200
10262603 Silence95 C March 13, 2015, 8:09 p.m. OK GNU C++0x TESTS 61 2589 37580800 2200
10251735 AlexFetisov C March 12, 2015, 8:57 p.m. OK GNU C++0x TESTS 61 2823 37580800 2200
60227047 rainboy C Sept. 7, 2019, 3:23 p.m. OK GNU C11 TESTS 61 1856 37888000 2200
60224716 rainboy C Sept. 7, 2019, 2:50 p.m. OK GNU C11 TESTS 61 2995 37580800 2200
40992345 ReaLNero1 C July 31, 2018, 1:15 a.m. OK GNU C++11 TESTS 61 31 204800 2200
42269201 yang12138 C Aug. 30, 2018, 7:15 a.m. OK GNU C++11 TESTS 61 31 204800 2200
12884970 3013216027 C Sept. 7, 2015, 1:33 p.m. OK GNU C++11 TESTS 61 46 1126400 2200
11079652 wanbo C May 12, 2015, 3:27 p.m. OK GNU C++11 TESTS 61 109 614400 2200
31464731 Shayan C Oct. 17, 2017, 10:38 p.m. OK GNU C++11 TESTS 61 187 2150400 2200
26874539 alex20030190 C May 5, 2017, 6:47 a.m. OK GNU C++11 TESTS 61 280 0 2200
37321415 Icgapux C April 14, 2018, 9:52 a.m. OK GNU C++11 TESTS 61 514 3584000 2200
31267238 Arpa shengdebao C Oct. 13, 2017, 7:11 a.m. OK GNU C++11 TESTS 61 514 37683200 2200
12601892 Vlad_kv C Aug. 19, 2015, 11:09 a.m. OK GNU C++11 TESTS 61 826 3276800 2200
48450278 Hongzy C Jan. 16, 2019, 9:53 a.m. OK GNU C++11 TESTS 61 858 9318400 2200
52902986 pikmike C April 17, 2019, 11:44 a.m. OK GNU C++14 TESTS 61 1013 204800 2200
21899412 shanin C Oct. 30, 2016, 8:16 p.m. OK GNU C++14 TESTS 61 1076 307200 2200
23619784 Ali.Pi C Jan. 7, 2017, 8:23 a.m. OK GNU C++14 TESTS 61 1107 2048000 2200
29354693 _Jaykishan_Parmar C Aug. 11, 2017, 1:56 p.m. OK GNU C++14 TESTS 61 1138 1945600 2200
42230439 limn2o4 C Aug. 29, 2018, 6:20 a.m. OK GNU C++14 TESTS 61 1325 37580800 2200
52457592 codemaster8 C April 7, 2019, 12:20 p.m. OK GNU C++14 TESTS 61 1341 18841600 2200
21899413 shanin C Oct. 30, 2016, 8:16 p.m. OK GNU C++14 TESTS 61 1372 102400 2200
28304646 I_See_You C July 5, 2017, 1:11 p.m. OK GNU C++14 TESTS 61 1372 2048000 2200
30990749 Shisuko C Oct. 4, 2017, 11:40 a.m. OK GNU C++14 TESTS 61 1419 100966400 2200
30990660 dsjong C Oct. 4, 2017, 11:34 a.m. OK GNU C++14 TESTS 61 1528 37580800 2200
61655238 sudoBug C Oct. 1, 2019, 4:21 p.m. OK GNU C++17 TESTS 61 31 614400 2200
57716697 Okazaki_Yumemi C July 25, 2019, 3:02 a.m. OK GNU C++17 TESTS 61 218 0 2200
66044164 kenimo C Nov. 30, 2019, 2:37 p.m. OK GNU C++17 TESTS 61 717 0 2200
46283342 ivan100sic C Nov. 27, 2018, 2:34 p.m. OK GNU C++17 TESTS 61 920 50278400 2200
41415470 LiChenKoh C Aug. 10, 2018, 2:14 a.m. OK GNU C++17 TESTS 61 951 37580800 2200
53698297 cjrhahahahaha C May 3, 2019, 8:53 a.m. OK GNU C++17 TESTS 61 1107 9523200 2200
38129276 Yinku2017 C May 12, 2018, 6:05 a.m. OK GNU C++17 TESTS 61 1232 22425600 2200
38129690 Yinku2017 C May 12, 2018, 6:25 a.m. OK GNU C++17 TESTS 61 1341 22425600 2200
40765728 ruo C July 26, 2018, 6:19 a.m. OK GNU C++17 TESTS 61 1341 37580800 2200
41216672 vjudge5 C Aug. 4, 2018, 1:20 p.m. OK GNU C++17 TESTS 61 1403 37580800 2200
2101031 cojna C Sept. 6, 2012, 6:03 p.m. OK Haskell TESTS 61 1910 11059200 2200
686908 xenophobia C Sept. 9, 2011, 6:39 p.m. OK Haskell TESTS 61 4760 39936000 2200
1044678 calculus.saransh C Jan. 14, 2012, 4:57 a.m. OK Java 6 TESTS 61 450 43212800 2200
1044741 calculus.saransh C Jan. 14, 2012, 5:57 a.m. OK Java 6 TESTS 61 450 43212800 2200
677795 Hadi_Asiaie C Sept. 8, 2011, 3:47 p.m. OK Java 6 TESTS 61 1250 35328000 2200
689946 OgieKako C Sept. 11, 2011, 5:27 p.m. OK Java 6 TESTS 61 1280 35225600 2200
679901 mmaxio C Sept. 8, 2011, 4:22 p.m. OK Java 6 TESTS 61 2090 35840000 2200
678773 Narg C Sept. 8, 2011, 4:02 p.m. OK Java 6 TESTS 61 2130 73625600 2200
679371 yaro C Sept. 8, 2011, 4:13 p.m. OK Java 6 TESTS 61 2300 35840000 2200
679255 Egor C Sept. 8, 2011, 4:11 p.m. OK Java 6 TESTS 61 2380 55398400 2200
679986 Efgen C Sept. 8, 2011, 4:24 p.m. OK Java 6 TESTS 61 3080 35430400 2200
2272554 Azat_Yusupov C Oct. 1, 2012, 8:44 a.m. OK Java 6 TESTS 61 3296 0 2200
25472296 kushwaha_vi C March 14, 2017, 12:07 p.m. OK Java 8 TESTS 61 1669 26316800 2200
60227046 Dukkha C Sept. 7, 2019, 3:23 p.m. OK Java 8 TESTS 61 2277 41472000 2200
11364654 hama-du C May 31, 2015, 9:17 a.m. OK Java 8 TESTS 61 2839 18022400 2200
16960358 alibaba C March 26, 2016, 6:01 p.m. OK Java 8 TESTS 61 2932 101478400 2200
679430 eik0u C Sept. 8, 2011, 4:14 p.m. OK MS C++ TESTS 61 50 6656000 2200
690393 realnumber C Sept. 12, 2011, 1:19 a.m. OK MS C++ TESTS 61 160 1433600 2200
683541 Ixanezis C Sept. 8, 2011, 8:22 p.m. OK MS C++ TESTS 61 200 1638400 2200
689364 Hohol C Sept. 11, 2011, 9:55 a.m. OK MS C++ TESTS 61 230 1433600 2200
695484 Goofy57 C Sept. 15, 2011, 12:22 p.m. OK MS C++ TESTS 61 300 1433600 2200
678207 KADR C Sept. 8, 2011, 3:53 p.m. OK MS C++ TESTS 61 590 1433600 2200
1360338 goo.gl_SsAhv C March 16, 2012, 6:01 a.m. OK MS C++ TESTS 61 780 1433600 2200
1360334 goo.gl_SsAhv C March 16, 2012, 5:58 a.m. OK MS C++ TESTS 61 780 1433600 2200
1360340 goo.gl_SsAhv C March 16, 2012, 6:02 a.m. OK MS C++ TESTS 61 800 1433600 2200
1360331 goo.gl_SsAhv C March 16, 2012, 5:57 a.m. OK MS C++ TESTS 61 800 1433600 2200
709555 miniput C Sept. 20, 2011, 12:22 p.m. OK Python 2 TESTS 61 4510 128102400 2200

remove filters

Back to search problems