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 define S(x) to be the sum of digits of number x written in decimal system. For example, S(5) = 5 , S(10) = 1 , S(322) = 7 . We will call an integer x interesting if S(x + 1) < S(x) . In each test you will be given one integer n . Your task is to calculate the number of integers x such that 1 <= x <= n and x is interesting. The first line contains one integer t ( 1 <= t <= 1000 ) -- number of test cases. Then t lines follow, the i -th line contains one integer n ( 1 <= n <= 10^9 ) for the i -th test case. Print t integers, the i -th should be the answer for the i -th test case. The first interesting number is equal to 9 . "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
123373004 |
MTConan41 |
A |
July 22, 2021, 11:36 p.m. |
OK |
GNU C11 |
TESTS |
7 |
15 |
3686400 |
|
|
123379879 |
akash36437 |
A |
July 23, 2021, 2:16 a.m. |
OK |
GNU C11 |
TESTS |
7 |
15 |
3686400 |
|
|
123365752 |
abhinava_kv |
A |
July 22, 2021, 8:29 p.m. |
OK |
GNU C11 |
TESTS |
7 |
15 |
3686400 |
|
|
123356359 |
patil98varad |
A |
July 22, 2021, 6:39 p.m. |
OK |
GNU C11 |
TESTS |
7 |
30 |
3686400 |
|
|
123370665 |
mohamedxbenamor |
A |
July 22, 2021, 10:20 p.m. |
OK |
GNU C11 |
TESTS |
7 |
30 |
3686400 |
|
|
123370727 |
mohamedxbenamor |
A |
July 22, 2021, 10:22 p.m. |
OK |
GNU C11 |
TESTS |
7 |
30 |
3686400 |
|
|
123372120 |
AS01 |
A |
July 22, 2021, 11:04 p.m. |
OK |
GNU C11 |
TESTS |
7 |
31 |
3686400 |
|
|
123391204 |
kakkarot12345 |
A |
July 23, 2021, 4:59 a.m. |
OK |
GNU C11 |
TESTS |
7 |
31 |
3686400 |
|
|
123357713 |
Mercersfire |
A |
July 22, 2021, 6:48 p.m. |
OK |
GNU C11 |
TESTS |
7 |
31 |
3686400 |
|
|
123358681 |
Munjib_Hasan |
A |
July 22, 2021, 6:55 p.m. |
OK |
GNU C11 |
TESTS |
7 |
31 |
3686400 |
|
|
123387382 |
Spuersnitch |
A |
July 23, 2021, 4:04 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
0 |
3891200 |
|
|
123373761 |
1443356159 Capitalist_Wang |
A |
July 23, 2021, 12:07 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123388059 |
dfoi_cly |
A |
July 23, 2021, 4:15 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123386641 |
TheDWA |
A |
July 23, 2021, 3:54 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123384518 |
Capitalist_Wang |
A |
July 23, 2021, 3:24 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123382042 |
luogu_bot5 |
A |
July 23, 2021, 2:49 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123384498 |
Capitalist_Wang |
A |
July 23, 2021, 3:24 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123384450 |
Thauhid_13 |
A |
July 23, 2021, 3:24 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123380548 |
AC_Wong |
A |
July 23, 2021, 2:27 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123375380 |
qingchan |
A |
July 23, 2021, 12:54 a.m. |
OK |
GNU C++11 |
TESTS |
7 |
15 |
3686400 |
|
|
123373369 |
_CPE_ |
A |
July 22, 2021, 11:53 p.m. |
OK |
GNU C++14 |
TESTS |
7 |
0 |
3686400 |
|
|
123389854 |
cky_26 |
A |
July 23, 2021, 4:41 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123390402 |
Sirfiri |
A |
July 23, 2021, 4:48 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123389786 |
nick_1403 |
A |
July 23, 2021, 4:40 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123394950 |
Rakshak2 |
A |
July 23, 2021, 5:45 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123394936 |
atul47145 |
A |
July 23, 2021, 5:45 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123392826 |
sneha.shukladx |
A |
July 23, 2021, 5:20 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123392581 |
cicada2020 |
A |
July 23, 2021, 5:17 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123391599 |
yogesh028 |
A |
July 23, 2021, 5:04 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123391303 |
akash028 |
A |
July 23, 2021, 5:01 a.m. |
OK |
GNU C++14 |
TESTS |
7 |
15 |
3686400 |
|
|
123395951 |
Ashish_9810 |
A |
July 23, 2021, 5:57 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
0 |
3686400 |
|
|
123389708 |
KamruL_Hasan_ |
A |
July 23, 2021, 4:39 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
0 |
3788800 |
|
|
123395159 |
aaditya01 |
A |
July 23, 2021, 5:47 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123396362 |
A_pipe_dream |
A |
July 23, 2021, 6:02 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123395484 |
skankhunt_42 |
A |
July 23, 2021, 5:51 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123395387 |
Kokarott |
A |
July 23, 2021, 5:50 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123395296 |
dhruva_shashi |
A |
July 23, 2021, 5:49 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123394715 |
gertelrina |
A |
July 23, 2021, 5:42 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123394618 |
gyf23333 |
A |
July 23, 2021, 5:41 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123393360 |
KAVAN-DESAI |
A |
July 23, 2021, 5:27 a.m. |
OK |
GNU C++17 |
TESTS |
7 |
15 |
3686400 |
|
|
123388821 |
jafar00 |
A |
July 23, 2021, 4:26 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123392322 |
Nickeloy |
A |
July 23, 2021, 5:14 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123392590 |
Y25t |
A |
July 23, 2021, 5:17 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123392907 |
Satwik_Tiwari |
A |
July 23, 2021, 5:22 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123392973 |
CodingKnight |
A |
July 23, 2021, 5:22 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123390640 |
ginwAa |
A |
July 23, 2021, 4:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123390860 |
tushar2805 |
A |
July 23, 2021, 4:54 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123390979 |
Kevin_7 |
A |
July 23, 2021, 4:56 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123391924 |
suraj429 |
A |
July 23, 2021, 5:09 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123392280 |
Rundc09 |
A |
July 23, 2021, 5:13 a.m. |
OK |
GNU C++17 (64) |
TESTS |
7 |
15 |
4300800 |
|
|
123389974 |
muhammadmunna |
A |
July 23, 2021, 4:42 a.m. |
OK |
Go |
TESTS |
7 |
15 |
10649600 |
|
|
123372973 |
kareem3id |
A |
July 22, 2021, 11:35 p.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
23756800 |
|
|
123383669 |
mphillotry |
A |
July 23, 2021, 3:13 a.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
23756800 |
|
|
123385716 |
Erasylll |
A |
July 23, 2021, 3:41 a.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
23756800 |
|
|
123396254 |
Vijender8831 |
A |
July 23, 2021, 6 a.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
23859200 |
|
|
123390360 |
nitin23329 |
A |
July 23, 2021, 4:48 a.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
23961600 |
|
|
123359845 |
adhi_2311 |
A |
July 22, 2021, 7:07 p.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
23961600 |
|
|
123365795 |
DedsecKnight |
A |
July 22, 2021, 8:30 p.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
24064000 |
|
|
123363550 |
Pushkar-PM |
A |
July 22, 2021, 7:53 p.m. |
OK |
Java 11 |
TESTS |
7 |
171 |
24473600 |
|
|
123360545 |
tony_heart |
A |
July 22, 2021, 7:14 p.m. |
OK |
Java 11 |
TESTS |
7 |
186 |
23756800 |
|
|
123391740 |
nitin23329 |
A |
July 23, 2021, 5:06 a.m. |
OK |
Java 11 |
TESTS |
7 |
186 |
23961600 |
|
|
123359760 |
This_is_the_one |
A |
July 22, 2021, 7:06 p.m. |
OK |
Java 8 |
TESTS |
7 |
93 |
20377600 |
|
|
123366104 |
gagan_6730 |
A |
July 22, 2021, 8:35 p.m. |
OK |
Java 8 |
TESTS |
7 |
109 |
20377600 |
|
|
123393527 |
sagbis |
A |
July 23, 2021, 5:29 a.m. |
OK |
Java 8 |
TESTS |
7 |
109 |
20480000 |
|
|
123387811 |
BruteForcee |
A |
July 23, 2021, 4:11 a.m. |
OK |
Java 8 |
TESTS |
7 |
124 |
20377600 |
|
|
123355979 |
plemenite |
A |
July 22, 2021, 6:37 p.m. |
OK |
Java 8 |
TESTS |
7 |
124 |
20480000 |
|
|
123360906 |
SaltatoryConduction |
A |
July 22, 2021, 7:18 p.m. |
OK |
Java 8 |
TESTS |
7 |
124 |
20480000 |
|
|
123376124 |
amit_roy |
A |
July 23, 2021, 1:10 a.m. |
OK |
Java 8 |
TESTS |
7 |
139 |
20480000 |
|
|
123374520 |
milon34 |
A |
July 23, 2021, 12:30 a.m. |
OK |
Java 8 |
TESTS |
7 |
139 |
20480000 |
|
|
123381616 |
pikachu_pika_pika |
A |
July 23, 2021, 2:43 a.m. |
OK |
Java 8 |
TESTS |
7 |
139 |
20480000 |
|
|
123374770 |
milon34 |
A |
July 23, 2021, 12:38 a.m. |
OK |
Java 8 |
TESTS |
7 |
140 |
20480000 |
|
|
123377334 |
5612 |
A |
July 23, 2021, 1:34 a.m. |
OK |
JavaScript |
TESTS |
7 |
15 |
6963200 |
|
|
123377426 |
5612 |
A |
July 23, 2021, 1:35 a.m. |
OK |
JavaScript |
TESTS |
7 |
30 |
6963200 |
|
|
123356076 |
sedenion |
A |
July 22, 2021, 6:37 p.m. |
OK |
JavaScript |
TESTS |
7 |
30 |
6963200 |
|
|
123364622 |
reanimatorzon |
A |
July 22, 2021, 8:09 p.m. |
OK |
Kotlin |
TESTS |
7 |
109 |
20992000 |
|
|
123395112 |
yashrajsinghbais1234 |
A |
July 23, 2021, 5:47 a.m. |
OK |
MS C++ |
TESTS |
7 |
30 |
3891200 |
|
|
123362248 |
komalsatwik2002 |
A |
July 22, 2021, 7:35 p.m. |
OK |
MS C++ |
TESTS |
7 |
31 |
3891200 |
|
|
123369039 |
nya10 |
A |
July 22, 2021, 9:35 p.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
15 |
3686400 |
|
|
123359422 |
Tangerine |
A |
July 22, 2021, 7:02 p.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
15 |
3788800 |
|
|
123359633 |
AVP123 |
A |
July 22, 2021, 7:04 p.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
15 |
3788800 |
|
|
123359451 |
samnext9 |
A |
July 22, 2021, 7:02 p.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
15 |
3788800 |
|
|
123350085 |
Satyam_8920 |
A |
July 22, 2021, 5 p.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
15 |
3788800 |
|
|
123377487 |
Ir0nic_Joker |
A |
July 23, 2021, 1:37 a.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
30 |
3686400 |
|
|
123381298 |
ninaiswifename |
A |
July 23, 2021, 2:38 a.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
30 |
3788800 |
|
|
123375119 |
Xiaomostream |
A |
July 23, 2021, 12:47 a.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
30 |
3788800 |
|
|
123374111 |
zwb |
A |
July 23, 2021, 12:19 a.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
30 |
3788800 |
|
|
123389003 |
zxz__ |
A |
July 23, 2021, 4:29 a.m. |
OK |
MS C++ 2017 |
TESTS |
7 |
31 |
3686400 |
|
|
123370858 |
BugLeave |
A |
July 22, 2021, 10:25 p.m. |
OK |
.NET Core C# |
TESTS |
7 |
77 |
11264000 |
|
|
123362882 |
snape_here |
A |
July 22, 2021, 7:44 p.m. |
OK |
PyPy 2 |
TESTS |
7 |
233 |
33996800 |
|
|
123356841 |
armsusman |
A |
July 22, 2021, 6:42 p.m. |
OK |
PyPy 3 |
TESTS |
7 |
108 |
21708800 |
|
|
123388968 |
Huntersoulz |
A |
July 23, 2021, 4:28 a.m. |
OK |
PyPy 3 |
TESTS |
7 |
109 |
21504000 |
|
|
123355608 |
nogirosta |
A |
July 22, 2021, 6:36 p.m. |
OK |
PyPy 3 |
TESTS |
7 |
124 |
20172800 |
|
|
123385693 |
nesco |
A |
July 23, 2021, 3:41 a.m. |
OK |
PyPy 3 |
TESTS |
7 |
124 |
21606400 |
|
|
123363746 |
yash490 |
A |
July 22, 2021, 7:56 p.m. |
OK |
PyPy 3 |
TESTS |
7 |
124 |
21913600 |
|
|
123394750 |
woolysheep1208 |
A |
July 23, 2021, 5:43 a.m. |
OK |
PyPy 3 |
TESTS |
7 |
124 |
22732800 |
|
|
123347526 |
ninada |
A |
July 22, 2021, 4:51 p.m. |
OK |
PyPy 3 |
TESTS |
7 |
124 |
22835200 |
|
|
123368247 |
Inferno2332 |
A |
July 22, 2021, 9:19 p.m. |
OK |
PyPy 3 |
TESTS |
7 |
139 |
22732800 |
|
|
123382749 |
Amulya9876 |
A |
July 23, 2021, 2:59 a.m. |
OK |
PyPy 3 |
TESTS |
7 |
139 |
22732800 |
|
|
123358707 |
shivam_hbtu |
A |
July 22, 2021, 6:56 p.m. |
OK |
PyPy 3 |
TESTS |
7 |
139 |
22732800 |
|
|
123385931 |
biltharesatyendra |
A |
July 23, 2021, 3:44 a.m. |
OK |
Python 2 |
TESTS |
7 |
78 |
6758400 |
|
|
123389068 |
Taaroop |
A |
July 23, 2021, 4:29 a.m. |
OK |
Python 3 |
TESTS |
7 |
46 |
6963200 |
|
|
123365242 |
Ernestico |
A |
July 22, 2021, 8:19 p.m. |
OK |
Python 3 |
TESTS |
7 |
61 |
6963200 |
|
|
123390062 |
Theshiv |
A |
July 23, 2021, 4:44 a.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123382656 |
deepmukherjee7 |
A |
July 23, 2021, 2:58 a.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123382172 |
ritesh_43 |
A |
July 23, 2021, 2:51 a.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123373374 |
hue990 |
A |
July 22, 2021, 11:53 p.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123367691 |
danz100 |
A |
July 22, 2021, 9:06 p.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123367291 |
swagsy |
A |
July 22, 2021, 8:57 p.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123359681 |
prottoyfuad |
A |
July 22, 2021, 7:05 p.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123359296 |
yistarostin |
A |
July 22, 2021, 7:01 p.m. |
OK |
Python 3 |
TESTS |
7 |
62 |
6758400 |
|
|
123362822 |
GiackAloZ |
A |
July 22, 2021, 7:43 p.m. |
OK |
Rust |
TESTS |
7 |
46 |
3788800 |
|
|
123369334 |
IvanDyachenko |
A |
July 22, 2021, 9:42 p.m. |
OK |
Scala |
TESTS |
7 |
420 |
31334400 |
|
|
remove filters
Back to search problems