Codeforces Beta Round 51

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
55 Codeforces Beta Round 51 FINISHED False 7200 436831199 Jan. 14, 2011, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3936 ) D Beautiful numbers PROGRAMMING dp number theory 2400

B'Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by each of its nonzero digits. We will not argue with this and just count the quantity of beautiful numbers in given ranges. The first line of the input contains the number of cases t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910). Each of the next t lines contains two natural numbers li and ri (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x899 xe2 x80 x89 xc2 xb71018). Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cin (also you may use %I64d). Output should contain t numbers -- answers to the queries, one number per line -- quantities of beautiful numbers in given intervals (from li to ri, inclusively).'...

Tutorials

Round 51, A

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59068817 shinku_cc D Aug. 19, 2019, 3:23 a.m. OK Clang++17 Diagnostics TESTS 70 3742 21299200 2400
286768 evg-zhabotinsky D Feb. 17, 2011, 4:57 p.m. OK Delphi TESTS 70 1640 8294400 2400
395235 Mark_tven D April 17, 2011, 6:49 p.m. OK FPC TESTS 70 380 37888000 2400
395273 Sereja D April 17, 2011, 7:47 p.m. OK FPC TESTS 70 450 40857600 2400
45371498 luogu_bot1 D Nov. 6, 2018, 10:04 a.m. OK FPC TESTS 70 560 23244800 2400
2252989 zxh809444285 D Sept. 26, 2012, 1:06 p.m. OK FPC TESTS 70 687 18432000 2400
973093 waterkid D Dec. 23, 2011, 1:38 p.m. OK FPC TESTS 70 910 19456000 2400
31731243 vjudge4 D Oct. 26, 2017, 7:28 a.m. OK FPC TESTS 70 996 21708800 2400
1030656 yedeming D Jan. 12, 2012, 8:10 a.m. OK FPC TESTS 70 1130 43417600 2400
19515939 vv_sswwww D July 30, 2016, 11:44 a.m. OK FPC TESTS 70 2026 18432000 2400
41330688 Philchieh D Aug. 8, 2018, 8:32 a.m. OK FPC TESTS 70 3494 40652800 2400
41321953 Philchieh D Aug. 8, 2018, 1:55 a.m. OK FPC TESTS 70 3494 40652800 2400
12150369 sgtlaugh D July 21, 2015, 3:31 p.m. OK GNU C TESTS 70 62 2252800 2400
12150394 sgtlaugh D July 21, 2015, 3:33 p.m. OK GNU C TESTS 70 92 2252800 2400
19572863 vjudge3 D Aug. 2, 2016, 5:53 a.m. OK GNU C TESTS 70 498 25292800 2400
7046989 ItsLastDay D July 8, 2014, 11:51 a.m. OK GNU C TESTS 70 1340 1536000 2400
252468 LayCurse D Jan. 15, 2011, 5:43 a.m. OK GNU C TESTS 70 1670 7987200 2400
7064599 sgtlaugh D July 11, 2014, 4:04 p.m. OK GNU C TESTS 70 2652 46592000 2400
770442 1292765944 D Oct. 17, 2011, 6:47 a.m. OK GNU C TESTS 70 3060 24883200 2400
770389 1292765944 D Oct. 17, 2011, 4:52 a.m. OK GNU C TESTS 70 3060 24883200 2400
7064591 vjudge2 D July 11, 2014, 4 p.m. OK GNU C TESTS 70 3494 46592000 2400
17693594 vjudge1 D May 2, 2016, 9:36 p.m. OK GNU C TESTS 70 3494 48640000 2400
3692033 pkqs90 D May 8, 2013, 4:38 a.m. OK GNU C++ TESTS 70 46 2150400 2400
637114 vjudge5 D Aug. 24, 2011, 2:17 p.m. OK GNU C++ TESTS 70 60 3276800 2400
278534 I-juice D Feb. 10, 2011, 11:04 p.m. OK GNU C++ TESTS 70 60 3276800 2400
278531 I-juice D Feb. 10, 2011, 11:03 p.m. OK GNU C++ TESTS 70 60 3276800 2400
278527 I-juice D Feb. 10, 2011, 10:55 p.m. OK GNU C++ TESTS 70 60 3276800 2400
278524 I-juice D Feb. 10, 2011, 10:53 p.m. OK GNU C++ TESTS 70 60 3276800 2400
414310 DULGUUNBATMUNKH D April 28, 2011, 3:04 p.m. OK GNU C++ TESTS 70 60 3379200 2400
2016559 AkemiHomura D Aug. 15, 2012, 11:51 a.m. OK GNU C++ TESTS 70 60 3584000 2400
1667907 CherryTree D May 7, 2012, 1:19 p.m. OK GNU C++ TESTS 70 60 3891200 2400
1668032 CherryTree D May 7, 2012, 3:03 p.m. OK GNU C++ TESTS 70 60 4096000 2400
5342604 FancyCoder D Dec. 3, 2013, 1:08 p.m. OK GNU C++0x TESTS 70 62 4198400 2400
7327228 a654889339 D Aug. 2, 2014, 10:10 a.m. OK GNU C++0x TESTS 70 92 1945600 2400
7053375 wanbo D July 9, 2014, 1:15 p.m. OK GNU C++0x TESTS 70 248 20172800 2400
623974 vjudge5 D Aug. 20, 2011, 7:47 p.m. OK GNU C++0x TESTS 70 330 20787200 2400
10148563 vjudge5 D March 4, 2015, 1:39 p.m. OK GNU C++0x TESTS 70 404 206848000 2400
726429 Archon.JK D Sept. 27, 2011, 12:51 a.m. OK GNU C++0x TESTS 70 410 5222400 2400
1127731 eagle747 D Jan. 31, 2012, 3:38 a.m. OK GNU C++0x TESTS 70 440 20787200 2400
8711987 Bhaha D Nov. 16, 2014, 3 p.m. OK GNU C++0x TESTS 70 466 87347200 2400
3379759 2011330300713 D March 22, 2013, 10:54 a.m. OK GNU C++0x TESTS 70 499 32358400 2400
6927196 vjudge4 D June 20, 2014, 11:17 a.m. OK GNU C++0x TESTS 70 528 20172800 2400
12894586 ned_chu D Sept. 8, 2015, 9:02 a.m. OK GNU C++11 TESTS 70 62 2150400 2400
12894479 ned_chu D Sept. 8, 2015, 8:53 a.m. OK GNU C++11 TESTS 70 62 2150400 2400
12894065 ned_chu D Sept. 8, 2015, 8:25 a.m. OK GNU C++11 TESTS 70 62 2150400 2400
14101921 eddy1021 D Nov. 6, 2015, 9:07 a.m. OK GNU C++11 TESTS 70 62 5222400 2400
15439143 I_Love_Bofei D Jan. 19, 2016, 11:30 a.m. OK GNU C++11 TESTS 70 92 1638400 2400
12893914 ned_chu D Sept. 8, 2015, 8:14 a.m. OK GNU C++11 TESTS 70 92 2150400 2400
10915564 vjudge4 D April 28, 2015, 6:03 a.m. OK GNU C++11 TESTS 70 92 3788800 2400
18032493 ysxxj2 D May 22, 2016, 2:07 p.m. OK GNU C++11 TESTS 70 92 4300800 2400
31777740 yp0413150208 D Oct. 27, 2017, 2:46 a.m. OK GNU C++11 TESTS 70 92 19456000 2400
31777689 yp0413150208 D Oct. 27, 2017, 2:42 a.m. OK GNU C++11 TESTS 70 92 19456000 2400
34240184 XuZihan D Jan. 17, 2018, 5:06 a.m. OK GNU C++14 TESTS 70 62 28672000 2400
37264267 sggutier D April 13, 2018, 4:06 a.m. OK GNU C++14 TESTS 70 62 61542400 2400
32227717 IGVA D Nov. 11, 2017, 6:18 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32227600 IGVA D Nov. 11, 2017, 6:12 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32227547 IGVA D Nov. 11, 2017, 6:10 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32227507 IGVA D Nov. 11, 2017, 6:08 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32227219 IGVA D Nov. 11, 2017, 5:55 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32227063 IGVA D Nov. 11, 2017, 5:50 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32227029 IGVA D Nov. 11, 2017, 5:48 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
32226633 IGVA D Nov. 11, 2017, 5:30 p.m. OK GNU C++14 TESTS 70 92 2048000 2400
64165703 Mai-sanBestWaifu D Nov. 3, 2019, 4:11 p.m. OK GNU C++17 TESTS 70 92 2457600 2400
45070313 185217 D Oct. 29, 2018, 7:19 p.m. OK GNU C++17 TESTS 70 92 2457600 2400
45437177 vjudge3 D Nov. 8, 2018, 8:42 a.m. OK GNU C++17 TESTS 70 92 24473600 2400
61431502 vjudge4 D Sept. 28, 2019, 2:53 p.m. OK GNU C++17 TESTS 70 124 1843200 2400
61431444 vjudge1 D Sept. 28, 2019, 2:52 p.m. OK GNU C++17 TESTS 70 124 1843200 2400
61343507 vjudge3 D Sept. 27, 2019, 2:01 a.m. OK GNU C++17 TESTS 70 124 1843200 2400
55077442 siddhantray D June 4, 2019, 9:18 a.m. OK GNU C++17 TESTS 70 124 1843200 2400
52625210 vjudge2 D April 12, 2019, 2:43 a.m. OK GNU C++17 TESTS 70 124 24985600 2400
52625201 vjudge2 D April 12, 2019, 2:43 a.m. OK GNU C++17 TESTS 70 124 24985600 2400
54412674 vjudge4 D May 20, 2019, 10:49 a.m. OK GNU C++17 TESTS 70 124 60313600 2400
1110644 fluppy D Jan. 22, 2012, 3:40 p.m. OK Haskell TESTS 70 1090 22118400 2400
252077 cerealguy D Jan. 14, 2011, 6:29 p.m. OK Java 6 TESTS 70 440 58572800 2400
252071 cerealguy D Jan. 14, 2011, 6:26 p.m. OK Java 6 TESTS 70 450 58572800 2400
564804 Omar.Darwish D July 25, 2011, 8:03 a.m. OK Java 6 TESTS 70 625 18739200 2400
564822 Omar.Darwish D July 25, 2011, 8:12 a.m. OK Java 6 TESTS 70 640 51507200 2400
5698366 Zyflair D Jan. 15, 2014, 5:25 p.m. OK Java 6 TESTS 70 654 15052800 2400
564802 Omar.Darwish D July 25, 2011, 8:01 a.m. OK Java 6 TESTS 70 660 51507200 2400
252056 cerealguy D Jan. 14, 2011, 6:14 p.m. OK Java 6 TESTS 70 1550 58572800 2400
251993 S.Yesipenko D Jan. 14, 2011, 5:13 p.m. OK Java 6 TESTS 70 2670 94617600 2400
251433 uwi D Jan. 14, 2011, 10:47 a.m. OK Java 6 TESTS 70 3500 58777600 2400
1971417 ysyshtc D Aug. 2, 2012, 4:20 p.m. OK Java 7 TESTS 70 200 45260800 2400
1971380 ysyshtc D Aug. 2, 2012, 4:03 p.m. OK Java 7 TESTS 70 450 45056000 2400
7692793 mengshangqi D Sept. 6, 2014, 8:37 a.m. OK Java 7 TESTS 70 2806 144076800 2400
16851767 alibaba D March 21, 2016, 8:03 a.m. OK Java 8 TESTS 70 622 40038400 2400
49543682 vjudge2 D Feb. 6, 2019, 8:08 p.m. OK Java 8 TESTS 70 686 78131200 2400
49543684 aminul D Feb. 6, 2019, 8:08 p.m. OK Java 8 TESTS 70 716 78131200 2400
10539970 a654889339 D April 1, 2015, 9:02 a.m. OK Java 8 TESTS 70 904 48537600 2400
10516211 vjudge1 D March 29, 2015, 1:32 p.m. OK Java 8 TESTS 70 936 48537600 2400
32763891 vjudge3 D Nov. 29, 2017, 2 a.m. OK Java 8 TESTS 70 966 40550400 2400
12130550 radical D July 20, 2015, 12:47 p.m. OK Java 8 TESTS 70 966 47616000 2400
16837345 liyangliyang D March 20, 2016, 12:01 p.m. OK Java 8 TESTS 70 1028 40038400 2400
36290216 vjudge5 D March 15, 2018, 4:25 a.m. OK Java 8 TESTS 70 1154 100454400 2400
27788026 heifrank D June 15, 2017, 7:02 a.m. OK Java 8 TESTS 70 1276 38707200 2400
3645654 perfect D April 28, 2013, 4:11 a.m. OK MS C++ TESTS 70 78 1843200 2400
3325234 problem-solved D March 16, 2013, 10:50 a.m. OK MS C++ TESTS 70 78 1945600 2400
259829 LinJiYuan90 D Jan. 22, 2011, 4:09 p.m. OK MS C++ TESTS 70 90 3276800 2400
29216337 charlottebudong D Aug. 5, 2017, 10:40 a.m. OK MS C++ TESTS 70 92 4198400 2400
45435500 vjudge2 D Nov. 8, 2018, 7:40 a.m. OK MS C++ TESTS 70 92 20275200 2400
43517409 vjudge2 D Sept. 28, 2018, 5:59 a.m. OK MS C++ TESTS 70 92 20275200 2400
7733421 vjudge2 D Sept. 10, 2014, 8:30 a.m. OK MS C++ TESTS 70 92 23859200 2400
259828 LinJiYuan90 D Jan. 22, 2011, 4:08 p.m. OK MS C++ TESTS 70 110 20582400 2400
29342290 vjudge2 D Aug. 11, 2017, 3:45 a.m. OK MS C++ TESTS 70 122 4198400 2400
17754325 vjudge3 D May 6, 2016, 5:16 a.m. OK MS C++ TESTS 70 122 4608000 2400
59551454 920848348 D Aug. 27, 2019, 3:20 a.m. OK MS C++ 2017 TESTS 70 530 20889600 2400
58897359 vjudge2 D Aug. 16, 2019, 8:01 a.m. OK MS C++ 2017 TESTS 70 560 65433600 2400
58898740 vjudge5 D Aug. 16, 2019, 8:26 a.m. OK MS C++ 2017 TESTS 70 654 65433600 2400
58898710 vjudge3 D Aug. 16, 2019, 8:25 a.m. OK MS C++ 2017 TESTS 70 746 65433600 2400
63279500 vjudge2 D Oct. 24, 2019, 8:12 a.m. OK MS C++ 2017 TESTS 70 748 50688000 2400
52599439 Lordxx D April 11, 2019, 11:10 a.m. OK MS C++ 2017 TESTS 70 810 31334400 2400
69006626 vjudge2 D Jan. 18, 2020, 12:09 a.m. OK MS C++ 2017 TESTS 70 840 21708800 2400
60019837 ChaLemon D Sept. 4, 2019, 12:51 p.m. OK MS C++ 2017 TESTS 70 934 20480000 2400
58709112 AKPower_plus D Aug. 13, 2019, 11:34 a.m. OK MS C++ 2017 TESTS 70 966 40550400 2400
69976979 vjudge5 D Feb. 1, 2020, 3:15 p.m. OK MS C++ 2017 TESTS 70 966 50995200 2400
51447559 vjudge2 D March 18, 2019, 1:12 p.m. OK PyPy 3 TESTS 70 3680 43520000 2400

remove filters

Back to search problems