6222 | 2023-11-08 11:38:23 | SzorenyiZalanAndras | Szorzás gyakorlás | python3 | Accepted 100/100 | 20ms | 13876 KiB |
def main():
n=int(input())
for _ in range (n):
a=int(input())
mo=0
k=1
nfound=[0,1,2,3,4,5,6,7,8,9]
while len(nfound)>0:
b=k*a
al=list(map(int,str(b)))
for i in al[:]:
if i in nfound:
nfound.remove(i)
k+=1
mo+=1
print(mo)
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 11060 KiB | ||||
2 | Accepted | 17ms | 11076 KiB | ||||
subtask2 | 15/15 | ||||||
3 | Accepted | 17ms | 11352 KiB | ||||
subtask3 | 25/25 | ||||||
4 | Accepted | 17ms | 11748 KiB | ||||
5 | Accepted | 17ms | 11800 KiB | ||||
6 | Accepted | 17ms | 11480 KiB | ||||
7 | Accepted | 17ms | 12016 KiB | ||||
8 | Accepted | 17ms | 11860 KiB | ||||
9 | Accepted | 17ms | 12064 KiB | ||||
10 | Accepted | 17ms | 12496 KiB | ||||
11 | Accepted | 17ms | 12592 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 18ms | 12600 KiB | ||||
13 | Accepted | 18ms | 12520 KiB | ||||
subtask5 | 40/40 | ||||||
14 | Accepted | 17ms | 12472 KiB | ||||
15 | Accepted | 20ms | 12900 KiB | ||||
16 | Accepted | 18ms | 13016 KiB | ||||
17 | Accepted | 19ms | 13056 KiB | ||||
18 | Accepted | 19ms | 13376 KiB | ||||
19 | Accepted | 19ms | 13656 KiB | ||||
20 | Accepted | 19ms | 13332 KiB | ||||
21 | Accepted | 20ms | 13156 KiB | ||||
22 | Accepted | 19ms | 13392 KiB | ||||
23 | Accepted | 19ms | 13876 KiB |