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.
Problems
B"We call a positive integer number fair if it is divisible by each of its nonzero digits. For example, 102 is fair (because it is divisible by 1 and 2 ), but 282 is not, because it isn't divisible by 8 . Given a positive integer n . Find the minimum integer x , such that n <= q x and x is fair. The first line contains number of test cases t ( 1 <= q t <= q 10^3 ). Each of the next t lines contains an integer n ( 1 <= q n <= q 10^{18} ). For each of t test cases print a single integer -- the least fair number, which is not less than n . Explanations for some test cases: "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
101886391 |
AlexRt |
B |
Dec. 20, 2020, 4:03 p.m. |
OK |
GNU C11 |
TESTS |
24 |
187 |
102400 |
|
|
101881590 |
mariamyshko |
B |
Dec. 20, 2020, 3:47 p.m. |
OK |
GNU C11 |
TESTS |
24 |
202 |
0 |
|
|
101894515 |
Alisa_Shalamkova |
B |
Dec. 20, 2020, 4:31 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
171 |
0 |
|
|
101874378 |
kirilllgurev |
B |
Dec. 20, 2020, 3:26 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
171 |
0 |
|
|
101923297 |
rmhasan |
B |
Dec. 21, 2020, 12:53 a.m. |
OK |
GNU C++11 |
TESTS |
24 |
186 |
0 |
|
|
101875125 |
hir0inmyheart |
B |
Dec. 20, 2020, 3:28 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
186 |
0 |
|
|
101919525 |
Dewesh |
B |
Dec. 20, 2020, 9:47 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
187 |
0 |
|
|
101902548 |
matte |
B |
Dec. 20, 2020, 4:59 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
187 |
0 |
|
|
101880174 |
antonov1684 |
B |
Dec. 20, 2020, 3:43 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
187 |
0 |
|
|
101879785 |
DiBrain |
B |
Dec. 20, 2020, 3:41 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
187 |
0 |
|
|
101875627 |
didiyl |
B |
Dec. 20, 2020, 3:29 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
187 |
0 |
|
|
101889552 |
ExDeath |
B |
Dec. 20, 2020, 4:14 p.m. |
OK |
GNU C++11 |
TESTS |
24 |
202 |
0 |
|
|
101929042 |
do_atA_all |
B |
Dec. 21, 2020, 4:31 a.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101912707 |
kitarp |
B |
Dec. 20, 2020, 7:04 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101898097 |
amuser |
B |
Dec. 20, 2020, 4:44 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101888302 |
e1turin |
B |
Dec. 20, 2020, 4:10 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101887086 |
Milken_ut |
B |
Dec. 20, 2020, 4:06 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101882518 |
amir2005 |
B |
Dec. 20, 2020, 3:50 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101869437 |
Lev2131 |
B |
Dec. 20, 2020, 3:16 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
202 |
0 |
|
|
101931353 |
Conqueror_965 |
B |
Dec. 21, 2020, 5:22 a.m. |
OK |
GNU C++14 |
TESTS |
24 |
217 |
0 |
|
|
101888195 |
AnastasiyaFedchenko1 |
B |
Dec. 20, 2020, 4:09 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
217 |
0 |
|
|
101882409 |
Sayl |
B |
Dec. 20, 2020, 3:50 p.m. |
OK |
GNU C++14 |
TESTS |
24 |
217 |
0 |
|
|
101899656 |
VovaLolKek |
B |
Dec. 20, 2020, 4:50 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
31 |
0 |
|
|
101932163 |
Ravivek080 |
B |
Dec. 21, 2020, 5:38 a.m. |
OK |
GNU C++17 |
TESTS |
24 |
62 |
204800 |
|
|
101894586 |
I_am_Loh |
B |
Dec. 20, 2020, 4:32 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
93 |
0 |
|
|
101876211 |
Pavarishko |
B |
Dec. 20, 2020, 3:31 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
93 |
204800 |
|
|
101876927 |
Silach53 |
B |
Dec. 20, 2020, 3:32 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
171 |
0 |
|
|
101874464 |
alxumik |
B |
Dec. 20, 2020, 3:26 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
171 |
0 |
|
|
101873307 |
Izenev |
B |
Dec. 20, 2020, 3:23 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
171 |
0 |
|
|
101865844 |
stefjen07 |
B |
Dec. 20, 2020, 3:11 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
171 |
0 |
|
|
101902608 |
fistinassall |
B |
Dec. 20, 2020, 4:59 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
186 |
0 |
|
|
101871942 |
_shaman_ |
B |
Dec. 20, 2020, 3:20 p.m. |
OK |
GNU C++17 |
TESTS |
24 |
186 |
0 |
|
|
101882180 |
despair_101 |
B |
Dec. 20, 2020, 3:49 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
62 |
0 |
|
|
101881192 |
Sokolovskaya |
B |
Dec. 20, 2020, 3:46 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
62 |
0 |
|
|
101869732 |
yarik1 |
B |
Dec. 20, 2020, 3:16 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
62 |
0 |
|
|
101879348 |
Arsen_loh |
B |
Dec. 20, 2020, 3:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101876669 |
EreminVladimir |
B |
Dec. 20, 2020, 3:32 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101874518 |
Betelgeyze |
B |
Dec. 20, 2020, 3:26 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101874449 |
Jekuper |
B |
Dec. 20, 2020, 3:26 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101873920 |
Xran1tel |
B |
Dec. 20, 2020, 3:25 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101873010 |
nikitaqqqq |
B |
Dec. 20, 2020, 3:23 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101872724 |
Pechalka |
B |
Dec. 20, 2020, 3:22 p.m. |
OK |
GNU C++17 (64) |
TESTS |
24 |
77 |
0 |
|
|
101888500 |
Vimtaid |
B |
Dec. 20, 2020, 4:10 p.m. |
OK |
Go |
TESTS |
24 |
1107 |
5324800 |
|
|
101915369 |
HoBoCTb |
B |
Dec. 20, 2020, 7:56 p.m. |
OK |
Haskell |
TESTS |
24 |
748 |
102400 |
|
|
101914278 |
HoBoCTb |
B |
Dec. 20, 2020, 7:31 p.m. |
OK |
Haskell |
TESTS |
24 |
780 |
102400 |
|
|
101914604 |
HoBoCTb |
B |
Dec. 20, 2020, 7:38 p.m. |
OK |
Haskell |
TESTS |
24 |
904 |
102400 |
|
|
101893807 |
onlytrall |
B |
Dec. 20, 2020, 4:29 p.m. |
OK |
Java 11 |
TESTS |
24 |
904 |
0 |
|
|
101881454 |
excavator |
B |
Dec. 20, 2020, 3:47 p.m. |
OK |
Java 11 |
TESTS |
24 |
1075 |
0 |
|
|
101874595 |
Shokersss |
B |
Dec. 20, 2020, 3:26 p.m. |
OK |
Java 8 |
TESTS |
24 |
327 |
0 |
|
|
101919086 |
xoszm |
B |
Dec. 20, 2020, 9:32 p.m. |
OK |
Java 8 |
TESTS |
24 |
327 |
0 |
|
|
101888196 |
volodamlv |
B |
Dec. 20, 2020, 4:09 p.m. |
OK |
Java 8 |
TESTS |
24 |
358 |
0 |
|
|
101881595 |
kriss182 |
B |
Dec. 20, 2020, 3:47 p.m. |
OK |
Java 8 |
TESTS |
24 |
607 |
0 |
|
|
101930409 |
rw6 |
B |
Dec. 21, 2020, 5:01 a.m. |
OK |
Java 8 |
TESTS |
24 |
1482 |
0 |
|
|
101873271 |
ALLorNIL |
B |
Dec. 20, 2020, 3:23 p.m. |
OK |
Java 8 |
TESTS |
24 |
1762 |
0 |
|
|
101894234 |
ViktoriaX |
B |
Dec. 20, 2020, 4:30 p.m. |
OK |
MS C++ |
TESTS |
24 |
1201 |
0 |
|
|
101871210 |
Egoryu |
B |
Dec. 20, 2020, 3:19 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
140 |
0 |
|
|
101879190 |
vasplot |
B |
Dec. 20, 2020, 3:39 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
156 |
0 |
|
|
101876292 |
gymn10 |
B |
Dec. 20, 2020, 3:31 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101897392 |
Zlat |
B |
Dec. 20, 2020, 4:42 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101888394 |
3eHuT4uk |
B |
Dec. 20, 2020, 4:10 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101886920 |
InoxBall |
B |
Dec. 20, 2020, 4:05 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101886242 |
borisVikVik |
B |
Dec. 20, 2020, 4:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101882367 |
pospeloval123 |
B |
Dec. 20, 2020, 3:50 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101879987 |
WaffleTerror |
B |
Dec. 20, 2020, 3:42 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101879136 |
Ivanyshka123 |
B |
Dec. 20, 2020, 3:39 p.m. |
OK |
MS C++ 2017 |
TESTS |
24 |
171 |
0 |
|
|
101873568 |
Pays |
B |
Dec. 20, 2020, 3:24 p.m. |
OK |
.NET Core C# |
TESTS |
24 |
592 |
4096000 |
|
|
101897090 |
Firewolf304 |
B |
Dec. 20, 2020, 4:41 p.m. |
OK |
.NET Core C# |
TESTS |
24 |
1076 |
3891200 |
|
|
101889014 |
KorolOrol |
B |
Dec. 20, 2020, 4:12 p.m. |
OK |
PascalABC.NET |
TESTS |
24 |
701 |
307200 |
|
|
101894279 |
UsmanovAzat |
B |
Dec. 20, 2020, 4:31 p.m. |
OK |
PascalABC.NET |
TESTS |
24 |
701 |
307200 |
|
|
101888829 |
nastuxakok |
B |
Dec. 20, 2020, 4:11 p.m. |
OK |
PascalABC.NET |
TESTS |
24 |
748 |
102400 |
|
|
101891143 |
BikmatovDA |
B |
Dec. 20, 2020, 4:20 p.m. |
OK |
PascalABC.NET |
TESTS |
24 |
779 |
102400 |
|
|
101879929 |
rjomba |
B |
Dec. 20, 2020, 3:42 p.m. |
OK |
PascalABC.NET |
TESTS |
24 |
795 |
102400 |
|
|
101922559 |
rimurts |
B |
Dec. 21, 2020, 12:12 a.m. |
OK |
PyPy 3 |
TESTS |
24 |
702 |
3891200 |
|
|
101875833 |
bublik_a_ne_zhvashka |
B |
Dec. 20, 2020, 3:30 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
826 |
3276800 |
|
|
101916857 |
Zlat |
B |
Dec. 20, 2020, 8:29 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
842 |
3379200 |
|
|
101908361 |
Mortus |
B |
Dec. 20, 2020, 6:09 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
857 |
4096000 |
|
|
101869334 |
IrinaKarpova7G |
B |
Dec. 20, 2020, 3:16 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
858 |
4096000 |
|
|
101874115 |
Aleksey16092006 |
B |
Dec. 20, 2020, 3:25 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
872 |
3072000 |
|
|
101868458 |
Golotin_Timur-1 |
B |
Dec. 20, 2020, 3:15 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
873 |
3379200 |
|
|
101870326 |
legion |
B |
Dec. 20, 2020, 3:17 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
873 |
3891200 |
|
|
101870806 |
brezhart |
B |
Dec. 20, 2020, 3:18 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
888 |
3379200 |
|
|
101866714 |
Tedor |
B |
Dec. 20, 2020, 3:12 p.m. |
OK |
PyPy 3 |
TESTS |
24 |
904 |
3584000 |
|
|
101879029 |
klkvr |
B |
Dec. 20, 2020, 3:39 p.m. |
OK |
Python 3 |
TESTS |
24 |
218 |
307200 |
|
|
101910642 |
artiartem |
B |
Dec. 20, 2020, 6:33 p.m. |
OK |
Python 3 |
TESTS |
24 |
982 |
307200 |
|
|
101876346 |
yosik |
B |
Dec. 20, 2020, 3:31 p.m. |
OK |
Rust |
TESTS |
24 |
467 |
409600 |
|
|
remove filters
Back to search problems