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 integers l and r , where l < r . We will add 1 to l until the result is equal to r . Thus, there will be exactly r-l additions performed. For each such addition, let's look at the number of digits that will be changed after it. For example: Changed digits always form a suffix of the result written in the decimal system. Output the total number of changed digits, if you want to get r from l , adding 1 each time. The first line contains an integer t ( 1 <= t <= 10^4 ). Then t test cases follow. Each test case is characterized by two integers l and r ( 1 <= l < r <= 10^9 ). For each test case, calculate the total number of changed digits if you want to get r from l , adding one each time. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
119101181 |
ssvb |
F |
June 10, 2021, 10:08 p.m. |
OK |
D |
TESTS |
6 |
889 |
39321600 |
|
|
119111843 |
Ab_Ever |
F |
June 11, 2021, 3:47 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
0 |
|
|
119108044 |
I_do_not_know |
F |
June 11, 2021, 2:33 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
0 |
|
|
119108535 |
zhangteer |
F |
June 11, 2021, 2:44 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
12083200 |
|
|
119120403 |
grass8cow |
F |
June 11, 2021, 5:50 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
30 |
0 |
|
|
119120214 |
notyour-X |
F |
June 11, 2021, 5:48 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
30 |
0 |
|
|
119113880 |
tunjiang |
F |
June 11, 2021, 4:22 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
30 |
0 |
|
|
119112394 |
Flyinghorse |
F |
June 11, 2021, 3:57 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
30 |
0 |
|
|
119110614 |
CaiXY06 |
F |
June 11, 2021, 3:24 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
30 |
0 |
|
|
119117859 |
farhan_alam2000 |
F |
June 11, 2021, 5:18 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
31 |
0 |
|
|
119117029 |
_Sunrise |
F |
June 11, 2021, 5:07 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
31 |
0 |
|
|
119121325 |
Fuad |
F |
June 11, 2021, 6:01 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119118666 |
cqmpa3624g |
F |
June 11, 2021, 5:29 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119116650 |
unexpected__surprise |
F |
June 11, 2021, 5:02 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119116607 |
murmu07 |
F |
June 11, 2021, 5:01 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119116030 |
arghakole |
F |
June 11, 2021, 4:53 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119114253 |
Shivam_2611 |
F |
June 11, 2021, 4:27 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119102932 |
namangpt2312 |
F |
June 10, 2021, 11:28 p.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119102447 |
caesarji |
F |
June 10, 2021, 11:04 p.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
0 |
|
|
119101713 |
HadyMosaad |
F |
June 10, 2021, 10:28 p.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
0 |
|
|
119098581 |
shreyanshshikhar2910 |
F |
June 10, 2021, 8:55 p.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
0 |
|
|
119120800 |
ItsOnlyMe |
F |
June 11, 2021, 5:55 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119120674 |
arzaen |
F |
June 11, 2021, 5:53 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119120250 |
_BOP_ |
F |
June 11, 2021, 5:48 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119120201 |
animesh328 |
F |
June 11, 2021, 5:47 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119119929 |
rashish_15 |
F |
June 11, 2021, 5:44 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119119891 |
saras_2299 |
F |
June 11, 2021, 5:44 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119117663 |
sparsh3.0 |
F |
June 11, 2021, 5:15 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119117428 |
aug16arpit |
F |
June 11, 2021, 5:12 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119116108 |
Edbert.H |
F |
June 11, 2021, 4:55 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
119115716 |
sraj1614 |
F |
June 11, 2021, 4:49 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
0 |
|
|
remove filters
Back to search problems