submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s366901100 | p04045 | Wrong Answer | N, K = map(int, input().split())
F = set(range(10)) - set(map(int, input().split()))
w = N
a = 1
while w > 0:
if w % 10 in F:
w //= 10
a *= 10
else:
w += 1
N += a
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... |
s340056397 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [max(use) for i in range(len(N_list))]
mapans = map(str,ans)
x = int(''.join(mapans))
if N == x:
print(x)
elif N > x:
if use[0]!= 0:
ans = [use[... | 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... |
s543414915 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [max(use) for i in range(len(N_list))]
mapans = map(str,ans)
x = int(''.join(mapans))
if N == x:
print(x)
elif N > x:
if use[0]!= 0:
ans = [use[... | 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... |
s599209337 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [max(use) for i in range(len(N_list))]
mapans = map(str,ans)
x = int(''.join(mapans))
if N == x:
print(x)
elif N > x:
if use[0]!= 0:
ans = [use[... | 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... |
s443883684 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [max(use) for i in range(len(N_list))]
mapans = map(str,ans)
x = int(''.join(mapans))
if N == x:
print(x)
elif N > x:
if use[0]!= 0:
ans = [use[... | 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... |
s323022538 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [max(use) for i in range(len(N_list))]
mapans = map(str,ans)
x = int(''.join(mapans))
if N == x:
print(x)
else:
if N > x:
if use[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... |
s999094024 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [max(use) for i in range(len(N_list))]
if N > max(use):
if use[0]!= 0:
ans = [use[0] for i in range(len(N_list)+1)]
else:
ans = [use[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... |
s627837256 | p04045 | Wrong Answer | N,K = map(int,input().split())
D = set(map(int,input().split()))
A = {1,2,3,4,5,6,7,8,9,0}
N_list = [int(c) for c in str(N)]
use = sorted(list(A - D))
ans = [min(use) for i in range(len(N_list))]
if N_list[0] > max(use):
if use[0]!= 0:
ans = [use[0] for i in range(len(N_list)+1)]
else:
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... |
s099474452 | p04045 | Wrong Answer | # encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l 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... |
s059997193 | p04045 | Wrong Answer | # encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l 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... |
s240026232 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(str, input().split()))
for i in range(N, 10000):
flag = True
for j in str(i):
if j in D:
flag = False
break
if flag:
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... |
s781206802 | p04045 | Wrong Answer | N, K = map(int, input().split())
dislike_num = list(map(int, input().split()))
def check_contain(cost):
contain = False
for dn in dislike_num:
if str(cost).count(str(dn)) != 0:
return True
return contain
for i in range(N, 10000):
if not check_contain(i):
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... |
s715831514 | p04045 | Wrong Answer | N, K = map(int, input().split())
dislike_num = list(map(int, input().split()))
def check_contain(cost):
for dn in dislike_num:
if str(cost).count(str(dn)) == 0:
return False
else:
return True
for i in range(N, 10000):
if not check_contain(i):
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... |
s856280488 | p04045 | Wrong Answer | N,K=map(int,input().split())
D=list(input().split())
while N<100000:
fr=False
for j in D:
if j in str(N):
N+=1
fr=True
break
if fr:
continue
else:
print(N)
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... |
s466149529 | p04045 | Wrong Answer | import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time
sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
def LI(): return list(map(int,input().split()))
def I(): return int(input())
def LS(): return input().split()
def S(): return input()
def main():
n,k=LI()
l=LS()
for i 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... |
s381772622 | p04045 | Wrong Answer | [n,k]=[int(_) for _ in input().split()]
d=[int(_) for _ in input().split()]
while True:
t=str(n).split()
for _t in t:
if _t in d:
n+=1
continue
break
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... |
s344873323 | p04045 | Wrong Answer | import sys
N, K = map(int, sys.stdin.readline().split())
D = list(map(int, sys.stdin.readline().split()))
number_set = {0,1,2,3,4,5,6,7,8,9}
iroha_set = set(D)
usage_set = number_set - iroha_set
usage_list = list(usage_set)
str_N = str(N)
ans_list = []
str_list = []
for i in range(len(str_N)):
str_list.append(s... | 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... |
s292528115 | p04045 | Wrong Answer |
n, m = [ int(v) for v in input().split() ]
num_list = [ v for v in input().split() ]
for i in range(n,10001):
if all([ ( v not in num_list ) for v in list(str(i))]):
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... |
s619199172 | p04045 | Wrong Answer | def equal(n, available):
return n in available
def less(n, available):
return n < sorted(available)[0]
def greater(n, available):
return n > sorted(available, reverse=True)[0]
#less(n, available) == True であること
def upper_next(n, available):
for v in sorted(available):
if n < v:
return v
retu... | 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... |
s947796162 | p04045 | Wrong Answer | def main():
n,k=map(int,input().split(' '))
d = list(map(int,input().split(' ')))
like_list = [i for i in range(10) if i not in d]
n_list=list(str(n))
ans = 0
for num,i in enumerate(n_list):
tmp = 0
for j in like_list:
if int(i) <= j:
tmp= 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... |
s661431867 | p04045 | Wrong Answer | def main():
n,k=map(int,input().split(' '))
d = list(map(int,input().split(' ')))
like_list = [i for i in range(10) if i not in d]
n_list=list(str(n))
ans = 0
for num,i in enumerate(n_list):
tmp = 0
for j in like_list:
if int(i) <= j:
tmp= 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... |
s463144033 | p04045 | Wrong Answer | def main():
n,k=map(int,input().split(' '))
d = list(map(int,input().split(' ')))
like_list = [i for i in range(10) if i not in d]
n_list=list(str(n))
ans = 0
for num,i in enumerate(n_list):
tmp = 0
for j in like_list:
if int(i) <= j:
tmp= 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... |
s850018376 | p04045 | Wrong Answer | N, K = map(int, input().split())
d = list(map(int, input().split()))
for i in range(N, 10010):
flag = True
tmp = i
for j in reversed(range(len(str(i)))):
if (tmp // (10 ** j)) in d:
flag = False
break
else:
tmp = tmp % (10 ** j)
if flag:
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... |
s746718170 | p04045 | Wrong Answer | def dfs(i, s, l):
if i == len(s):
return ''
for j in l:
if j >= int(s[i]):
ans = dfs(i + 1, s, l)
if ans is not None:
ans += str(j)
return ans
return None
n, k = map(int, input().split())
ns = str(n)
d = list(map(int, input().split()))... | 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... |
s616937963 | p04045 | Wrong Answer | def dfs(i, s, l):
if i == len(s):
return ''
for j in l:
if j >= int(s[i]):
ans = dfs(i + 1, s, l)
if ans is None:
continue
else:
ans += str(j)
return ans
return None
n, k = map(int, input().split())
ns = str... | 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... |
s488031075 | p04045 | Wrong Answer | N, K = input().split()
D = [i for i in input().split()]
NUM = '0123456789'
num = [i for i in NUM if i not in D]
ans = ''
for j in range(len(N)):
if int(N[0]) > int(max(num)):
ans += num[1]
ans = int(ans.ljust(len(N)+1, min(num)))
break
for i in range(len(num)):
if int(N[j]) <= 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... |
s261121058 | p04045 | Wrong Answer | N, K = input().split()
D = [i for i in input().split()]
NUM = '0123456789'
num = [i for i in NUM if i not in D]
ans = ''
for j in range(len(N)):
for i in range(len(num)):
if int(N[j]) <= int(num[i]):
ans += num[i]
break
if int(ans.ljust(len(N), min(num))) > int(N):
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... |
s616884312 | p04045 | Wrong Answer | N, K = input().split()
D = [i for i in input().split()]
NUM = '0123456789'
num = [i for i in NUM if i not in D]
ans = ''
a = []
for j in range(len(N)):
for i in range(len(num)):
if int(N[j]) <= int(num[i]):
ans += num[i]
break
if int(ans.ljust(len(N), min(num))) > int(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... |
s475053582 | p04045 | Wrong Answer | N, K = input().split()
D = [i for i in input().split()]
NUM = '0123456789'
num = [i for i in NUM if i not in D]
ans = ''
a = []
print(num)
for j in range(len(N)):
for i in range(len(num)):
if int(N[j]) <= int(num[i]):
ans += num[i]
break
if int(ans.ljust(len(N), min(num))) > int(... | 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... |
s304964115 | p04045 | Wrong Answer | N, K = input().split()
D = [i for i in input().split()]
NUM = '0123456789'
num = [i for i in NUM if i not in D]
ans = ''
for j in range(len(N)):
for i in range(len(num)):
if int(N[j]) <= int(num[i]):
ans += num[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... |
s198014264 | p04045 | Wrong Answer | a = [int(x) for x in input().split()]
b = [int(y) for y in input().split()]
e = []
# print("繰り返す数", len(str(a[0])))
for i in range(len(str(a[0]))):
while (a[0] % 10) in b:
# print("no(a[0] % 10):", a[0] % 10, " b:", b)
a[0] += 1
# print("ok(a[0] % 10):", a[0] % 10, " b:", b)
e.append(a[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... |
s868488127 | p04045 | Wrong Answer | a = [int(x) for x in input().split()]
b = [int(y) for y in input().split()]
e = []
# print("繰り返す数", len(str(a[0])))
for i in range(len(str(a[0]))):
while (a[0] % 10) in b:
# print("bada[0]=", a[0])
a[0] += 1
# print("gooda[0]=", a[0], "→")
e.append(a[0] % 10)
a[0] = int(a[0] / 10)
... | 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... |
s204827580 | p04045 | Wrong Answer | a = [int(x) for x in input().split()]
b = [int(y) for y in input().split()]
e = []
# print("繰り返す数", len(str(a[0])))
for i in range(len(str(a[0]))):
while (a[0] % 10) in b:
# print("bada[0]=", a[0])
a[0] += 1
# print("gooda[0]=", a[0], "→")
e.append(a[0] % 10)
a[0] = int(a[0] / 10)
... | 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... |
s124330157 | p04045 | Wrong Answer | import itertools as it
price, hate = input().split()
price = int(price)
hate = int(hate)
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
number_of_hate = [x for x in input().split()]
number_of_like = []
# print(number_of_hate)
flag1 = False
flag2 = False
flag3 = False
f4 = False
for c in range(0, 10):
... | 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... |
s518668263 | p04045 | Wrong Answer | import itertools as it
price, hate = input().split()
price = int(price)
hate = int(hate)
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
number_of_hate = [x for x in input().split()]
number_of_like = []
# print(number_of_hate)
flag1 = False
flag2 = False
flag3 = False
f4 = False
for c in range(0, 10):
... | 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... |
s482295819 | p04045 | Wrong Answer | import itertools as it
price, hate = input().split()
price = int(price)
hate = int(hate)
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
number_of_hate = [x for x in input().split()]
number_of_like = []
# print(number_of_hate)
flag1 = False
flag2 = False
flag3 = False
f4 = False
for c in range(0, 10):
... | 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... |
s808865692 | p04045 | Wrong Answer | import itertools as it
price, hate = input().split()
price = int(price)
hate = int(hate)
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
number_of_hate = [x for x in input().split()]
number_of_like = []
# print(number_of_hate)
flag1 = False
flag2 = False
flag3 = False
f4 = False
for c in range(0, 10):
... | 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... |
s910226448 | p04045 | Wrong Answer | ints= list(map(int, input().split()))
li = list(map(int,input().split()))
number = {0,1,2,3,4,5,6,7,8,9}
dislike = set(li)
like = number - dislike
price = [int(i) for i in str(ints[0])]
length = len(price)
for i in range(length)[::-1]:
if price[i] not in like:
for j in like:
if j > price[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... |
s618656587 | p04045 | Wrong Answer | ints= list(map(int, input().split()))
li = list(map(int,input().split()))
number = {0,1,2,3,4,5,6,7,8,9}
dislike = set(li)
like = number - dislike
price = [int(i) for i in str(ints[0])]
length = len(price)
for i in range(length)[::-1]:
if price[i] not in like:
for j in like:
if j > price[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... |
s154479238 | p04045 | Wrong Answer | ints= list(map(int, input().split()))
li = list(map(int,input().split()))
number = {0,1,2,3,4,5,6,7,8,9}
dislike = set(li)
like = number - dislike
price = [int(i) for i in str(ints[0])]
length = len(price)
for i in range(length)[::-1]:
if price[i] not in like:
for j in like:
if j > price[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... |
s303984232 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
d_n = [i for i in range(10) if i not in d]
n_c = [int(c) for c in n]
re = []
for i in n_c:
for j in d_n:
if i <= j:
re.append(j)
break
re_s = map(str, re)
moji = ",".join(re_s).replace(",", "")
print(moji)
"""
print(d)
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... |
s342594294 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
tmp = -10
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
if (0 not in d) and tmp == (i - 1):
nlist[i] = 0
else:
if tmp== (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... |
s267315004 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
tmp = -10
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
if (0 not in d) and tmp == (i - 1):
nlist[i] = 0
else:
nlist[i] += 1
tmp = ... | 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... |
s206323477 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
tmp = 0
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
if (0 not in d) and tmp == (i - 1):
nlist[i] = 0
else:
nlist[i] += 1
tmp = 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... |
s338889139 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
tmp = 0
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
if (0 not in d) and tmp == 1:
nlist[i] = 0
else:
nlist[i] += 1
tmp = 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... |
s474703520 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
if 0 in d:
nlist[i] = 0
else:
nlist[i] += 1
else:
j = 10
print("".join(map(str, 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... |
s101670361 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
nlist[i] += 1
else:
j = 10
print("".join(map(str, nlist)))
| 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... |
s118986220 | p04045 | Wrong Answer | n, k = input().split()
d = list(map(int, input().split()))
nlist = list(map(int, n))
print(len(nlist),d)
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
nlist[i] += 1
else:
j = 10
print("".join(map(str, nlist)))
| 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... |
s804632480 | p04045 | Wrong Answer | n, k = input().split()
d = map(int, input().split())
nlist = list(map(int, n))
for i in range(len(nlist)):
for j in range(10):
if nlist[i] in d:
nlist[i] += 1
else:
j = 10
print("".join(map(str, nlist)))
| 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... |
s933702725 | p04045 | Wrong Answer | N,K = map(str, input().split())
D = set(map(int,input().split()))
E = {0,1,2,3,4,5,6,7,8,9}
F = E - D
f = max(F)
swith = 0
if 0 in F:
g =str(list(F)[1])
else:
g = str(min(F))
list = ["1"]*len(N)
length = len(N)
for n in range(length):
if int(N[n]) in D:
swith = 1
for l in range(n+1,length):
... | 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... |
s321178867 | p04045 | Wrong Answer | N, K = list(map(int, input().split()))
D = list(map(int, input().split()))
D_rest = list(i for i in range(10))
N_split = list(map(int, str(N)))
for i in range(len(D)):
D_rest.remove(D[i])
flag = False
for i in range(len(N_split)):
if flag:
N_split[i] = min(D_rest)
if N_split[i] in D:
flag... | 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... |
s363110319 | p04045 | Wrong Answer | N, K = list(map(int, input().split()))
D = list(map(int, input().split()))
D_rest = list(i for i in range(10))
N_split = list(map(int, str(N)))
for i in range(len(D)):
D_rest.remove(D[i])
flag = False
for i in range(len(N_split)):
if flag:
N_split[i] = min(D_rest)
if N_split[i] in D:
flag... | 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... |
s826831522 | p04045 | Wrong Answer | N, K = list(map(int, input().split()))
D = list(map(int, input().split()))
D_rest = list(i for i in range(10))
N_split = list(map(int, str(N)))
for i in range(len(D)):
D_rest.remove(D[i])
for i in range(len(N_split)):
if N_split[i] in D:
for j in range(len(D_rest)):
temp = D_rest[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... |
s960261000 | p04045 | Wrong Answer | import sys
N, K = map(int, input().split())
D = list(map(int, input().split()))
like = set(range(10)) - set(D)
while True:
for i in str(N):
if int(i) not in like:
N += 1
break
else:
print(N)
sys.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... |
s560714203 | p04045 | Wrong Answer | import sys
N, K = map(int, input().split())
D = list(map(int, input().split()))
like = set(range(10)) - set(D)
cost = N
while True:
for i in str(cost):
if int(i) not in like:
cost += 1
break
else:
print(cost)
sys.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... |
s403911274 | p04045 | Wrong Answer | n,k = map(int,input().split())
D = set(map(int,input().split()))
N = set(range(10))
N -= D
Ans = list(N)
mini = 10**10
length = 1
while length <= len(str(n)) or mini == 10**10:
temp = []
for ans in Ans:
for num in N:
temp.append(ans*10 + num)
if mini >= ans*10 + num and ans*10 +... | 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... |
s585095087 | p04045 | Wrong Answer | n,k = map(int,input().split())
D = set(map(int,input().split()))
N = set(range(10))
N -= D
Ans = list(N)
mini = 10**10
length = 1
while length <= len(str(n)):
temp = []
for ans in Ans:
for num in N:
temp.append(ans*10 + num)
if mini >= ans*10 + num and ans*10 + num >= 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... |
s475935368 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=input().split()
stopcode=False
while stopcode==False:
for i in range(len(str(n))):
if str(n)[i] in d:
n+=1
break
else:
stopcode=True
break
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... |
s838883853 | p04045 | Wrong Answer | import sys
input = sys.stdin.readline
N, K = map(int, input().split())
L = [int(v) for v in input().split()]
no = [v for v in range(10) if v not in L]
s = list(map(int, str(N)))
for i in range(len(s)):
if i == 0:
if s[i] in L:
s[i] = min([v for v in no if v != 0])
else:
if s[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... |
s748987115 | p04045 | Wrong Answer | n, k = input().split()
l = list(input().split())
l1 = []
for j in range(10):
if str(j) not in l:
l1.append(j)
a = ""
b = n
c = ""
for i in n:
if i not in l:
a += i
if a == n:
print(a)
else:
for j in range(len(b)):
if j == 0:
for i in range(10):
if i > int(n[0]):
c += 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... |
s594606788 | p04045 | Wrong Answer | n, k = map(int, input().split())
# d = list(map(int, input().split()))
d = input().split()
kouho = list(map(str, range(0, 9)))
for i in d:
for j in kouho:
if i == j:
kouho.remove(j)
break
# print(kouho)
while(1):
strcount = 0
for j in kouho:
# print(j, n, str(n), len(str(n)), str(n).cou... | 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... |
s990658547 | p04045 | Wrong Answer | N,K = map(int,input().split())
*D, = map(int,input().split())
for i in range(N,10000):
for n in str(i):
if int(n) in D:
break
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... |
s811717473 | p04045 | Wrong Answer | n,k=map(int,input().split())
d=list(map(int,input().split()))
for i in range(n,10000+1):
s=set(str(i))
for j in range(k):
if str(d[j]) in s:
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... |
s677890684 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
#mathをインポート
import math
#n円が金額、嫌いな数がk個。入力
n,k=map(int,input().split(" "))
#嫌いな文字リスト
klist=input().split(" ")
def hantei(n,kl):
if len(str(n))==4:
while math.floor(n/1000)==kl or \
math.floor(n/100)-10*math.floor(n/1000)==kl or \
math.floor(n/10)-10*math.floor(n/100)==... | 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... |
s091011276 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
#mathをインポート
import math
#n円が金額、嫌いな数がk個。入力
n,k=map(int,input().split(" "))
#嫌いな文字リスト
klist=input().split(" ")
for kl in klist:
kl=int(kl)
if len(str(n))==4:
while math.floor(n/1000)==kl or \
math.floor(n/100)-10*math.floor(n/1000)==kl or \
math.... | 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... |
s774245814 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
#mathをインポート
import math
#n円が金額、嫌いな数がk個。入力
n,k=map(int,input().split(" "))
#嫌いな文字リスト
klist=input().split(" ")
end=0
for kl in klist:
kl=int(kl)
while math.floor(n/1000)==kl or math.floor(n/100)-10*math.floor(n/1000)==kl or \
math.floor(n/10)-10*math.floor(n/100)==kl or \
... | 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... |
s667758183 | p04045 | Wrong Answer | #n=int(input())
ans=10**6
n,k=map(int,input().split())
p=[int(i) for i in input().split()]
s=[]
for i in range(10):
if i not in p:
s.append(str(i))
for a in s+['0']:
for b in s:
for c in s:
for d in s:
for e in s:
x=int(a+b+c+d+e)
... | 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... |
s384161317 | p04045 | Wrong Answer | #n=int(input())
ans=10**6
n,k=map(int,input().split())
p=[int(i) for i in input().split()]
s=[]
for i in range(10):
if i not in p:
s.append(str(i))
for a in s:
for b in s:
for c in s:
for d in s:
for e in s:
x=int(a+b+c+d+e)
... | 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... |
s912127911 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
d =[]
for i in range(10):
if i not in D:
d.append(i)
N = str(N)
K = 10 - K
ans = ''
check = False
for i in range(K):
if d[i] >= int(N[0]):
ans += str(d[i])
if d[i] != int(N[0]):
check = True
brea... | 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... |
s822655760 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
d =[]
for i in range(10):
if i not in D:
d.append(i)
N = str(N)
K = 10 - K
ans = ''
check = False
for i in range(K):
if d[i] >= int(N[0]):
ans += str(d[i])
if d[i] != int(N[0]):
check = True
brea... | 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... |
s428623942 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
d =[]
for i in range(10):
if i not in D:
d.append(i)
N = str(N)
K = 10 - K
ans = ''
check = False
for i in range(K):
if d[i] >= int(N[0]):
ans += str(d[i])
if d[i] != int(N[0]):
check = True
brea... | 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... |
s970285220 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
d =[]
for i in range(10):
if i not in D:
d.append(i)
N = str(N)
K = 10 - K
ans = ''
check = False
for i in range(K):
if d[i] >= int(N[0]):
ans += str(d[i])
if d[i] != int(N[0]):
check = True
brea... | 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... |
s122534987 | p04045 | Wrong Answer | import itertools
n,k = map(int,input().split())
a = list(map(str,input().split()))
d = [str(i) for i in range(10)]
for c in a:
d.remove(c)
res = -1
for l in itertools.product(d,repeat=len(str(n))):
x = int(''.join(l))
if x>=n and (res==-1 or x<res):
res = x
if res != -1:
print(res)
exit(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... |
s423056429 | p04045 | Wrong Answer | n,k = map(int,input().split())
a = list(map(int,input().split()))
dit = list(range(10))
for c in a:
dit.remove(c)
n = str(n)
f = n[0]
ff = 0
for d in dit:
if d>=int(f):
ff = d
break
res = ""
if ff!=0:
res+=str(ff)
for i in range(len(n)-1):
ff = -1
for d in dit:
... | 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... |
s999051761 | p04045 | Wrong Answer | def pay_by_iroha(price, dislike_digits):
for n in range(10000):
if n >= price and len(set(int(i) for i in str(n))&dislike_digits)==0:
return n
def main():
n = 1000
dislike_ds = {1, 3, 4, 5, 6, 7, 8, 9}
print(pay_by_iroha(n, dislike_ds))
main() | 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... |
s016216516 | p04045 | Wrong Answer | def pay_by_iroha(price, dislike_digits):
for n in range(10000):
if n >= price and not set(str(price)) & dislike_digits:
return n
def main():
n, _ = (int(i) for i in input().split())
dislike_ds = set([int(i) for i in input().split()])
print(pay_by_iroha(n, dislike_ds))
main() | 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... |
s328323879 | p04045 | Wrong Answer | import itertools
white_num_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
N, K = map(int, input().split())
black_num_list = list(map(int, input().split()))
white_num_list = list(set(white_num_list).difference(set(black_num_list)))
num_combination = list(itertools.product(white_num_list, repeat = len(str(N))))
num_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... |
s341753570 | p04045 | Wrong Answer | import itertools
white_num_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
N, K = map(int, input().split())
black_num_list = list(map(int, input().split()))
white_num_list = list(set(white_num_list).difference(set(black_num_list)))
num_combination = list(itertools.product(white_num_list, repeat = len(str(N))))
num_list = []
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... |
s699147008 | p04045 | Wrong Answer | import itertools
white_num_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
N, K = map(int, input().split())
black_num_list = list(map(int, input().split()))
white_num_list = list(set(white_num_list).difference(set(black_num_list)))
num_combination = list(itertools.combinations_with_replacement(white_num_list, len(str(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... |
s265591045 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = set(map(str, input().split()))
for i in range(N, 10000):
if len(D & set(list(str(i)))) == 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... |
s950022369 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(input().split())
flag = False
for a in range(N, 10000):
ans = list(str(a))
for b in range(len(ans)):
if ans[b] in D:
break
if b == len(ans) - 1 and ans[b] not in D:
print(a)
flag = True
if flag:
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... |
s571719753 | p04045 | Wrong Answer | n, k = map(int, input().split())
d = [str(i) for i in input().split()]
for i in range(1, 20):
ans = n * i
if len(set(list(str(ans))) & set(d)) == 0:
print(ans)
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... |
s119536758 | p04045 | Wrong Answer | N, K = map(int, input().split(' '))
d_list = input().split(' ')
for i in range(10):
for j in range(10):
for k in range(10):
for l in range(10):
number = i * 1000 + j * 100 + k * 10 + l
result = set(list(str(number)))
if set(d_list) & result != set... | 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... |
s188264095 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
for i in range(N, 10*N+1):
elem = set()
n = i
for _ in range(4):
e = n % 10
elem.add(e)
n //= 10
if len(set(D) & elem) == 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... |
s371174797 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
for i in range(N, 100000):
elem = set()
n = i
for _ in range(4):
e = n % 10
elem.add(e)
n //= 10
if len(set(D) & elem) == 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... |
s688922589 | p04045 | Wrong Answer | N, K = map(int, input().split())
D = list(map(int, input().split()))
for i in range(N, 10000):
elem = set()
n = i
for _ in range(4):
e = n % 10
elem.add(e)
n //= 10
if len(set(D) & elem) == 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... |
s305474352 | p04045 | Wrong Answer | def main():
N, K = map(int, input().split())
D = list(map(int, input().split()))
rec = 0
rec2 = 1
for d in D:
if rec != d:
break
rec += 1
for d in D:
if rec2 != d:
break
rec2 += 1
strN = str(N)
carry = False
ans = ""
for i in range(len(strN)-1, -1, -1):
cur = int(strN[i])
if carry:
cur +... | 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... |
s187073153 | p04045 | Wrong Answer | def main():
N, K = map(int, input().split())
D = list(map(int, input().split()))
rec = 0
for d in D:
if rec != d:
break
rec += 1
strN = str(N)
carry = False
ans = ""
for i in range(len(strN)-1, -1, -1):
cur = int(strN[i])
if carry:
cur += 1
carry = False
if cur == 10:
carry = True
whi... | 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... |
s914723557 | p04045 | Wrong Answer | def main():
N, K = map(int, input().split())
D = list(map(int, input().split()))
rec = 0
for d in D:
if rec != d:
break
rec += 1
strN = str(N)
carry = False
ans = ""
for i in range(len(strN)-1, -1, -1):
cur = int(strN[i])
if carry:
cur += 1
carry = False
while cur in D:
cur += 1
if cur... | 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... |
s230758715 | p04045 | Wrong Answer | # -*- coding: utf-8 -*-
n, k = map(int, input().split())
nums = input().split()
pay = n
disLike = True
while disLike:
for i in range(10):
pay += 1
disLike = False
for j in range(len(str(pay))):
if str(pay)[j] in nums:
disLike = True
print(pay)
| 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... |
s702076202 | p04045 | Wrong Answer | n, k = map(int, input().split())
d = [str(i) for i in input().split()]
for i in range(1, 11):
ans = n * i
if len(set(list(str(ans))) & set(d)) == 0:
print(ans)
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... |
s228595328 | p04045 | Wrong Answer | N, K = map(int,input().split())
D =list(map(str,input().split()))
import sys
for i in range (N, 10**4+1):
if len(set(list(str(i))) & set(D)) == 0:
print(i)
sys.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... |
s212276605 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists=list(map(str,input().split()))
for i in range(int(N),10000):
flg=True
for j in str(i):
if j in lists:
flg = False
break
if flg:
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... |
s110285273 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists=list(map(str,input().split()))
flg=False
for i in range(int(N),10000):
flg=True
for j in str(i):
if j in lists:
flg = False
break
if flg:
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... |
s472171658 | p04045 | Wrong Answer | def D2NC(D: int, N: int, link=False) -> list:
alp = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
res = []
while D > 0:
if D % N > 9:
tmp = alp[D % N - 10]
res.insert(0, str(tmp))
else:
res.insert(0, str(D % N))
D //= N
if not res:
res.append('0')
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... |
s894488683 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists = [0,1,2,3,4,5,6,7,8,9]
s=list(map(int,input().split()))
price=""
flg=False
for i in s:
lists.remove(i)
for i in N:
for n,j in enumerate(lists):
if flg:
price+=str(lists[0])
break
if int(i) <= int(j):
price+=str(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... |
s107458129 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists = [0,1,2,3,4,5,6,7,8,9]
s=list(map(int,input().split()))
price=""
flg=False
for i in s:
lists.remove(i)
for i in N:
for n,j in enumerate(lists):
if int(i) <= int(j):
price+=str(j)
break
if len(lists)==n+1:
price+=str(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... |
s886283730 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists = [0,1,2,3,4,5,6,7,8,9]
s=list(map(int,input().split()))
price=""
flg=False
for i in s:
lists.remove(i)
for i in N:
for n,j in enumerate(lists):
if int(i) <= int(j):
price+=str(j)
print(price)
break
if len(lists)==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... |
s830119150 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists = [0,1,2,3,4,5,6,7,8,9]
s=list(map(int,input().split()))
price=""
flg=False
for i in s:
lists.remove(i)
for i in N:
for j,n in enumerate(lists):
if int(i) <= int(j):
price+=str(j)
break
if len(lists)==n:
price+=str(lists[... | 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... |
s628805770 | p04045 | Wrong Answer | N,_ = map(str,input().split())
lists = [0,1,2,3,4,5,6,7,8,9]
s=list(map(int,input().split()))
price=""
flg=False
for i in s:
lists.remove(i)
for i in N:
for j,n in enumerate(lists):
if int(i) <= int(j):
price+=str(j)
break
if len(lists)==n:
price+=str(lists[... | 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.