27442023-01-20 15:55:39kristofSzorzás gyakorláspython3Wrong answer 25/10017ms13200 KiB
N = int(input())

megvan = 0


for i in range(N):
    eredetiSzam = int(input())
    szam = eredetiSzam
    szLista = [0 for i in range(10)]
    szamlalo = 0
    while(1):
        szamlalo += 1

        if megvan == 10:
            print(szamlalo-1)
            break


        for j in str(szam):
            if szLista[int(j)] == 0:
                szLista[int(j)] += 1
                megvan += 1
            if megvan == 10:
                continue

        szam += eredetiSzam
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms11056 KiB
2Wrong answer17ms11240 KiB
subtask20/15
3Wrong answer17ms11552 KiB
subtask325/25
4Accepted17ms11816 KiB
5Accepted17ms11848 KiB
6Accepted17ms12360 KiB
7Accepted17ms12260 KiB
8Accepted17ms12568 KiB
9Accepted17ms12580 KiB
10Accepted17ms12632 KiB
11Accepted17ms12408 KiB
subtask40/20
12Wrong answer17ms12848 KiB
13Wrong answer17ms13084 KiB
subtask50/40
14Wrong answer17ms12792 KiB
15Wrong answer17ms12596 KiB
16Wrong answer17ms12780 KiB
17Wrong answer17ms12896 KiB
18Wrong answer17ms13008 KiB
19Wrong answer17ms13044 KiB
20Wrong answer17ms13200 KiB
21Wrong answer17ms12980 KiB
22Wrong answer17ms13140 KiB
23Wrong answer17ms13040 KiB