Submission details
Task:Deleting digits
Sender:aalto26em_001
Submission time:2026-09-28 16:41:24 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.06 sdetails
#60.05 sdetails
#70.05 sdetails
#80.06 sdetails
#90.07 sdetails
#100.09 sdetails
#110.09 sdetails
#120.09 sdetails
#130.05 sdetails

Code

def main():

    number = input()

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

    while int(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))







    

main()

Test details

Test 1

Verdict:

input
4

correct output
1

user output
0

Feedback: Incorrect character on line 1 col 1: expected "1", got "0"

Test 2

Verdict:

input
17

correct output
3

user output
10
9
0

Feedback: Output is longer than expected

Test 3

Verdict:

input
35

correct output
7

user output
30
27
20
18
10
...

Feedback: Output is longer than expected

Test 4

Verdict:

input
167

correct output
29

user output
160
154
149
140
136
...

Feedback: Output is longer than expected

Test 5

Verdict:

input
4434

correct output
687

user output
4430
4426
4420
4416
4410
...

Feedback: Output is longer than expected

Test 6

Verdict:

input
9722

correct output
1381

user output
9713
9704
9695
9686
9677
...

Feedback: Output is longer than expected

Test 7

Verdict:

input
37882

correct output
5406

user output
37874
37866
37858
37850
37842
...

Feedback: Output is longer than expected

Test 8

Verdict:

input
103330

correct output
13867

user output
103327
103320
103317
103310
103307
...

Feedback: Output is longer than expected

Test 9

Verdict:

input
562167

correct output
75527

user output
562160
562154
562148
562140
562134
...

Feedback: Output is longer than expected

Test 10

Verdict:

input
991919

correct output
127308

user output
991910
991901
991892
991883
991874
...

Feedback: Output is longer than expected

Test 11

Verdict:

input
999993

correct output
128206

user output
999984
999975
999966
999957
999948
...

Feedback: Output is longer than expected

Test 12

Verdict:

input
999999

correct output
128206

user output
999990
999981
999972
999963
999954
...

Feedback: Output is longer than expected

Test 13

Verdict:

input
23456

correct output
3364

user output
23450
23445
23440
23436
23430
...

Feedback: Output is longer than expected