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"You are given two positive integers d and s . Find minimal positive integer n which is divisible by d and has sum of digits equal to s . The first line contains two positive integers d and s ( 1 <= d <= 500, 1 <= s <= 5000 ) separated by space. Print the required number or -1 if it doesn't exist. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
48324608 |
Khanh_Moriaty |
A |
Jan. 13, 2019, 11:11 a.m. |
OK |
FPC |
TESTS |
185 |
139 |
52633600 |
|
2200 |
44759072 |
C1ariS |
A |
Oct. 24, 2018, 5:47 a.m. |
OK |
GNU C++11 |
TESTS |
185 |
77 |
50688000 |
|
2200 |
53960388 |
ZhongJQ |
A |
May 10, 2019, 1:50 p.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
10240000 |
|
2200 |
44679806 |
zjwulbx |
A |
Oct. 22, 2018, 5:27 a.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
20172800 |
|
2200 |
44600887 |
searchstar |
A |
Oct. 20, 2018, 2:22 p.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
20582400 |
|
2200 |
44580606 |
bibibi sdqe Water_Sheep |
A |
Oct. 20, 2018, 8:27 a.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
23142400 |
|
2200 |
44610435 |
The.Last.Wizard |
A |
Oct. 20, 2018, 7:27 p.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
25190400 |
|
2200 |
44582828 |
cuizhuyefei Panole233 _Happy_New_Year_ |
A |
Oct. 20, 2018, 8:52 a.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
30720000 |
|
2200 |
44603758 |
trader |
A |
Oct. 20, 2018, 3:44 p.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
31334400 |
|
2200 |
44599680 |
Koning |
A |
Oct. 20, 2018, 1:47 p.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
32460800 |
|
2200 |
53642147 |
vjudge3 |
A |
May 1, 2019, 5:04 p.m. |
OK |
GNU C++11 |
TESTS |
185 |
93 |
32972800 |
|
2200 |
45179373 |
Jester sad ShahedMM |
A |
Nov. 1, 2018, 4:26 p.m. |
OK |
GNU C++14 |
TESTS |
185 |
92 |
23654400 |
|
2200 |
45163498 |
Qinz sfiction |
A |
Nov. 1, 2018, 10:15 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
10342400 |
|
2200 |
45141570 |
ShadowLight DmitryGrigorev |
A |
Oct. 31, 2018, 2:45 p.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
20582400 |
|
2200 |
61832701 |
Sortoite |
A |
Oct. 4, 2019, 7:02 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
22630400 |
|
2200 |
44622978 |
netflix |
A |
Oct. 21, 2018, 7:33 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
22835200 |
|
2200 |
45356226 |
vjudge2 |
A |
Nov. 6, 2018, 8:33 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
23040000 |
|
2200 |
44619507 |
ak532 |
A |
Oct. 21, 2018, 5:20 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
23040000 |
|
2200 |
45704151 |
luongskyfa |
A |
Nov. 14, 2018, 10:35 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
23244800 |
|
2200 |
44616357 |
Edgration. |
A |
Oct. 21, 2018, 2:04 a.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
23244800 |
|
2200 |
44610606 |
yurics nunes lucaasdamaso |
A |
Oct. 20, 2018, 7:34 p.m. |
OK |
GNU C++14 |
TESTS |
185 |
93 |
23347200 |
|
2200 |
44580281 |
zjp_shadow ShichengXiao zhou888 |
A |
Oct. 20, 2018, 8:24 a.m. |
OK |
GNU C++17 |
TESTS |
185 |
78 |
23552000 |
|
2200 |
44651826 |
bomo JKS_PL mateusz |
A |
Oct. 21, 2018, 11:41 a.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
13107200 |
|
2200 |
44604468 |
icebound |
A |
Oct. 20, 2018, 4:05 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
20684800 |
|
2200 |
47963901 |
the_silliest |
A |
Jan. 5, 2019, 11:05 a.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
23244800 |
|
2200 |
45219672 |
MagicWand |
A |
Nov. 2, 2018, 8:08 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
23244800 |
|
2200 |
44716906 |
EliasMera eidan Diegogrc |
A |
Oct. 22, 2018, 10:42 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
23244800 |
|
2200 |
68333523 |
Deckard157 |
A |
Jan. 6, 2020, 8:07 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
30412800 |
|
2200 |
46012917 |
KrukovAA |
A |
Nov. 20, 2018, 10:18 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
93 |
31027200 |
|
2200 |
53585109 |
betrue12 |
A |
April 30, 2019, 5:59 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
108 |
10240000 |
|
2200 |
49843298 |
IhateProgramming |
A |
Feb. 12, 2019, 7:43 p.m. |
OK |
GNU C++17 |
TESTS |
185 |
108 |
10752000 |
|
2200 |
44606451 |
Shadow377 |
A |
Oct. 20, 2018, 5:06 p.m. |
OK |
Go |
TESTS |
185 |
436 |
87040000 |
|
2200 |
48071818 |
Mohamed_Saad62 |
A |
Jan. 8, 2019, 12:47 a.m. |
OK |
Java 8 |
TESTS |
185 |
264 |
56115200 |
|
2200 |
45198905 |
CrazyFlower |
A |
Nov. 2, 2018, 8:50 a.m. |
OK |
Java 8 |
TESTS |
185 |
280 |
56012800 |
|
2200 |
46271177 |
2162782 |
A |
Nov. 27, 2018, 8:17 a.m. |
OK |
Java 8 |
TESTS |
185 |
280 |
56115200 |
|
2200 |
45170840 |
Noureldin |
A |
Nov. 1, 2018, 12:49 p.m. |
OK |
Java 8 |
TESTS |
185 |
514 |
38195200 |
|
2200 |
44580899 |
BaZ_ prasun123 aashrayagarwal |
A |
Oct. 20, 2018, 8:30 a.m. |
OK |
Java 8 |
TESTS |
185 |
514 |
39116800 |
|
2200 |
52573351 |
aminul |
A |
April 10, 2019, 3:10 p.m. |
OK |
Java 8 |
TESTS |
185 |
530 |
72192000 |
|
2200 |
57619175 |
satya26 |
A |
July 24, 2019, 3:27 a.m. |
OK |
Java 8 |
TESTS |
185 |
530 |
73113600 |
|
2200 |
65895463 |
yaoct |
A |
Nov. 28, 2019, 5:54 a.m. |
OK |
Java 8 |
TESTS |
185 |
576 |
118681600 |
|
2200 |
44735490 |
myzgg |
A |
Oct. 23, 2018, 12:38 p.m. |
OK |
Java 8 |
TESTS |
185 |
623 |
76697600 |
|
2200 |
44723720 |
ATSTNG Musin Aleksandr_Stark |
A |
Oct. 23, 2018, 6:57 a.m. |
OK |
Java 8 |
TESTS |
185 |
638 |
76083200 |
|
2200 |
45185018 |
dryush97 |
A |
Nov. 1, 2018, 7:24 p.m. |
OK |
MS C++ |
TESTS |
185 |
124 |
22732800 |
|
2200 |
44825263 |
nihan.tas.2016 |
A |
Oct. 25, 2018, 5:31 a.m. |
OK |
MS C++ |
TESTS |
185 |
139 |
33075200 |
|
2200 |
45058060 |
vjudge3 |
A |
Oct. 29, 2018, 1:34 p.m. |
OK |
MS C++ |
TESTS |
185 |
139 |
40652800 |
|
2200 |
49538963 |
vjudge4 |
A |
Feb. 6, 2019, 5:23 p.m. |
OK |
MS C++ |
TESTS |
185 |
140 |
131686400 |
|
2200 |
45077081 |
vjudge2 |
A |
Oct. 30, 2018, 2:05 a.m. |
OK |
MS C++ |
TESTS |
185 |
187 |
33075200 |
|
2200 |
44580969 |
lucyanna2018 ShadowSong |
A |
Oct. 20, 2018, 8:31 a.m. |
OK |
MS C++ |
TESTS |
185 |
202 |
20275200 |
|
2200 |
53641982 |
vjudge5 |
A |
May 1, 2019, 5:01 p.m. |
OK |
MS C++ |
TESTS |
185 |
764 |
21299200 |
|
2200 |
45167330 |
vjudge3 |
A |
Nov. 1, 2018, 11:34 a.m. |
OK |
MS C++ |
TESTS |
185 |
904 |
21401600 |
|
2200 |
53676940 |
vjudge3 |
A |
May 2, 2019, 4:28 p.m. |
OK |
MS C++ |
TESTS |
185 |
982 |
7168000 |
|
2200 |
44665887 |
CrashMaster |
A |
Oct. 21, 2018, 5:51 p.m. |
OK |
MS C++ |
TESTS |
185 |
1029 |
7168000 |
|
2200 |
44577701 |
|
A |
Oct. 20, 2018, 7:34 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
44577648 |
|
A |
Oct. 20, 2018, 7:34 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
44577356 |
|
A |
Oct. 20, 2018, 7:33 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
44577343 |
|
A |
Oct. 20, 2018, 7:33 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
44577278 |
|
A |
Oct. 20, 2018, 7:33 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
44577208 |
|
A |
Oct. 20, 2018, 7:33 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
44577156 |
|
A |
Oct. 20, 2018, 7:33 a.m. |
OK |
Unknown |
TESTS |
0 |
0 |
0 |
|
2200 |
remove filters
Back to search problems