Submission details
Task:Deleting digits
Sender:aalto26em_001
Submission time:2026-09-28 16:44:01 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.05 sdetails
#60.05 sdetails
#70.05 sdetails
#80.05 sdetails
#90.06 sdetails
#100.07 sdetails
#110.07 sdetails
#120.07 sdetails
#130.05 sdetails

Code

def main():

    number = input()

    count = 0

    working_number = int(number)
    str_num = list(str(working_number))

    while working_number != 0:

        biggest = 0
        for num in str_num:

            biggest = max(biggest, int(num))

        #print(biggest)

        working_number = int(working_number) - int(biggest)

        #print(working_number)
        str_num = list(str(working_number))

        count += 1


    return count



main()

Test details

Test 1

Verdict:

input
4

correct output
1

user output
(empty)

Feedback: Output is shorter than expected

Test 2

Verdict:

input
17

correct output
3

user output
(empty)

Feedback: Output is shorter than expected

Test 3

Verdict:

input
35

correct output
7

user output
(empty)

Feedback: Output is shorter than expected

Test 4

Verdict:

input
167

correct output
29

user output
(empty)

Feedback: Output is shorter than expected

Test 5

Verdict:

input
4434

correct output
687

user output
(empty)

Feedback: Output is shorter than expected

Test 6

Verdict:

input
9722

correct output
1381

user output
(empty)

Feedback: Output is shorter than expected

Test 7

Verdict:

input
37882

correct output
5406

user output
(empty)

Feedback: Output is shorter than expected

Test 8

Verdict:

input
103330

correct output
13867

user output
(empty)

Feedback: Output is shorter than expected

Test 9

Verdict:

input
562167

correct output
75527

user output
(empty)

Feedback: Output is shorter than expected

Test 10

Verdict:

input
991919

correct output
127308

user output
(empty)

Feedback: Output is shorter than expected

Test 11

Verdict:

input
999993

correct output
128206

user output
(empty)

Feedback: Output is shorter than expected

Test 12

Verdict:

input
999999

correct output
128206

user output
(empty)

Feedback: Output is shorter than expected

Test 13

Verdict:

input
23456

correct output
3364

user output
(empty)

Feedback: Output is shorter than expected