10775 | 2024-04-11 22:19:50 | 42 | Szorzás gyakorlás | python3 | Accepted 100/100 | 18ms | 13608 KiB |
from sys import stdin
input=stdin.readline
def solv():
N = input().strip()
n = int(N)
res = 1
s=set(N)
while len(s)<10:
res+=1
s|=set(str(n*res))
print(res)
for _ in range(int(input())):
solv()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 10732 KiB | ||||
2 | Accepted | 17ms | 11376 KiB | ||||
subtask2 | 15/15 | ||||||
3 | Accepted | 17ms | 11248 KiB | ||||
subtask3 | 25/25 | ||||||
4 | Accepted | 17ms | 11876 KiB | ||||
5 | Accepted | 17ms | 12108 KiB | ||||
6 | Accepted | 17ms | 12368 KiB | ||||
7 | Accepted | 17ms | 11788 KiB | ||||
8 | Accepted | 17ms | 12032 KiB | ||||
9 | Accepted | 17ms | 12240 KiB | ||||
10 | Accepted | 17ms | 12572 KiB | ||||
11 | Accepted | 17ms | 12576 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 17ms | 12460 KiB | ||||
13 | Accepted | 18ms | 12908 KiB | ||||
subtask5 | 40/40 | ||||||
14 | Accepted | 17ms | 13084 KiB | ||||
15 | Accepted | 17ms | 13024 KiB | ||||
16 | Accepted | 18ms | 12992 KiB | ||||
17 | Accepted | 17ms | 13184 KiB | ||||
18 | Accepted | 17ms | 13276 KiB | ||||
19 | Accepted | 17ms | 13352 KiB | ||||
20 | Accepted | 18ms | 13380 KiB | ||||
21 | Accepted | 17ms | 13584 KiB | ||||
22 | Accepted | 17ms | 13608 KiB | ||||
23 | Accepted | 17ms | 13332 KiB |