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's call a positive integer n ordinary if in the decimal notation all its digits are the same. For example, 1 , 2 and 99 are ordinary numbers, but 719 and 2021 are not ordinary numbers. For a given number n , find the number of ordinary numbers among the numbers from 1 to n . The first line contains one integer t ( 1 <= t <= 10^4 ). Then t test cases follow. Each test case is characterized by one integer n ( 1 <= n <= 10^9 ). For each test case output the number of ordinary numbers among numbers from 1 to n . "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
115380871 |
Cccc23333 |
B |
May 6, 2021, 5:30 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3686400 |
|
|
115352643 |
g.temurkan |
B |
May 5, 2021, 7:54 p.m. |
OK |
GNU C++11 |
TESTS |
4 |
15 |
3686400 |
|
|
115368424 |
ZJH111111 |
B |
May 6, 2021, 2:25 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3891200 |
|
|
115366807 |
silentman |
B |
May 6, 2021, 1:47 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3891200 |
|
|
115366545 |
silentman |
B |
May 6, 2021, 1:40 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3891200 |
|
|
115363870 |
nqrbjwd |
B |
May 6, 2021, 12:20 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3891200 |
|
|
115346702 |
Fakrul |
B |
May 5, 2021, 6:40 p.m. |
OK |
GNU C++11 |
TESTS |
4 |
15 |
3891200 |
|
|
115359508 |
Rokaya_M |
B |
May 5, 2021, 10:06 p.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3891200 |
|
|
115383781 |
Cai_ruBbish_Ji |
B |
May 6, 2021, 6 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3891200 |
|
|
115366320 |
Ninelife_Cat |
B |
May 6, 2021, 1:34 a.m. |
OK |
GNU C++11 |
TESTS |
6 |
15 |
3993600 |
|
|
115348268 |
shahil198 |
B |
May 5, 2021, 6:57 p.m. |
OK |
GNU C++14 |
TESTS |
4 |
15 |
0 |
|
|
115373318 |
plutus_atlantic |
B |
May 6, 2021, 3:50 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115380191 |
vrintle |
B |
May 6, 2021, 5:23 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115379129 |
mercuryVapor |
B |
May 6, 2021, 5:11 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115378299 |
arghakole |
B |
May 6, 2021, 5:01 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115377999 |
sasnitkkr |
B |
May 6, 2021, 4:57 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115377741 |
Rexik_Geroj |
B |
May 6, 2021, 4:54 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115376099 |
ParthDwivedi |
B |
May 6, 2021, 4:32 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115375039 |
mohamed_moumou |
B |
May 6, 2021, 4:16 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115374324 |
its_aena |
B |
May 6, 2021, 4:05 a.m. |
OK |
GNU C++14 |
TESTS |
6 |
15 |
3686400 |
|
|
115352018 |
sgyuri |
B |
May 5, 2021, 7:44 p.m. |
OK |
.NET Core C# |
TESTS |
4 |
140 |
12697600 |
|
|
remove filters
Back to search problems