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'Let D(n) represent the sum of digits of n . For how many integers n where 10^{l} <= q n < 10^{r} satisfy D(k cdot n) = k cdot D(n) ? Output the answer modulo 10^9+7 . The first line contains an integer t ( 1 <= q t <= q 10^4 ) xe2 x80 x93 the number of test cases. Each test case contains three integers l , r , and k ( 0 <= q l < r <= q 10^9 , 1 <= q k <= q 10^9 ). For each test case, output an integer, the answer, modulo 10^9 + 7 . For the first test case, the only values of n that satisfy the condition are 1 and 2 . For the second test case, the only values of n that satisfy the condition are 1 , 10 , and 11 . For the third test case, all values of n between 10 inclusive and 100 exclusive satisfy the condition. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
265400012 |
iit2022213 |
G |
June 11, 2024, 6:46 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
61 |
0 |
|
|
265397090 |
yanfu1009 |
G |
June 11, 2024, 6:17 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
61 |
0 |
|
|
265437841 |
akshath07 |
G |
June 12, 2024, 5 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265433463 |
logicLuminator |
G |
June 12, 2024, 4:08 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265432452 |
Gopal_1 |
G |
June 12, 2024, 3:55 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265416918 |
chaoslong |
G |
June 11, 2024, 11:04 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265412914 |
ayush_r28 |
G |
June 11, 2024, 9:28 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265395702 |
enlighted_prani |
G |
June 11, 2024, 6:06 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265394528 |
minhph |
G |
June 11, 2024, 5:57 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
0 |
|
|
265426454 |
zombie_454946 |
G |
June 12, 2024, 2:36 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
5 |
62 |
1126400 |
|
|
265443898 |
Lonelyper |
G |
June 12, 2024, 6 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265437924 |
Tushal_Mendpara |
G |
June 12, 2024, 5:01 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265436922 |
rahulk736694 |
G |
June 12, 2024, 4:50 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265436144 |
4mDXc7yts8Nr |
G |
June 12, 2024, 4:40 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265434305 |
flandre.scarlet |
G |
June 12, 2024, 4:18 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265429281 |
ashutoshpatel9443 |
G |
June 12, 2024, 3:14 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265424839 |
saipranaydeep |
G |
June 12, 2024, 2:12 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265423837 |
Infinity_206 |
G |
June 12, 2024, 1:53 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265423542 |
nickxiao |
G |
June 12, 2024, 1:47 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265409400 |
leneza_41 |
G |
June 11, 2024, 8:29 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
5 |
46 |
0 |
|
|
265427627 |
Teranj |
G |
June 12, 2024, 2:52 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
31 |
0 |
|
|
265396881 |
dmraykhan |
G |
June 11, 2024, 6:16 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
31 |
0 |
|
|
265429696 |
N_z__ |
G |
June 12, 2024, 3:20 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
31 |
102400 |
|
|
265442971 |
silentsword255 |
G |
June 12, 2024, 5:51 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265442685 |
heisenberg_120 |
G |
June 12, 2024, 5:49 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265442065 |
Dark_543 |
G |
June 12, 2024, 5:43 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265441896 |
pranut |
G |
June 12, 2024, 5:41 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265441846 |
sameer_shreyas |
G |
June 12, 2024, 5:41 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265441327 |
tuanhung2008 |
G |
June 12, 2024, 5:36 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265441172 |
EN_SA |
G |
June 12, 2024, 5:35 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
5 |
46 |
0 |
|
|
265426736 |
coheshan |
G |
June 12, 2024, 2:40 a.m. |
OK |
GNU C11 |
TESTS |
5 |
93 |
102400 |
|
|
265437742 |
xylu |
G |
June 12, 2024, 4:59 a.m. |
OK |
Go |
TESTS |
5 |
61 |
512000 |
|
|
265429771 |
dhruv0902 |
G |
June 12, 2024, 3:21 a.m. |
OK |
Java 21 |
TESTS |
5 |
218 |
0 |
|
|
265436504 |
mnnit.prakharg |
G |
June 12, 2024, 4:45 a.m. |
OK |
Java 21 |
TESTS |
5 |
233 |
614400 |
|
|
265417261 |
Eslam_Ahmed |
G |
June 11, 2024, 11:13 p.m. |
OK |
Java 21 |
TESTS |
5 |
249 |
716800 |
|
|
265440171 |
priyaroy3370 |
G |
June 12, 2024, 5:25 a.m. |
OK |
Java 21 |
TESTS |
5 |
265 |
204800 |
|
|
265428282 |
_wisdom |
G |
June 12, 2024, 3 a.m. |
OK |
Java 21 |
TESTS |
5 |
265 |
512000 |
|
|
265436953 |
chiragsingh876 |
G |
June 12, 2024, 4:50 a.m. |
OK |
Java 21 |
TESTS |
5 |
374 |
1228800 |
|
|
265431098 |
Night1324 |
G |
June 12, 2024, 3:38 a.m. |
OK |
Java 8 |
TESTS |
5 |
264 |
0 |
|
|
265431231 |
achyut88 |
G |
June 12, 2024, 3:39 a.m. |
OK |
Java 8 |
TESTS |
5 |
265 |
0 |
|
|
265412698 |
VVellVVellVVell |
G |
June 11, 2024, 9:23 p.m. |
OK |
PyPy 3 |
TESTS |
5 |
249 |
4812800 |
|
|
265402469 |
aditya.pusalkar |
G |
June 11, 2024, 7:11 p.m. |
OK |
PyPy 3 |
TESTS |
5 |
327 |
9318400 |
|
|
265409140 |
Kefrov |
G |
June 11, 2024, 8:26 p.m. |
OK |
PyPy 3 |
TESTS |
5 |
374 |
9523200 |
|
|
265437775 |
ckkkk |
G |
June 12, 2024, 4:59 a.m. |
OK |
PyPy 3 |
TESTS |
5 |
406 |
9625600 |
|
|
265398371 |
I_know_8 |
G |
June 11, 2024, 6:29 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
139 |
3686400 |
|
|
265392582 |
FTGUPP |
G |
June 11, 2024, 5:48 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
3174400 |
|
|
265403076 |
c00lbr8in |
G |
June 11, 2024, 7:18 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
4915200 |
|
|
265394684 |
GiacAlex |
G |
June 11, 2024, 5:58 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
4915200 |
|
|
265391472 |
AyuAnchor |
G |
June 11, 2024, 5:40 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
5017600 |
|
|
265420133 |
snowythecat |
G |
June 12, 2024, 12:30 a.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
5427200 |
|
|
265413720 |
DeadMan69 |
G |
June 11, 2024, 9:45 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
5836800 |
|
|
265419238 |
NitroSpear |
G |
June 12, 2024, 12:07 a.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
140 |
6451200 |
|
|
265434851 |
gardengnome |
G |
June 12, 2024, 4:25 a.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
155 |
4198400 |
|
|
265401583 |
vetri |
G |
June 11, 2024, 7:01 p.m. |
OK |
PyPy 3-64 |
TESTS |
5 |
155 |
4505600 |
|
|
265395224 |
yawning_winner |
G |
June 11, 2024, 6:02 p.m. |
OK |
Python 3 |
TESTS |
5 |
124 |
0 |
|
|
265396067 |
ok12 |
G |
June 11, 2024, 6:09 p.m. |
OK |
Python 3 |
TESTS |
5 |
155 |
0 |
|
|
265409004 |
chirag_03 |
G |
June 11, 2024, 8:24 p.m. |
OK |
Python 3 |
TESTS |
5 |
155 |
102400 |
|
|
265440423 |
hahahhahoohohoho |
G |
June 12, 2024, 5:27 a.m. |
OK |
Python 3 |
TESTS |
5 |
171 |
0 |
|
|
265433519 |
DEAD_TCT |
G |
June 12, 2024, 4:09 a.m. |
OK |
Python 3 |
TESTS |
5 |
171 |
0 |
|
|
265397391 |
marszhanghaoliang |
G |
June 11, 2024, 6:20 p.m. |
OK |
Python 3 |
TESTS |
5 |
171 |
1024000 |
|
|
265400174 |
Ashish_Jha_ |
G |
June 11, 2024, 6:47 p.m. |
OK |
Python 3 |
TESTS |
5 |
250 |
0 |
|
|
265402634 |
RahulRM13 |
G |
June 11, 2024, 7:13 p.m. |
OK |
Python 3 |
TESTS |
5 |
296 |
1024000 |
|
|
265434586 |
vstiff |
G |
June 12, 2024, 4:21 a.m. |
OK |
Rust 2021 |
TESTS |
5 |
62 |
0 |
|
|
remove filters
Back to search problems