submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s820373000 | p04045 | Wrong Answer | def check(array, string):
for i in array:
if i in string:
return False
return True
N, K = map(int, input().split())
D = input().split()
numbers = [i for i in range(1, 10001) if check(D, str(i))]
for num in numbers:
if num >= N:
print(num)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s043963696 | p04045 | Wrong Answer | x,k=open(0);m=set("1234567890")^set(k.split());n,_=map(int,x.split())
def d(i,s):
if i: return min([d(i-1,s+j)for j in m])
else: return 1e5 if int(s)<n else int(s)
print(d(4,"")) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s123621847 | p04045 | Wrong Answer | n = input().split()[0][::-1]
d = [int(i) for i in input().split()]
e = [i for i in range(10) if i not in d]
a = ""
c = 0
for i in n:
for j in e:
if j >= c + int(i):
a += str(j)
c = 0
break
else:
a += "0"
c = 1
if c > 0:
a += str(c)
print(a[::-1]) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s256520770 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(map(int,input().split()))
num=[]
for i in range(10):
if i not in d:
num.append(i)
#print(num)
num.sort()
digit=len(str(n))
ns=str(n)
ans=''
cnt=0
while cnt<digit:
for i in num:
if int(ns[cnt])>i:continue
if int(ns[cnt])==i:
ans+=str(i)
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s817781061 | p04045 | Wrong Answer | amount, num_cnt = map(int, input().split())
hate_list = list(map(int, input().split()))
num_list = []
for i in range(10):
if not i in hate_list:
num_list.append(i)
payment = ""
for i in range(len(str(amount))):
min_list = [k for k in num_list if k >= int(str(amount)[i])]
if len(min_list) > 0:
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s443769223 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(map(int,input().split()))
num=[]
for i in range(10):
if i not in d:
num.append(i)
#print(num)
num.sort()
digit=len(str(n))
ns=str(n)
ans=''
cnt=0
while cnt<digit:
for i in num:
if int(ns[cnt])>i:continue
if int(ns[cnt])==i:
ans+=str(i)
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s059614222 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(map(int,input().split()))
num=[]
for i in range(10):
if i not in d:
num.append(str(i))
#print(num)
digit=len(str(n))
ns=str(n)
ans=''
cnt=0
while cnt<digit:
for i in num:
if int(ns[cnt])>int(i):continue
if int(ns[cnt])==int(i):
ans+=i
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s120662741 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(map(int,input().split()))
num=[]
for i in range(10):
if i not in d:
num.append(str(i))
#print(num)
digit=len(str(n))
ns=str(n)
ans=''
cnt=0
while cnt<digit:
for i in num:
if int(ns[cnt])>int(i):continue
if int(ns[cnt])==int(i):
ans+=i
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s299153741 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(map(int,input().split()))
num=[]
for i in range(10):
if i not in d:
num.append(str(i))
#print(num)
digit=len(str(n))
ns=str(n)
ans=''
cnt=0
while cnt<digit:
for i in num:
if ns[cnt]>i:continue
if ns[cnt]==i:
ans+=i
else:
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s595253614 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
n, k = map(int,input().split())
d = [int(i) for i in input().split()]
num = [i for i in range(10)]
tmp = []
for i in num:
if not i in d:
tmp.append(str(i))
tmp.sort()
b = str(n)
ans = ''
count = 0
if len(set(b)) == 1 and b[0] == '9' and 9 in d:
b = '1' + '0' * len(b)
#prin... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s095030969 | p04045 | Wrong Answer | N,_ = map(int, input().split())
D = set(input().split())
for i in range(10001):
S = set(list(str(N)))
if not D & S:
break
N += 1
print(N) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s896366411 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
n, k = map(int,input().split())
d = [int(i) for i in input().split()]
num = [i for i in range(10)]
tmp = []
for i in num:
if not i in d:
tmp.append(str(i))
tmp.sort()
#print(tmp)
#a = n // 10 #nの桁数
b = str(n)
ans = ''
count = 0
for i in range(len(b)):
for j in tmp:
if b... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s001925498 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
n, k = map(int,input().split())
d = [int(i) for i in input().split()]
num = [i for i in range(10)]
tmp = []
for i in num:
if not i in d:
tmp.append(str(i))
tmp.sort()
#print(tmp)
#a = n // 10 #nの桁数
b = str(n)
ans = ''
for i in range(len(b)):
for j in tmp:
if b[i] == j:
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s382468911 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
n, k = map(int,input().split())
d = [int(i) for i in input().split()]
num = [i for i in range(10)]
tmp = []
for i in num:
if not i in d:
tmp.append(str(i))
tmp.sort()
#print(tmp)
#a = n // 10 #nの桁数
b = str(n)
ans = ''
for i in b:
for j in tmp:
if i <= j:
ans... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s472696609 | p04045 | Wrong Answer | N, K = list(map(int, input().split()))
D = set(input().split())
num = {str(i) for i in range(10)} - D
while True:
print(set(str(N)))
if set(str(N)) >= num:
ans = N
break
else:
N += 1
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s616491973 | p04045 | Wrong Answer | N, K = list(map(int, input().split()))
D = set(input().split())
num = {str(i) for i in range(10)} - D
while True:
print(set(str(N)))
if set(str(N)) == num:
ans = N
break
else:
N += 1
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s955262316 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = {x for x in input().split()}
for i in range(N, 10000):
l = set(list(str(i)))
if len(l & D) == 0:
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s141022066 | p04045 | Wrong Answer | n,k = map(int,input().split())
d = list(map(int,input().split()))
for i in range(10001):
if i < n:
continue
i1 = str(i)
flag = True
for j in range(len(i1)):
if not flag:
break
i2 = int(i1[j])
if i2 in d:
flag = False
if not flag:
conti... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s542322596 | p04045 | Wrong Answer | import functools
n,k=map(int,input().split())
d=list(map(int,input().split()))
for i in range(n,n*11):
l = [int(x) for x in list(str(i))]
for j in l:
#print(j)
if j in d :
break
print( int(functools.reduce(lambda x, y: x + y, [str(x) for x in l])))
exit() | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s954692066 | p04045 | Wrong Answer | n,k = [int(x) for x in input().split()]
d = [int(x) for x in input().split()]
for x in range(n, 10000):
ans = 10000
tmp = True
for y in str(x):
if int(y) in d:
tmp = False
break
if tmp:
ans = min(ans,x)
break
print(ans)
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s141695514 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = list(map(int,input().split()))
ans = N
N_li = list(str(N))
for i in range(len(N_li)):
while int(N_li[len(N_li)-1-i]) in D:
ans += 10**i
N_li = list(str(ans))
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s380585956 | p04045 | Wrong Answer | # /usr/bin/python3
# -*- coding: utf-8 -*-
from queue import Queue
from queue import LifoQueue as Stack
from math import sqrt, floor, ceil, log2
from fractions import gcd
from itertools import permutations, combinations
from operator import itemgetter
from functools import cmp_to_key
__MOD__=(10**9)+7
yn = 'YNeos'
j... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s461689013 | p04045 | Wrong Answer | # /usr/bin/python3
# -*- coding: utf-8 -*-
from queue import Queue
from queue import LifoQueue as Stack
from math import sqrt, floor, ceil, log2
from fractions import gcd
from itertools import permutations, combinations
from operator import itemgetter
from functools import cmp_to_key
__MOD__=(10**9)+7
yn = 'YNeos'
j... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s321379866 | p04045 | Wrong Answer | n, k = map(int, input().split())
dlist = set(map(int, input().split()))
antilist = list(set([0,1,2,3,4,5,6,7,8,9]) - (dlist))
res = []
digit = len(str(n))
exceeded = False
while digit != 0:
num = n // 10**(digit - 1) % 10
for ant in antilist:
if exceeded:
# print('1')
res.ap... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s416795707 | p04045 | Wrong Answer | n, k = map(int, input().split())
dlist = set(map(int, input().split()))
antilist = list(set([0,1,2,3,4,5,6,7,8,9]) - (dlist))
res = []
digit = len(str(n))
exceeded = False
while digit != 0:
num = n // 10**(digit - 1) % 10
for ant in antilist:
if exceeded:
# print('1')
res.ap... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s118332830 | p04045 | Wrong Answer | N,K = map(int,input().split())
d = set(map(str,input().split()))
OK = {str(i) for i in range(10)} - d
for i in range(N,10000):
if set(str(i)) <= OK:
print(i)
exit()
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s522222759 | p04045 | Wrong Answer | N,K = map(int,input().split())
d = set(map(str,input().split()))
OK = {str(i) for i in range(10)} - d
for i in range(N,10000):
if set(str(i)) <= OK:
print(i)
exit()
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s062437657 | p04045 | Wrong Answer | N,K = list(map(str, input().split()))
D = sorted(input().split())
W = []
P = ""
for i in range(10):
if str(i) not in D:
W.append(str(i))
for i in range(len(N)):
for j in range(len(W)):
if N[i] <= W[j]:
P += W[j]
break
if i == 0 and P == "":
if W[0] == "0":
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s625404271 | p04045 | Wrong Answer | """
kari1 = '1000 8'
kari2 = '1 3 4 5 6 7 8 9'
kari1 = '9999 1'
kari2 = '0'
in1 = kari1.split()
in2 = kari2
"""
in1 = input().split()
in2 = input()
tukaeru = []
for num1 in range(10):
if str(num1) not in in2:
tukaeru.append(str(num1))
nedan = []
for num1 in range(len(in1[0])):
nedan.append(in1[0][num1]... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s192402067 | p04045 | Wrong Answer | N, K, *D = open(0).read().split()
*N, = map(int, N)
*D, = map(int, D)
N = N[::-1]+[0]
for i in range(len(N)-1):
while N[i] in D:
N[i] += 1
if N[i] > 9:
N[i] %= 10
N[i+1] += 1
if N[i] > 0:
while N[i] in D:
N[i] += 1
i += 1
print(''.join([str(j) for j in N[:i][::-1]]))
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s180603882 | p04045 | Wrong Answer | N, K, *D = open(0).read().split()
*N, = map(int, N)
*D, = map(int, D)
N += [0]
for i in range(len(N)-1):
while N[i] in D:
N[i] += 1
if N[i] > 9:
N[i] %= 10
N[i+1] += 1
if N[i] > 0:
while N[i] in D:
N[i] += 1
i += 1
print(''.join([str(j) for j in N[:i][::-1]]))
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s913230914 | p04045 | Wrong Answer | n, k = input().split()
d = input().split()
valid = [i for i in range(10) if str(i) not in d]
ans = ''
if valid[-1] < int(n[0]):
if valid[0] == 0:
ans += str(valid[1])
else:
ans += str(valid[0])
ans += str(valid[0]) * len(n)
else:
for i, s in enumerate(n):
if i > 0 and ans[0] > n... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s146893256 | p04045 | Wrong Answer | n,n2 = list(map(int,input().split()))
n3 = set(map(int,input().split()))
if n3 ==0:
print(n)
else:
nlike ={1,2,3,4,5,6,7,8,9,} - n3
nlike=[int(i) for i in nlike]
print(nlike[0]*n)
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s330916372 | p04045 | Wrong Answer | from sys import stdin
lines = stdin.readlines()
counter = []
each_line = []
for i, line in enumerate(lines):
if i == 0:
counter = [int(x) for x in (line.rstrip().split())]
else:
each_line = [str(x) for x in (line.rstrip().split())]
str_n = str(counter[0])
digit = len(str_n)
for num in range(c... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s011029607 | p04045 | Wrong Answer | n, K = map(int, input().split())
d = list(map(int, input().split()))
m = n
dis = 0
nums = []
while m > 0:
dis += 1
nums.insert(0, m % 10)
m //= 10
ans = ""
for i in range(dis):
if nums[i] not in d:
ans += str(nums[i])
else:
a = nums[i]
while a in d:
a += 1
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s807211132 | p04045 | Wrong Answer | import sys
N, _ = map(int, input().split())
D = input().split()
answer = sys.maxsize
for x in range(N, 10000):
s = str(x)
if all([y not in s for y in D]):
answer = min(answer, x)
print(answer)
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s807393720 | p04045 | Wrong Answer | N, K = input().split()
D = set(map(int, input().split()))
x={i for i in range(10)}
y=x-D
z=''
for i in range(len(N)):
for j in y:
if j > int(N[i]):
z=z+str(j)
print(z+str(min(list(y)))*(len(N)-1-i))
exit()
elif j == int(N[i]):
z=z+str(j)
if... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s971821583 | p04045 | Wrong Answer | N, K = input().split()
D = set(map(int, input().split()))
x={i for i in range(10)}
y=x-D
z=''
for i in range(len(N)):
for j in y:
if j > int(N[i]):
z=z+str(j)
print(z+str(min(list(y)))*(len(N)-1-i))
exit()
elif j == int(N[i]):
z=z+str(j)
pr... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s298272757 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = input().split()
def unique(string, array):
for a1 in array:
if a1 in string:
return False
return True
amount = 0
total = 0
while True:
amount += 1
total = amount * N
if unique(str(total), D):
print(total)
exit()
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s561814063 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
def unique(arry1, arry2):
for a1 in arry1:
if a1 in arry2:
return False
return True
amount = 0
total = 0
while True:
amount += 1
total = amount * N
token = list(map(int, str(total)))
if unique(token, D):... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s958882473 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
def unique(arry1, arry2):
for a1 in arry1:
if a1 in arry2:
return False
return True
amount = 0
total = 0
while True:
amount += 1
total = amount * N
token = list(map(int, str(total)))
if unique(D, token):... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s638330186 | p04045 | Wrong Answer | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowe... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s252517907 | p04045 | Wrong Answer | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowe... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s506910668 | p04045 | Wrong Answer | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowe... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s174736736 | p04045 | Wrong Answer | n, k = map(int, input().split())
ds = input().split()
for i in range(n, 10001):
ok = True
for s in str(i):
if s in ds:
ok = False
break
if ok:
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s413531322 | p04045 | Wrong Answer | n, k = map(int, input().split())
ds = set(map(str, input().split()))
for i in range(n, 10001):
ok = True
for s in str(i):
if s in ds:
ok = False
break
if ok:
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s610270114 | p04045 | Wrong Answer | n, k = map(int, input().split())
ds = set(map(str, input().split()))
for i in range(n, 10000):
ok = True
for s in str(i):
if s in ds:
ok = False
if ok:
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s986840439 | p04045 | Wrong Answer | import sys
sys.setrecursionlimit(10**6)
n_price,k = map(str,input().split())
k = int(k)
n_length = len(n_price)
d_ng_list = list(input())
restrict = True
answer = ""
for s in range(10):
if str(s) not in d_ng_list:
min_number = str(s)
break
def find_number(i):
global restrict
if not restrict:
return min_numbe... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s939555793 | p04045 | Wrong Answer | miis=lambda:map(int,input().split())
lmiis=lambda:list(map(int,input().split()))
n,k=miis()
n_l=[int(i) for i in reversed(str(n))]
d=lmiis()
ans=[]
i=0
th=len(n_l)
while i<th:
while True:
if n_l[i] not in d:
ans.append(n_l[i])
i+=1
break
else:
if n_l[i]<=8:
n_l[i]+=1
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s809398290 | p04045 | Wrong Answer | n, k = map(int,input().split())
d = list(map(int,input().split()))
for i in range(n,10001):
x = 0
for j in str(i):
if int(j) in d:
x = 1
break
if x == 1:
pass
else:
break
print(i) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s243560861 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = list(map(str,input().split()))
count = 1
while True:
ans = N * count
if len(set(D) & set(list(str(ans)))) == 0:
break
count += 1
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s616608937 | p04045 | Wrong Answer | from sys import stdin
def check(n,s):
n=str(n)
for i in range(len(n)):
if int(n[i]) not in s:
return False
else:
return True
def main():
#入力
readline=stdin.readline
N,K=map(int,readline().split())
D=list(map(int,readline().split()))
s=set([0,1,2,3,4,5,6,7,8,... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s310532024 | p04045 | Wrong Answer | yen, num = list(map(int, input().split()))
dislike = list(map(int, input().split()))
dislike.sort()
a = [1]*10
ans = []
yenstr = list(str(yen))
for i in range(num):
a[dislike[i]] = 0
for i in range(10):
if a[i] != 0:
ans.append(i)
if ans[len(ans)-1]<int(yenstr[0]):
if ans[0] == 0:
yenstr.insert(0, an... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s331783644 | p04045 | Wrong Answer | yen, num = list(map(int, input().split()))
dislike = list(map(int, input().split()))
dislike.sort()
a = [1]*10
ans = []
yenstr = list(str(yen))
for i in range(num):
a[dislike[i]] = 0
for i in range(10):
if a[i] != 0:
ans.append(i)
for i in range(len(yenstr)):
for j in range(len(ans)):
if int(yenstr[i]... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s551634206 | p04045 | Wrong Answer | yen, num = list(map(int, input().split()))
dislike = list(map(int, input().split()))
dislike.sort()
a = [1]*10
yenstr = list(str(yen))
for i in range(num):
a[dislike[i]] = 0
#print(a)
for i in range(yen, 10001):
x = list(str(i))
for j in range(len(x)):
if a[int(x[j])] == 0:
#print(j, 'break')
b... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s588666686 | p04045 | Wrong Answer | n, k = list(map(int, input().split()))
d = set(input().split())
ans = 0
for i in range(n, 20001):
if set(list(str(i))) & d == set():
ans = i
break
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s565402082 | p04045 | Wrong Answer | n, k = list(map(int, input().split()))
d = set(input().split())
l = set(map(str, range(10))) - d
ans = 0
for i in range(n, 10001):
if set(list(str(i))) & d == set():
ans = i
break
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s094872044 | p04045 | Wrong Answer | n, k = list(map(int, input().split()))
d = set(input().split())
l = set(map(str, range(10))) - d
for i in range(n, 10001):
if set(list(str(i))) & d == set():
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s373442015 | p04045 | Wrong Answer | n, k = list(input().split())
d = list(map(int, input().split()))
n = list(map(int, list(n)))
ans = ""
for i in range(len(n)):
f = 1
if n[i] in d:
for j in range(10 - n[i]):
if n[i] + j not in d:
ans += str(n[i] + j)
f = 0
break
if f:
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s227292163 | p04045 | Wrong Answer | N,K=map(int,(input().split()))
li=[]
m=set(input())
for j in range(N,10000):
if len(set(m & set(str(j))))==0:
print(j)
break
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s672588323 | p04045 | Wrong Answer | N,K=map(int,(input().split()))
li=[]
m=set(input())
for j in range(N,10000):
if m & set(str(j)) == False:
print(j)
break
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s027366679 | p04045 | Wrong Answer | N,K=map(int,(input().split()))
li=list(map(int,input().split()))
for j in range(N,10000):
k=0
for t in str(j):
if int(t) in li:
k=1
break
else:
if k==0:
print(j)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s192229647 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
nums = [i for i in range(10)]
for d in D:
nums.remove(d)
digit = len(str(N))
ret = []
INF = 10**5
def dfs(cur, value):
if cur == digit:
if int(value) >= N:
return value
else:
return INF
for i in n... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s723688993 | p04045 | Wrong Answer | #!/usr/bin/python3
# -*- coding:utf-8 -*-
def main():
s, k = input().split()
n = len(s)
ds = list(map(int, input().split()))
ans = 0
flag = False
for i, c in enumerate(list(s)[::-1]):
c = int(c)
if flag:
c += 1
while c in ds:
c += 1
if c == 10:
flag = True
else:
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s620706004 | p04045 | Wrong Answer | n, k = map(int, input().split())
dis = [_ for _ in input().split()]
for yen in range(1, 10001):
if yen < n:
pass
else:
if len(set(list(str(yen))) & set(dis)) == 0:
print(yen)
exit()
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s407023665 | p04045 | Wrong Answer | N,K = list(map(int, input().split()))
D = list(map(int, input().split()))
i = 1
while i < 10000:
if i >= N:
j = str(i)
j = list(map(int, j))
if all(a not in D for a in j):
print(i)
exit()
else:
i += 1
continue
else:
i += 1 | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s505733112 | p04045 | Wrong Answer | N,K = list(map(int, input().split()))
D = list(map(int, input().split()))
L = list(range(10))
for i in D:
L.remove(i)
N = str(N)
N = list(map(int, N))
A = []
for i in range(len(N)):
for j in range(len(L)):
if i == 0:
if N[i] <= L[j]:
A.append(L[j])
break
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s832233262 | p04045 | Wrong Answer | N,K = list(map(int, input().split()))
D = list(map(int, input().split()))
L = list(range(10))
for i in D:
L.remove(i)
#print(L)
N = str(N)
N = list(map(int, N))
#print(N)
A = []
for i in range(len(N)):
# print(N[i])
for j in range(len(L)):
# print(L[j])
if N[i] <= L[j]:
A.appe... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s798721734 | p04045 | Wrong Answer | N,K = list(map(int, input().split()))
D = list(map(int, input().split()))
L = list(range(10))
for i in D:
L.remove(i)
print(L)
N = str(N)
N = list(map(int, N))
print(N)
A = []
for i in range(len(N)):
print(N[i])
for j in range(len(L)):
print(L[j])
if N[i] <= L[j]:
A.append(L... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s200436263 | p04045 | Wrong Answer | import sys
import numpy as np
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
from collections import deque, defaultdict, Counter
from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect impo... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s734991784 | p04045 | Wrong Answer | import sys
import numpy as np
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
from collections import deque, defaultdict, Counter
from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect impo... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s800480924 | p04045 | Wrong Answer | import sys
import numpy as np
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
from collections import deque, defaultdict, Counter
from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect impo... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s327590370 | p04045 | Wrong Answer | import sys
import numpy as np
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
from collections import deque, defaultdict, Counter
from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect impo... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s269308693 | p04045 | Wrong Answer | N,K = list(map(int, input().split()))
D = list(map(int, input().split()))
A = list(range(10))
for i in D:
A.remove(i)
j = str(N)#iを文字列に
L = list(map(int, j))#iの各行を数字としてリストに
B = []
for i in range(len(L)):
for j in range(len(A)):
if L[i] <= A[j]:
B.append(A[j])
break
B = ''.joi... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s873430677 | p04045 | Wrong Answer | #!/usr/bin/env python3
s,p = map(int,input().split())
n = str(s)
a = list(map(int,input().split()))
mi = -1
mi_non_zero = 0
for i in range(10):
if i not in a:
if mi == -1:
mi = i
if i != 0:
mi_non_zero = mi
break
else:
mi_non_zero... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s433810478 | p04045 | Wrong Answer | n,k = map(int, input().split())
d = list(input().split())
for i in range(n,10000):
for j in d:
if j in str(i):
break
else:
print (i)
exit () | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s953570071 | p04045 | Wrong Answer | n,k = map(int,input().split())
d = list(map(str, input().split()))
for i in range(n,10001):
for j in d:
if j in str(i):
break
else:
print (i)
exit () | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s410669256 | p04045 | Wrong Answer | n,k = map(int,input().split())
d = list(map(str, input().split()))
ans = n - 1
for i in range(0,10001):
ok = True
ans += 1
for j in range(len(str(ans))):
if str(ans)[j] in d:
ok = False
break
if ok:
print (ans)
exit () | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s144567342 | p04045 | Wrong Answer | n,k = map(int,input().split())
d = list(map(int, input().split()))
ans = n - 1
for i in range(n,10001):
ng=False
ans += 1
for j in range(len(str(ans))):
if int(str(ans)[j]) in d:
ng=True
break
if not ng:
print (ans)
exit () | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s657229235 | p04045 | Wrong Answer | n,k = map(int,input().split())
d = list(map(int, input().split()))
ans = n -1
for i in range(n,10000):
ng=False
ans += 1
for j in range(len(str(ans))):
if int(str(ans)[j]) in d:
ng=True
break
if not ng:
print (ans)
exit () | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s918145612 | p04045 | Wrong Answer | n,k = map(int,input().strip().split())
d = list(input().split())
for x in range(n,100000):
for y in d:
if y in str(x):
break
else:
print(x)
break
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s939475786 | p04045 | Wrong Answer | n, k = input().split()
lst = list(input().split())
res = ""
for i in range(int(n), 10000):
for j in lst:
if j in str(i):
break
else:
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s701088564 | p04045 | Wrong Answer | n, k = input().split()
lst = list(input().split())
res = ""
for i in range(int(n), 10000):
for j in lst:
if j in str(i):
break
if j == lst[len(lst) - 1] and not j in str(i):
print(i)
exit() | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s540926871 | p04045 | Wrong Answer | n, k = input().split()
lst = list(map(int, input().split()))
res = ""
for i in range(len(n)):
append = int(n[i])
while (1):
if append in lst:
append = append + 1
else:
break
res += str(append)
print(res) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s990771369 | p04045 | Wrong Answer | n, k = map(int, input().split())
d = list(map(int, input().split()))
digit = [str(i) for i in range(10) if not i in d]
ans = []
stack = [i for i in digit]
while stack:
s = stack.pop()
if int(s) >= n:
ans.append(s)
else:
for i in digit:
if len(i+s) <= len(str(n))+1:
stack.append(i+s)
print(m... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s132913775 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(input().split())
while True:
s=str(n)
for x in d:
if x in s:
break
print(n)
exit()
n+=1
print() | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s524523152 | p04045 | Wrong Answer | n, k = map(int, input().split())
d = list(map(int, input().split()))
digit = [str(i) for i in range(10) if not i in d]
ans = []
stack = [i for i in digit]
while stack:
s = stack.pop()
if int(s) >= n:
ans.append(s)
else:
for i in digit:
if len(i+s) <= len(str(n)):
stack.append(i+s)
if len(ans... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s985684599 | p04045 | Wrong Answer | n, k = map(int, input().split())
d = list(map(int, input().split()))
digit = [str(i) for i in range(10) if not i in d]
ans = []
stack = [i for i in digit]
while stack:
s = stack.pop()
if int(s) >= n:
ans.append(s)
else:
for i in digit:
if len(i+s) <= len(str(n)):
stack.append(i+s)
if len(ans... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s457219781 | p04045 | Wrong Answer | line1 = input()
line2 = input()
price, k = line1.split(" ")
num = line2.split(" ")
ans = ""
for w in price:
if w in num:
for i in range(int(w)+1, 10):
if str(i) not in num:
ans = ans + str(i)
break
else:
ans = ans + w
print(ans) | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s334593924 | p04045 | Wrong Answer | n, k = map(int, input().split())
A = list(map(str, input().split()))
for i in range(n, n+10000):
if len(set(str(i)) & set(A)) == 0:
print(i)
break | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s155893394 | p04045 | Wrong Answer | def main():
n,k=map(int,input().split())
d=set(map(int,input().split()))
ln=[int(i) for i in list(str(n))]
l=len(ln)
flag=True
x=min(set(range(10))-d)
for i in range(l):
if flag:
while ln[i] in d:
ln[i]+=1
flag=False
else:
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s094192156 | p04045 | Wrong Answer | n,k = map(int,input().split())
l = list(input().split())
for i in range(n,n+10001):
chk = True
for st in list(str(i)):
if st in l:
chk = False
if chk:
print(i)
exit() | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s054134869 | p04045 | Wrong Answer | n,k = map(int,input().split())
l = list(input().split())
for i in range(n,10001):
chk = True
for st in list(str(i)):
if st in l:
chk = False
if chk:
print(i)
exit() | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s735849764 | p04045 | Wrong Answer | n,k = map(int,input().split())
l = list(input().split())
for i in range(n,n+20000):
check = True
for j in list(str(i)):
if j in l:
check = False
if check:
print(i)
exit()
| 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s354183553 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(str, input().split()))
num_set = set(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'])
N_list = list(str(N))
diff_list = sorted(list(num_set.difference(set(D))))
if (list(set(D)&set(N_list)) == []):
print(N)
else:
str_n = ''
if '0' in diff_list:
n_li... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s060413076 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(str, input().split()))
num_set = set(['1', '2', '3', '4', '5', '6', '7', '8', '9'])
N_list = list(str(N))
diff_list = list(num_set.difference(set(D)))
if (list(set(D)&set(N_list)) == []):
print(N)
else:
str_n = ''
for i in [diff_list[0]]+[0]*len(N_list):
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s289531447 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(str, input().split()))
num_set = set(['1', '2', '3', '4', '5', '6', '7', '8', '9'])
N_list = list(str(N))
diff_list = list(num_set.difference(set(D)))
if (list(set(D)&set(N_list)) == [])|(list(set(D)&set(N_list)) == ['0']):
print(N)
else:
str_n = ''
for i in [... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s474308052 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(str, input().split()))
num_set = set(['1', '2', '3', '4', '5', '6', '7', '8', '9'])
N_list = list(str(N))
diff_list = list(num_set.difference(set(D)))
if list(set(D)&set(N_list)) == []:
print(N)
else:
str_n = ''
for i in [diff_list[0]]+[0]*len(N_list):
... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s295078688 | p04045 | Wrong Answer | import sys
import itertools
readline = lambda:sys.stdin.readline().rstrip()
N,K = readline().split()
dd = {int(s) for s in readline().split()}
table = [None] * 10
a = 10
for i in range(9,-1,-1):
if i not in dd:
a = i
table[i] = a
nn = [int(n) for n in N]
mm = [table[n] for n in nn]
tab_min = min(x for ... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
s060899039 | p04045 | Wrong Answer | import sys
import itertools
readline = lambda:sys.stdin.readline().rstrip()
N,K = readline().split()
dd = {int(s) for s in readline().split()}
table = [None] * 10
a = 10
for i in range(9,-1,-1):
if i not in dd:
a = i
table[i] = a
nn = [int(n) for n in N]
mm = [table[n] for n in nn]
tab_min = min(x for ... | 1000 8
1 3 4 5 6 7 8 9
| 2000
| <span class="lang-en">
<p>Score : <var>300</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha is very particular about numbers. There are <var>K</var> digits that she dislikes: <var>D_1, D_2, ..., D_K</var>.</p>
<p>She is shopping, and now paying at the cashier.
Her total is <var>N</var> y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.