s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s314073054 | p04044 | u318363730 | 1544918452 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 335 | d = input().rstrip()
d_list = d.split(" ")
t_list = []
for i in range(int(d_list[1])):
t_list.append(str(input().rstrip()))
def solution(t_list):
t_list.sort()
ans_str = ""
for i in t_list:
ans_str += i
return ans_str
def main():
print(solution(t_list))
if __name__ == '__main... | Traceback (most recent call last):
File "/tmp/tmppbeyohko/tmpmqoj7f9f.py", line 1, in <module>
d = input().rstrip()
^^^^^^^
EOFError: EOF when reading a line
| |
s015340973 | p04044 | u318363730 | 1544917864 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 330 | d = input().rstrip()
d_list = d.split(" ")
t_list = []
for i in range(int(d_list[1])):
t_list.append(input().rstrip())
def solution(t_list):
t_list.sort()
ans_str = ""
for i in t_list:
ans_str += i
return ans_str
def main():
print(solution(t_list))
if __name__ == '__main__':
... | Traceback (most recent call last):
File "/tmp/tmprgjlvkct/tmpzlu1d1j4.py", line 1, in <module>
d = input().rstrip()
^^^^^^^
EOFError: EOF when reading a line
| |
s452909288 | p04044 | u140251125 | 1544040181 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | # input
n, l = map(int, input().split())
S = sorted([input() for _ in range(N)])
ans = ''
for i in range(N):
ans += S[i]
print(ans)
| Traceback (most recent call last):
File "/tmp/tmp3lbpj43d/tmpfmjyw734.py", line 2, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s835242518 | p04044 | u705617253 | 1543607531 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 140 | n, l = map(int, input().split())
s = [input() for _ in range(n)]
result = ""
s.sort()
for i in range(l):
result += s[i]
print(result)
| Traceback (most recent call last):
File "/tmp/tmpz51ngqqy/tmpm6csma2g.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s612718274 | p04044 | u869728296 | 1542816381 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 218 | N,L=map(int,input().strip().split(" "))
a=[]
for i in range(L):
a.append(input())
a.sort()
b=str(a)
b=b.replace(",","")
b=b.replace("[","")
b=b.replace("]","")
b=b.replace("'","")
b=b.replace(" ","")
print(b)
| Traceback (most recent call last):
File "/tmp/tmpnabbud6f/tmp3cqkq4vc.py", line 1, in <module>
N,L=map(int,input().strip().split(" "))
^^^^^^^
EOFError: EOF when reading a line
| |
s130866074 | p04044 | u018679195 | 1542228356 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | N,L=map(int,input().split())
S = [input() for i in range(N)]
S.sort()
for s in S:
print(s,end=“”) | File "/tmp/tmphx07hapn/tmppc2x_lz2.py", line 5
print(s,end=“”)
^
SyntaxError: invalid character '“' (U+201C)
| |
s867858165 | p04044 | u863370423 | 1542228273 | Python | PyPy3 (2.4.0) | py | Runtime Error | 187 | 38384 | 103 | N,L=map(int,input().split())
S = [input() for i in range(N)]
S.sort()
for s in S:
print(s,end=“”) | File "/tmp/tmpbzxvjq11/tmpo8k9r0v8.py", line 5
print(s,end=“”)
^
SyntaxError: invalid character '“' (U+201C)
| |
s163353188 | p04044 | u863370423 | 1542221092 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 106 | n,l=map(int, input())
s=[list(input()) for i in range(n)]
s.sort()
for i in s:
print(i,end="")
print() | Traceback (most recent call last):
File "/tmp/tmp_tklelf9/tmpfw35eskh.py", line 1, in <module>
n,l=map(int, input())
^^^^^^^
EOFError: EOF when reading a line
| |
s305629880 | p04044 | u208052792 | 1541171294 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 171 | N, L = map(int, input().split())
s = [0 for i in range(N)]
for i in range(N):
s[i] = input()
s.sort()
output = ""
for i in range(L):
output += s[i]
print(output)
| Traceback (most recent call last):
File "/tmp/tmpk73zw_nw/tmppsd0jyjp.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s159014492 | p04044 | u438786370 | 1541171144 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 155 | data = list(map(lambda x: int(x), input().split()))
strings = [input() for _ in range(data[1])]
strings.sort()
s = ''
for x in strings:
s += x
print(s) | Traceback (most recent call last):
File "/tmp/tmpgono3um8/tmp9bq9aby4.py", line 1, in <module>
data = list(map(lambda x: int(x), input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s355672682 | p04044 | u363407238 | 1540687968 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 91 | n, l = map(int, input().sprit())
s = [input() for _ in range(n)]
s.sort()
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmp23pxxebe/tmp471clinj.py", line 1, in <module>
n, l = map(int, input().sprit())
^^^^^^^
EOFError: EOF when reading a line
| |
s676024136 | p04044 | u079543046 | 1540652053 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 141 | N, L = map(int, input().split())
s = []
ans = []
dj = list(arange(N))
for i in range(N):
s.append(input())
s = sorted(s)
ans = "".join(s) | Traceback (most recent call last):
File "/tmp/tmpqevxzovw/tmpou7tkl6m.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s186242362 | p04044 | u466478199 | 1537494864 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 103 | L,N=map(int,input().split())
l=[]
for i in range(N):
l.append(input())
l.sort()
print(''.join(l))
| Traceback (most recent call last):
File "/tmp/tmp750vg2hy/tmp5gcrb34s.py", line 1, in <module>
L,N=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s742288298 | p04044 | u466478199 | 1537494721 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 141 | L,N=map(int,input().split())
l=[]
for i in range(N):
s=list(input())
s.sort()
a=''.join(s)
l.append(a)
l.sort()
print(''.join(l))
| Traceback (most recent call last):
File "/tmp/tmptjherf44/tmphfodlw73.py", line 1, in <module>
L,N=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s543182404 | p04044 | u787562674 | 1536651342 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 331 | N, L = map(int, input().split())
inputs = [input() for _ in range(N)]
ans = [
inputs[0] + inputs[1] + inputs[2],
inputs[0] + inputs[2] + inputs[1],
inputs[1] + inputs[0] + inputs[2],
inputs[1] + inputs[2] + inputs[0],
inputs[2] + inputs[0] + inputs[1],
inputs[2] + inputs[1] + inputs[0],
]
prin... | Traceback (most recent call last):
File "/tmp/tmpccp5g_iv/tmpejr2jx3j.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s625960720 | p04044 | u787562674 | 1536651148 | Python | Python (3.4.3) | py | Runtime Error | 781 | 367152 | 262 | N, L = map(int, input().split())
inputs = [input() for _ in range(N)]
ans = []
for i in range(L):
for j in range(L):
for k in range(L):
if i != j and j != k:
ans.append(inputs[i] + inputs[j] + inputs[k])
print(min(ans)) | Traceback (most recent call last):
File "/tmp/tmpudivvzub/tmpr3zn__1p.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s031334713 | p04044 | u005260772 | 1535082975 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 126 | n = int(raw_input())
s = ''
for i in range(n):
s += raw_input()
s = sorted(s)
ans = ''
for i in s:
ans += i
print ans
| File "/tmp/tmp85l5cw59/tmprio_tobt.py", line 9
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s971247476 | p04044 | u052347048 | 1534096626 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 100 | lengh,num = map(int,input().split())
lis = [input() for i in range(num)]
print("".join(sorted(lis))) | Traceback (most recent call last):
File "/tmp/tmpee5xq0j4/tmpj_48qdn0.py", line 1, in <module>
lengh,num = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s207586369 | p04044 | u690536347 | 1533357564 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 85 | s,l=map(int,input().split())
m=sorted([input() for _ in range(l)])
print("".join(m))
| Traceback (most recent call last):
File "/tmp/tmpvsvh_u7h/tmpvpurff2m.py", line 1, in <module>
s,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s170391482 | p04044 | u278864208 | 1533326926 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 115 | N, L = map(int, input().split())
S = [input() for i in range(N)]
for i in range(3):
print(sorted(S)[i], end="") | Traceback (most recent call last):
File "/tmp/tmp3nilmewx/tmpt2strpaq.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s582461042 | p04044 | u278864208 | 1533325910 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 | N, L = map(int, input().split())
S = [input() for i in range(N)]
print("{0}{1}{2}".format(sorted(S)[0],sorted(S)[1],sorted(S)[2])) | Traceback (most recent call last):
File "/tmp/tmpvkwziwfk/tmp4i7i9zpp.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s760580659 | p04044 | u050428930 | 1531173818 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 84 | n,m=map(int,input().split())
s=sorted([input() for i in range(m)])
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmpdorlk2z4/tmp9ai_4rfi.py", line 1, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s214732425 | p04044 | u588341295 | 1530633458 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 177 | # -*- coding: utf-8 -*-
N, L = map(int, input().split())
str_list = [input() for i in range(L)]
str_list.sort()
ans = ""
for i in range(L):
ans += str_list[i]
print(ans) | Traceback (most recent call last):
File "/tmp/tmpmp3r3h1z/tmps_wl3774.py", line 3, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s421462981 | p04044 | u894440853 | 1528364594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | print("".join(sorted([input() for _ in range(input().split()[0])))) | File "/tmp/tmp70xbsj_p/tmpr_x_hldt.py", line 1
print("".join(sorted([input() for _ in range(input().split()[0]))))
^
SyntaxError: closing parenthesis ')' does not match opening parenthesis '['
| |
s840296008 | p04044 | u136090046 | 1528250800 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 128 | n, l = map(int, input().split())
array = sorted([input() for x in range(l)])
res = ""
for i in array:
res += i
print(res)
| Traceback (most recent call last):
File "/tmp/tmpzw12pktt/tmp987cfi1x.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s493065812 | p04044 | u314057689 | 1527900114 | Python | PyPy3 (2.4.0) | py | Runtime Error | 396 | 81388 | 1613 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys# {{{
import os
import time
import re
from pydoc import help
import string
import math
import numpy as np
from operator import itemgetter
from collections import Counter
from collections import deque
from collections import defaultdict as dd
import fractions
from... | Traceback (most recent call last):
File "/tmp/tmpql6fb0sb/tmpa0lhojr9.py", line 57, in <module>
solve()
File "/tmp/tmpql6fb0sb/tmpa0lhojr9.py", line 45, in solve
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s602666687 | p04044 | u226108478 | 1523982706 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 212 | # -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem B
if __name__ == '__main__':
n, length = list(map(int, input().split()))
s = sorted([input() for _ in range(length)])
print(''.join(s))
| Traceback (most recent call last):
File "/tmp/tmpz5525ehy/tmpjkymvkbh.py", line 7, in <module>
n, length = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s170412342 | p04044 | u259752752 | 1523149522 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 507 | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
int N, L;
cin >> N >> L;
vector<string> v;
string ret;
string s;
for(int i=0; i<N; i++){
cin >> s;
v.push_back(s);
}
sort(v.begin(), v.end(), less<string>() );
for(vector<s... | File "/tmp/tmp56g2324o/tmpu2xls7zb.py", line 5
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s544070355 | p04044 | u684084063 | 1523148034 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 183 | # -*- coding: utf-8 -*-
N,L = map(int,input().split())
ANS=[]
ans=""
for hoge in range(L):
S=input()
ANS.append(S)
ANS=sorted(ANS)
for fuga in ANS:
ans=ans+fuga
print(ans) | Traceback (most recent call last):
File "/tmp/tmpmshhvwri/tmp0gwu4uuk.py", line 2, in <module>
N,L = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s253322812 | p04044 | u978494963 | 1523135360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 112 | n,l = list(map(int, input().split(" ")))
s = []
for i in range(n):
s.append(input())
sort(s)
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmpql0i1gd8/tmp0vvi71ut.py", line 1, in <module>
n,l = list(map(int, input().split(" ")))
^^^^^^^
EOFError: EOF when reading a line
| |
s938073830 | p04044 | u657541767 | 1523035556 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 116 | n, l = map(int, input().split())
str_list = [input() for i in range(l)]
str_list.sort()
print("".join(str_list))
| Traceback (most recent call last):
File "/tmp/tmpn2gt54wr/tmp0yk__ndu.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s618891314 | p04044 | u657541767 | 1523035455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | n, l = map(int, input().split())
str_list = [input() for i in range(3)]
str_list.sort()
print("".join(str_list))
| Traceback (most recent call last):
File "/tmp/tmpal9iiv4t/tmp8p_80uwt.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s574114986 | p04044 | u667949809 | 1522545768 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | n,l = input().split()
n = int(n)
s = []
for i in range(n):
s.append(input())
s.sort()
print(s[0]+s[1]+s[2])
| Traceback (most recent call last):
File "/tmp/tmp7qey_zxx/tmpv6of1vii.py", line 1, in <module>
n,l = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s274838556 | p04044 | u667949809 | 1522545561 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | n,l = map(int,input().split())
s = []
for i in range(n):
s.append(input())
s.sort()
print(s[0]+s[1]+s[2]) | Traceback (most recent call last):
File "/tmp/tmpez8ugck6/tmpni2tqb4n.py", line 1, in <module>
n,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s854903642 | p04044 | u976256337 | 1521346230 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 15 | 3 3
dxx
axx
cxx | File "/tmp/tmp3glqg4pv/tmpjkwp5_ro.py", line 1
3 3
^
SyntaxError: invalid syntax
| |
s031201613 | p04044 | u103539599 | 1518237146 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3956 | 214 | N,L=map(int,input().split())
S=[input() for i in range(N)]
Ts=""
T=[]
for j in range(L):
t=j
for i in range(N):
if t==L: t=0
Ts+=S[t]
t+=1
T.append(Ts)
Ts=""
print(min(T)) | Traceback (most recent call last):
File "/tmp/tmp6p71pd0p/tmpcpaf45_w.py", line 1, in <module>
N,L=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s287575071 | p04044 | u952708174 | 1517084267 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 116 | N,L = [int(i) for i in input().split()]
S=[[i for i in input().strip()] for j in range(N)]
print(''.join(sorted(S))) | Traceback (most recent call last):
File "/tmp/tmppl5bmnkv/tmpwzaq664m.py", line 1, in <module>
N,L = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s294011735 | p04044 | u667084803 | 1510047693 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 459 | def power_func(a,b,p):
"""a^b mod p を求める"""
if b==0: return 1
if b%2==0:
d=power_func(a,b//2,p)
return d*d %p
if b%2==1:
return (a*power_func(a,b-1,p ))%p
from math import factorial
H,W,A,B=map(int, input().split())
p=10**9+7
ans=0
X=[1]
Y=[1]
for i in range(H+W-2):
fact=factorial(i+1)%p
X+=[fa... | Traceback (most recent call last):
File "/tmp/tmpdcsp1a0q/tmpre8qzvi9.py", line 11, in <module>
H,W,A,B=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s411602408 | p04044 | u255555420 | 1502826355 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 93 | L, N = map(int,input().split())
S = [input() for i in range(N)]
S.sort()
print("".join(S)) | Traceback (most recent call last):
File "/tmp/tmplxzlhef6/tmpmmlgrbqi.py", line 1, in <module>
L, N = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s663938167 | p04044 | u255555420 | 1502820985 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 105 | L, N = map(int,input().split())
S = [input() for i in range(N)]
B=sorted(S)
A=''.join(B)
print(str(A)) | Traceback (most recent call last):
File "/tmp/tmpgcfladwz/tmpucqcmoej.py", line 1, in <module>
L, N = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s500720939 | p04044 | u255555420 | 1502820720 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 105 | L, N = map(int,input().split())
S = [input() for i in range(N)]
S=sorted(S)
A=''.join(S)
print(str(A)) | Traceback (most recent call last):
File "/tmp/tmp5tb9ht53/tmpk3cxjrfr.py", line 1, in <module>
L, N = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s176621176 | p04044 | u255555420 | 1502820635 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 102 | L, N = map(int,input().split())
S = [input() for i in range(N)]
S.sort()
A=''.join(S)
print(str(A)) | Traceback (most recent call last):
File "/tmp/tmpdur30nly/tmpx3zugr9v.py", line 1, in <module>
L, N = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s348097574 | p04044 | u255555420 | 1502820430 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 97 | L, N = map(int,input().split())
S = [input() for i in range(N)]
S.sort()
A=''.join(S)
print(A) | Traceback (most recent call last):
File "/tmp/tmpt7xdd8x9/tmpkjbji_o_.py", line 1, in <module>
L, N = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s217837058 | p04044 | u255555420 | 1502820234 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 97 | L, N = map(int,input().split())
S = [input() for i in range(N)]
S.sort()
A=''.join(S)
print(A) | Traceback (most recent call last):
File "/tmp/tmpq31625kj/tmpud4xzs65.py", line 1, in <module>
L, N = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s740244698 | p04044 | u993069079 | 1498294892 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 107 | n, l = map(int, raw_input().split())
for i in xrange(n):
a.append(raw_input())
a.sort()
print "".join(a) | File "/tmp/tmph6a38wgg/tmp90zqtkqa.py", line 6
print "".join(a)
^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s734545290 | p04044 | u993069079 | 1498294821 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 108 | n, l = map(int, raw_input().split())
for i in xrange(n):
a.append(raw_input())
a.sort()
print " ".join(a) | File "/tmp/tmp8m1yz13m/tmp6uscwiiu.py", line 6
print " ".join(a)
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s949202935 | p04044 | u319818166 | 1490220702 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 178 | import sys
L, N = map(int, raw_input().split())
input = []
for i in range(0, N):
sentence = raw_input()
input.append(sentence)
for x in sorted(input):
sys.stdout.write(x) | Traceback (most recent call last):
File "/tmp/tmpkn554fmk/tmp5xs96o80.py", line 2, in <module>
L, N = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s288822451 | p04044 | u788681441 | 1484255352 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3064 | 164 | #pythonだとsortでそのまま何文字でもソートしてくれる
n, l = map(int, input().split())
s = [input() for _ in range(n)]]
print(''.join(sorted(s))) | File "/tmp/tmp6q_ljwfn/tmpt363u696.py", line 3
s = [input() for _ in range(n)]]
^
SyntaxError: unmatched ']'
| |
s447909598 | p04044 | u580920947 | 1483236619 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3064 | 171 | # -*- coding: utf-8 -*-
# problem B
N, L = map(int, input().split())
ls = []
for _ in N:
input_data = input()
ls.append(input_data)
ls.sort()
print(''.join(ls)) | Traceback (most recent call last):
File "/tmp/tmp5mzu9106/tmpc_ix7nuf.py", line 4, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s297337832 | p04044 | u317493066 | 1483046880 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3060 | 192 | N, L = map(int, input().split())
data = []
for _ in range(N):
input_data = input()
data.append(input_data)
print(data)
data.sort()
print(''.join(data))
| File "/tmp/tmpmg9rwoor/tmp8tddf8ll.py", line 1
N, L = map(int, input().split())
IndentationError: unexpected indent
| |
s844234676 | p04044 | u582243208 | 1480112163 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3064 | 78 | n,l=map(int,input().split())
print("".join(sorted[input() for i in range(n)])) | File "/tmp/tmpj2hhg7xm/tmpaod06eak.py", line 2
print("".join(sorted[input() for i in range(n)]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s814716947 | p04044 | u493916575 | 1480050174 | Python | Python (3.4.3) | py | Runtime Error | 26 | 3188 | 141 | N,L = map(int, input().split())
S = 26*[""]
for i in range(N):
S[i] = input()
S.sort()
str = ""
for s in S:
str += s
print(str)
| Traceback (most recent call last):
File "/tmp/tmpdm9x5h70/tmpt_ncoag_.py", line 1, in <module>
N,L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s460675917 | p04044 | u117095520 | 1477683531 | Python | Python (2.7.6) | py | Runtime Error | 16 | 2568 | 189 | import heapq
N, L = map(int, raw_input().split())
hq = []
for _ in xrange(N:
s = raw_input()
heapq.heappush(hq, s)
ans = ''
while len(hq) > 0:
ans += heapq.heappop(hq)
print ans | File "/tmp/tmp_nh5v35u/tmpy4o37fbw.py", line 4
for _ in xrange(N:
^
SyntaxError: invalid syntax
| |
s905483219 | p04044 | u612721349 | 1472788509 | Python | Python (3.4.3) | py | Runtime Error | 39 | 3064 | 71 | print("".join(sorted([input() for i in range(int(input().split[0]))]))) | Traceback (most recent call last):
File "/tmp/tmpyk3rwpg8/tmp6bw2gzpm.py", line 1, in <module>
print("".join(sorted([input() for i in range(int(input().split[0]))])))
^^^^^^^
EOFError: EOF when reading a line
| |
s481440393 | p04044 | u289882742 | 1470434095 | Python | Python (2.7.6) | py | Runtime Error | 33 | 2820 | 141 | import sys
def main(lines):
print(''.join(sorted(lines.split())))
next(sys.stdin)
for line in sys.stdin:
lines += line
main(lines)
| Traceback (most recent call last):
File "/tmp/tmpcuhs8tn2/tmp722f49a0.py", line 6, in <module>
next(sys.stdin)
StopIteration
| |
s583679897 | p04044 | u112002050 | 1469398308 | Python | Python (3.4.3) | py | Runtime Error | 39 | 3064 | 92 | N = int(input().split()[0])
words = [input() for i in range(N)]
print("".join(words.sort())) | Traceback (most recent call last):
File "/tmp/tmp0y78_5g9/tmp41w5wtk9.py", line 1, in <module>
N = int(input().split()[0])
^^^^^^^
EOFError: EOF when reading a line
| |
s136690770 | p04044 | u112002050 | 1469398266 | Python | Python (3.4.3) | py | Runtime Error | 40 | 3064 | 87 | N = input().split()[0]
words = [input() for i in range(N)]
print("".join(words.sort())) | Traceback (most recent call last):
File "/tmp/tmp8flq1bsh/tmp9xdb5gnc.py", line 1, in <module>
N = input().split()[0]
^^^^^^^
EOFError: EOF when reading a line
| |
s848410609 | p04044 | u153147777 | 1469324950 | Python | Python (2.7.6) | py | Runtime Error | 321 | 2820 | 752 | import sys
sys.setrecursionlimit(10000000)
n, l = map(int, raw_input().split())
s = [raw_input() for _ in xrange(n)]
gtable = [[] for _ in xrange(26)]
result = []
def searchPrint(e, n):
table = [[] for _ in xrange(26)]
for i in e:
table[ord(s[i][n]) - 97].append(i)
for el in table:
... | File "/tmp/tmpppk2i24j/tmp4o3mji02.py", line 33
print "".join(result)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s234130821 | p04044 | u153147777 | 1469324902 | Python | Python (2.7.6) | py | Runtime Error | 28 | 2820 | 709 | n, l = map(int, raw_input().split())
s = [raw_input() for _ in xrange(n)]
gtable = [[] for _ in xrange(26)]
result = []
def searchPrint(e, n):
table = [[] for _ in xrange(26)]
for i in e:
table[ord(s[i][n]) - 97].append(i)
for el in table:
if len(el) == 0:
continue
... | File "/tmp/tmp_awn4be4/tmp_cuop__8.py", line 31
print "".join(result)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s724696645 | p04044 | u435698658 | 1469322278 | Python | Python (2.7.6) | py | Runtime Error | 991 | 3080 | 111 | N, L = raw_input().split()
l = []
for _ in range(N):
l.append(raw_input().strip())
print "".join(sorted(l)) | File "/tmp/tmpe4n1z4e9/tmpqygsz93f.py", line 5
print "".join(sorted(l))
^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s018621055 | p04044 | u798181098 | 1469322174 | Python | Python (3.4.3) | py | Runtime Error | 1699 | 8536 | 116 | n, l = map(int, input().split())
s = []
for i in range(n):
t = input()
s.append(t)
s.sort()
print(s.join('')) | Traceback (most recent call last):
File "/tmp/tmpxr2etcbm/tmp1dq222ch.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s763511986 | p04045 | u149249972 | 1601366762 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9384 | 567 | import math
total = list(map(lambda x: int(x), input().split()))
possible = list({0,1,2,3,4,5,6,7,8,9} - set(list(map(lambda x: int(x), input().split()))))
yen = total[0]
digits = math.log10(yen) + 1
final = []
while digits:
if yen % (10**digits) in possible:
final.append(int(yen % (10**digits)))
else... | Traceback (most recent call last):
File "/tmp/tmppdy86dxc/tmpdlv345x0.py", line 3, in <module>
total = list(map(lambda x: int(x), input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s955286458 | p04045 | u149249972 | 1601366674 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9404 | 567 | import math
total = list(map(lambda x: int(x), input().split()))
possible = list({0,1,2,3,4,5,6,7,8,9} - set(list(map(lambda x: int(x), input().split()))))
yen = total[0]
digits = math.log10(yen) + 1
final = []
while digits:
if yen % (10**digits) in possible:
final.append(int(yen % (10**digits)))
else... | Traceback (most recent call last):
File "/tmp/tmpzhpr5afs/tmpuh0hdh53.py", line 3, in <module>
total = list(map(lambda x: int(x), input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s688055985 | p04045 | u697690147 | 1600916235 | Python | PyPy2 (7.3.0) | py | Runtime Error | 300 | 85152 | 733 | n, k = input().split()
d = list(map(int, input().split()))
a = []
for i in range(10):
if i not in d:
a.append(i)
n = list(map(int, list(n)))
for i in range(len(n)):
if n[i] in d:
ind = i
done = False
while not done:
for j in range(n[ind]+1, 10):
i... | Traceback (most recent call last):
File "/tmp/tmprqmdb3ar/tmpx2udol9t.py", line 1, in <module>
n, k = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s411831596 | p04045 | u035885928 | 1600392238 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8904 | 521 | n, k= input().split()
l = list(map(int,input().split()))
checkNum=[i for i in range(11)]
def find(x):
while x!=checkNum[x]:
checkNum[x]=checkNum[checkNum[x]]
x=checkNum[x]
return x
for i in l:
checkNum[find(i)]=checkNum[find(i+1)]
fin=""
for i in range(len(n)):
first=int(n[i])
k=f... | Traceback (most recent call last):
File "/tmp/tmpu81qfqqr/tmpng7nez5k.py", line 1, in <module>
n, k= input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s508719814 | p04045 | u035885928 | 1600389823 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9240 | 515 | n, k= map(int,input().split())
l = list(map(int,input().split()))
checkNum=[i for i in range(11)]
for i in l:
checkNum[find(i)]=checkNum[find(i+1)]
def find(x):
while x!=checkNum[x]:
checkNum[x]=checkNum[checkNum[x]]
x=checkNum[x]
return x
fin=""
remain=0
if n==0:
fin=str(find(0))
whil... | Traceback (most recent call last):
File "/tmp/tmpp5xkalhq/tmpe1e5gscq.py", line 1, in <module>
n, k= map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s064020163 | p04045 | u644907318 | 1600259444 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9088 | 936 | N,K = map(int,input().split())
D = list(map(int,input().split()))
E = []
for i in range(10):
if i not in D:
E.append(i)
E = sorted(E)
N = str(N)
ind = len(N)
for i in range(len(N)):
if int(N[i]) not in E:
ind = i
break
if ind==len(N):
print(N)
else:
flag = 0
x = ""
for i ... | Traceback (most recent call last):
File "/tmp/tmp7eprzhb_/tmpeo8jfvcl.py", line 1, in <module>
N,K = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s553626963 | p04045 | u113835532 | 1599791955 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9140 | 432 | def answer(n: int, k: int, d: []) -> int:
numbers = list({0, 1, 2, 3, 4, 5, 6, 7, 8, 9} ^ set(d))
payment = ''
for i in str(n):
for num in numbers:
if int(i) <= num:
payment += str(num)
break
return int(payment)
def main():
n, k = map(int, input(... | Traceback (most recent call last):
File "/tmp/tmp4eih3hwa/tmpls0_13hk.py", line 19, in <module>
main()
File "/tmp/tmp4eih3hwa/tmpls0_13hk.py", line 13, in main
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s960022775 | p04045 | u107639613 | 1599446094 | Python | PyPy3 (7.3.0) | py | Runtime Error | 80 | 74680 | 581 | import sys
from bisect import bisect_left
def input(): return sys.stdin.readline().strip()
def main():
N, K = map(int, input().split())
D = set(map(int, input().split()))
ok = [i for i in range(10) if i not in D]
N = str(N)
l = len(N)
if {i for i in range(int(N[0]), 10)} <= D:
if ok[0] ... | Traceback (most recent call last):
File "/tmp/tmpv51gfz3g/tmp97jdq28o.py", line 27, in <module>
main()
File "/tmp/tmpv51gfz3g/tmp97jdq28o.py", line 6, in main
N, K = map(int, input().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s645549174 | p04045 | u892797057 | 1599362082 | Python | PyPy3 (7.3.0) | py | Runtime Error | 103 | 74432 | 1218 | N, L = [int(x) for x in input().split()]
S = []
for s in range(N):
S.append(input())
print("".join(sorted(S)))
# %% [markdown]
#
# C
#
# %%
N, K = [int(x) for x in input().split()]
dislikes = [False] * 10
dislike_nums = [int(x) for x in input().split()]
for n in dislike_nums:
dislikes[n] = True
# Add '0' in ... | Traceback (most recent call last):
File "/tmp/tmpg_yt686_/tmpix64j491.py", line 1, in <module>
N, L = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s558305478 | p04045 | u125545880 | 1599278861 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9160 | 713 | def minN(N:int, usable:list, restrict=True):
usable.sort()
if restrict:
for i in usable:
if i >= N:
return str(i)
else:
return str(usable[0])
def main():
N, K = map(int, input().split())
D = set(map(int, input().split()))
numset = set(range(0,10))
... | Traceback (most recent call last):
File "/tmp/tmp3hlnegjf/tmppg1nl8me.py", line 34, in <module>
main()
File "/tmp/tmp3hlnegjf/tmppg1nl8me.py", line 12, in main
N, K = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s261205067 | p04045 | u139614630 | 1598967486 | Python | Python (3.8.2) | py | Runtime Error | 33 | 8944 | 969 | #!/usr/bin/env python3
import sys
from itertools import chain
from bisect import bisect_left
# from collections import Counter
# import numpy as np
def solve(N: int, K: int, D: "List[int]"):
nr = list(map(int, reversed(str(N))))
over = False
answer = []
useable = sorted(set(range(10)) - set(D))
i... | Traceback (most recent call last):
File "/tmp/tmputajnml3/tmpj442ojkh.py", line 39, in <module>
main()
File "/tmp/tmputajnml3/tmpj442ojkh.py", line 31, in main
N = int(next(tokens)) # type: int
^^^^^^^^^^^^
StopIteration
| |
s451474947 | p04045 | u869790980 | 1598486741 | Python | PyPy2 (7.3.0) | py | Runtime Error | 343 | 85056 | 241 |
n,k = map(int, raw_input().split())
letters = [u for u in range(10) if u not in set(map(int, raw_input().split()))]
def dfs(u,n,letters):return min([dfs(u*10 +l,n,letters) for l in letters if u or l]) if u < n else u
print dfs(0,n,letters) | File "/tmp/tmpgz0055am/tmpm6ut7uwu.py", line 6
print dfs(0,n,letters)
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s211898451 | p04045 | u869790980 | 1598486547 | Python | PyPy2 (7.3.0) | py | Runtime Error | 348 | 85672 | 272 | #1000 8
#1 3 4 5 6 7 8 9
n,k = map(int, raw_input().split())
s = set(map(int, raw_input()))
letters = [u for u in range(10) if u not in s]
def dfs(u,n,letters):
if u >= n:
return u
return min([dfs(u*10 +l,n,letters) for l in letters if u or l])
print dfs(0,n,letters) | File "/tmp/tmpci879tkt/tmpwbtau44i.py", line 11
print dfs(0,n,letters)
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s096590089 | p04045 | u997134361 | 1598216207 | Python | Python (3.8.2) | py | Runtime Error | 36 | 9108 | 307 | total, k = map(int, input().split())
d = input().split()
def find_lowest_denomination(total, d):
for i in range(total, 10001):
if not set(str(i)) & set(d):
print(i)
return
raise ValueError('Should never reach this code block')
find_lowest_denomination(total, d)
| Traceback (most recent call last):
File "/tmp/tmpew4_x0ng/tmph80hx6dz.py", line 1, in <module>
total, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s768587080 | p04045 | u185948224 | 1598154819 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9152 | 683 | from itertools import combinations_with_replacement, product
n, k = map(int, input().split())
d = [int(x) for x in input().split()]
dd = set(list(range(10))) - set(d)
x = str(n)
lst = []
dd = list(dd)
dd.sort()
sel = []
for i in dd:
if int(x[0]) <= i and len(sel) < 3: sel.append(i*10**(len(x)-1))
if len(sel) < 2:
... | Traceback (most recent call last):
File "/tmp/tmppzx655nq/tmp8_z7xw_5.py", line 2, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s292449210 | p04045 | u423966555 | 1597858935 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9060 | 361 | import itertools
N, K = map(int, input().split())
D = list(map(int, input().split()))
dic = [0,1,2,3,4,5,6,7,8,9]
for i in D:
dic.remove(i)
dict = map(str, dic)
n = len(str(N)) #何桁か
ans = []
for i in range(2):
for v in itertools.permutations(dict, n+i):
if int(''.join(v)) >= N:
ans.appe... | Traceback (most recent call last):
File "/tmp/tmpns_f4g8z/tmp15hljz2w.py", line 3, in <module>
N, K = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s069531103 | p04045 | u070423038 | 1597810379 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9068 | 847 | kingaku, n = input().split()
no_num = input().split()
result = []
ok_num = []
kuriage_num = [-1, 0]
def kuriage(l):
for i in ok_num:
if result[l] < i:
kuriage_num = [l, i]
return
if l <= 0:
return
return kuriage(l-1)
#使える数字のリストを作成
for i in range(10):
if not str(... | Traceback (most recent call last):
File "/tmp/tmp90alghvn/tmp6y2kpcgn.py", line 1, in <module>
kingaku, n = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s604122979 | p04045 | u573512968 | 1597736309 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9160 | 579 | N,k=map(int,input().split())
lst=list(map(int,input().split()))
x=[]
for i in range(10):
x.append(i)
for char in lst:
if char in x:
x.remove(char)
# print(x)
# x.sort(
s=str(N)
c=len(s)
x.sort(reverse=True)
ans=""
flag=0
for j in range(10000000000):
if len(ans)>=len(s):
break
else:
... | Traceback (most recent call last):
File "/tmp/tmpd7blxdi6/tmppz0_1kve.py", line 1, in <module>
N,k=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s290015299 | p04045 | u070423038 | 1597726070 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9160 | 578 | price, hate = input().split()
no_num = set([x for x in input().split()])
ok_num = sorted(list({'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} - no_num))
result = []
f = True
exe = True
for i in price:
f = True
for j in ok_num:
if i <= j:
result.append(j)
f = False
... | Traceback (most recent call last):
File "/tmp/tmp4jxjlitp/tmpzehj86j8.py", line 1, in <module>
price, hate = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s239185871 | p04045 | u070423038 | 1597725994 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9160 | 599 | price, hate = input().split()
no_num = set([x for x in input().split()])
ok_num = sorted(list({'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} - no_num))
result = []
f = True
exe = True
for i in price:
f = True
for j in ok_num:
if i <= j:
print(j)
result.append(j)
... | Traceback (most recent call last):
File "/tmp/tmp8btob9xj/tmpfgc60lih.py", line 1, in <module>
price, hate = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s410079526 | p04045 | u070423038 | 1597725908 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9140 | 604 | price, hate = input().split()
no_num = set([x for x in input().split()])
ok_num = sorted(list({'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} - no_num))
result = []
f = True
exe = True
for i in price:
f = True
for j in ok_num:
if i <= j:
print(j)
result.append(j)
... | Traceback (most recent call last):
File "/tmp/tmp909bla74/tmpjue1ktip.py", line 1, in <module>
price, hate = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s821486022 | p04045 | u166012301 | 1597192825 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9076 | 602 | n, k = map(int, input().split())
n = str(n)
d = [int(i) for i in input().split()]
av_d = [str(i) for i in range(0, 10) if i not in d]
number = ''
for i in range(len(n)):
managed = False
for j in av_d:
if i == 0 and j == '0':
continue
if j >= n[i]:
number += j
... | Traceback (most recent call last):
File "/tmp/tmpevp8y39y/tmp6zzu5n30.py", line 1, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s286768655 | p04045 | u166012301 | 1597192706 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9084 | 606 | n, k = map(int, input().split())
n = str(n)
d = [int(i) for i in input().split()]
av_d = [str(i) for i in range(0, 10) if i not in d]
number = ''
for i in range(len(n)):
managed = False
for j in av_d:
if i == 0 and j == '0':
continue
if j >= n[i]:
number += j
... | Traceback (most recent call last):
File "/tmp/tmp9407tcui/tmpmp2vrq9n.py", line 1, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s494013104 | p04045 | u166012301 | 1597192630 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9132 | 602 | n, k = map(int, input().split())
n = str(n)
d = [int(i) for i in input().split()]
av_d = [str(i) for i in range(0, 10) if i not in d]
number = ''
print(av_d)
for i in range(len(n)):
managed = False
for j in av_d:
if i == 0 and j == '0':
continue
if j >= n[i]:
number += j... | Traceback (most recent call last):
File "/tmp/tmp5rwhks40/tmpj5xn018y.py", line 1, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s849591694 | p04045 | u267718666 | 1596593175 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9032 | 405 | N, K = map(int, input().split())
D = set(map(int, input().split()))
digits = list({0, 1, 2, 3, 4, 5, 6, 7, 8, 9} - D)
N = str(N)
res = ''
for c in N:
n_digit = int(c)
if n_digit == digits[0]:
res += str(digits[0])
continue
for i in range(1, 10-K):
if n_digit <= digits[i] and n_digi... | Traceback (most recent call last):
File "/tmp/tmp70_op1fs/tmp6qesxb6c.py", line 1, in <module>
N, K = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s998426956 | p04045 | u396211450 | 1596012975 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9056 | 308 | def check(n,s):
v=str(n)
for i in v:
if i in s:
return False
return True
def solve():
n,k=mp()
s=input().split()
s=set(s)
while True:
if check(n,s):
print(n)
break
else:
n+=1
for _ in range(1):
solve() | Traceback (most recent call last):
File "/tmp/tmpkmqwyik5/tmpw45z18ae.py", line 19, in <module>
solve()
File "/tmp/tmpkmqwyik5/tmpw45z18ae.py", line 8, in solve
n,k=mp()
^^
NameError: name 'mp' is not defined. Did you mean: 'map'?
| |
s810730093 | p04045 | u212831449 | 1595629637 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9084 | 529 | n,k = map(int,input().split())
d = list(map(int,input().split()))
n_str = str(n)
l = len(n_str)
a = [i for i in range(10) if i not in d]
#同じ桁の時
ans = ""
for i in range(l):
for j in a:
if j == int(n_str[i]):
ans += str(j)
break
elif j > int(n_str[i]):
ans += str(... | Traceback (most recent call last):
File "/tmp/tmpxcwtypi9/tmpb45f1wve.py", line 1, in <module>
n,k = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s707628707 | p04045 | u254871849 | 1595539447 | Python | Python (3.8.2) | py | Runtime Error | 120 | 27644 | 18552 | import sys
import numpy as np
from heapq import heappush, heappop
from bisect import bisect_left as bi_l, bisect_right as bi_r
from collections import deque, Counter, defaultdict
from itertools import combinations, product
import string
inf = float('inf')
MOD = 10**9+7
# MOD = 998244353
class NumberTheory():
def ... | Traceback (most recent call last):
File "/tmp/tmpk11fzgxc/tmpvigptn3r.py", line 729, in <module>
ABC042.C()
File "/tmp/tmpk11fzgxc/tmpvigptn3r.py", line 508, in C
n, k, *d = sys.stdin.read().split()
^^^^^^^^
ValueError: not enough values to unpack (expected at least 2, got 0)
| |
s063927303 | p04045 | u465101448 | 1595516832 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9152 | 416 | N,K = list(map(int,input().split()))
D = list(map(int,input().split()))
D_ = [_ for _ in range(10) if _ not in D]
D_.sort()
N_=N+1
break_flag=False
for s_ in D_:
if break_flag:
break
elif s_ == 0:
continue
for p in product(D_,repeat=len(str(N_))-1):
ans=int(str(s_)+''.join(map(str,... | Traceback (most recent call last):
File "/tmp/tmpjk_i6hog/tmp3bapd0tf.py", line 1, in <module>
N,K = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s104652535 | p04045 | u112065131 | 1595452984 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9156 | 534 | # -*- coding: utf-8 -*-
# C - こだわり者いろはちゃん
N, K = map(int, input().split())
D = list(map(int, input().split()))
numList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
listAns = []
num = []
listN = [int(x) for x in list(str(N))]
# print(listN)
for i in numList:
if i not in D:
num.append(i)
# print(num)
for i in listN... | Traceback (most recent call last):
File "/tmp/tmpvezrxlpy/tmph_4igbnh.py", line 4, in <module>
N, K = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s685528682 | p04045 | u687574784 | 1595105814 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9084 | 250 | N,K = list(map(int, input().split()))
D = set(input().split())
# シミュレーションでいける
for ans in range(N,10000):
if all(d not in D for d in str(ans)):
print(ans)
exit()
raise AssertionError('バグってる') | Traceback (most recent call last):
File "/tmp/tmpfsya684j/tmppftbvtfp.py", line 1, in <module>
N,K = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s123932140 | p04045 | u706414019 | 1594943656 | Python | Python (3.8.2) | py | Runtime Error | 63 | 17344 | 382 | import sys,math,collections,itertools,bisect
input = sys.stdin.readline
N,K=list(map(int,input().split()))
D = list(map(int,input().split()))
Ds = set([0,1,2,3,4,5,6,7,8,9])-set(D)
can = list(itertools.product(Ds,repeat = 5))
candi = []
for c in can:
candi.append(1**4*c[0]+10**3*c[1]+10**2*c[2]+10**1*c[3]+c[4])
ca... | Traceback (most recent call last):
File "/tmp/tmp9yfwgjsk/tmp_lnjgu5e.py", line 4, in <module>
N,K=list(map(int,input().split()))
^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s543903491 | p04045 | u543373102 | 1594870113 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9160 | 136 | N , K = input().split()
Dk = list(map(int, input().split()))
for i in range(N,10*N+1):
if set(i)&set(Dk) == set():
print(i) | Traceback (most recent call last):
File "/tmp/tmpym6frqq2/tmpltalmr3r.py", line 1, in <module>
N , K = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s178243476 | p04045 | u543373102 | 1594869476 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9172 | 147 | N , K = map(int, input().split())
Dk = list(map(int, input().split()))
for i in range(N,10*N+1):
if set(i)&set(Dk) == set():
print(i)
| Traceback (most recent call last):
File "/tmp/tmpfq9vlecf/tmpg7ncmzfn.py", line 1, in <module>
N , K = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s345758312 | p04045 | u081149041 | 1594256187 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8940 | 313 | def digit():
N, K = [int(n) for n in input().split()]
digit = [int(n) for n in input().split()]
for i in range(N, N*10):
b = i
while b != 0:
if (b % 10) in digit:
break
b /= 10
if b == 0:
print(i)
break:
digit() | File "/tmp/tmpet2qqc_e/tmp2m84xnq6.py", line 13
break:
^
SyntaxError: invalid syntax
| |
s186357659 | p04045 | u081149041 | 1594256061 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9024 | 313 | def digit():
N, K = [int(n) for n in input().split()]
digit = [int(n) for n in input().split()]
for i in range(N, N*10):
b = i
while b != 0:
if (b % 10) in digit:
break
b /= 10
if b == 0:
print(i)
break:
digit() | File "/tmp/tmp141hrspc/tmphf02nx_s.py", line 13
break:
^
SyntaxError: invalid syntax
| |
s991773600 | p04045 | u819135704 | 1593529626 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9172 | 452 | N, K = map(int, input().split())
l = [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
for _ in range(K):
l.remove(int(input()))
n = [int(x) for x in str(N)]
c = len(n)
max = l[0]
min = l[-1]
if N > 1111 * max:
b = 10000*min([i for i in l if i>0]) + 1111*min
else:
a = [max] * c
for j in range(c):
if a[j] > n[j]:
... | Traceback (most recent call last):
File "/tmp/tmp2acyxdqg/tmp8vjme9hs.py", line 1, in <module>
N, K = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s303233451 | p04045 | u867848444 | 1593454377 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8924 | 366 | from bisect import *
n, k = map(int,input().split())
d = list(map(int,input().split()))
use_num = []
for i in range(10):
if i in d:continue
use_num.append(i)
str_n = str(n)
res = 0
for i in str_n:
temp = bisect_left(use_num, int(i))
add = use_num[temp]
if temp == len(use_num):
add = use_nu... | Traceback (most recent call last):
File "/tmp/tmphv1pj2h0/tmpq72d8mk8.py", line 2, in <module>
n, k = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s499065609 | p04045 | u867848444 | 1593454257 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9192 | 292 | from bisect import *
n, k = map(int,input().split())
d = list(map(int,input().split()))
use_num = []
for i in range(10):
if i in d:continue
use_num.append(i)
str_n = str(n)
res = 0
for i in str_n:
temp = bisect_left(use_num, int(i))
res = res * 10 + use_num[temp]
print(res) | Traceback (most recent call last):
File "/tmp/tmpniuxa62a/tmpaunkqo_i.py", line 2, in <module>
n, k = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.