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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s400105625 | p04043 | u417958545 | 1566861518 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 248 | 1 = input()
2 = input()
3 = input()
A = len(1)
B = len(2)
C = len(3)
if A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
elif A == 5 and B == 5 and C == 7:
print("YES")
else:
print("NO") | File "/tmp/tmpuuqzu3ka/tmpwl4o_oxk.py", line 1
1 = input()
^
SyntaxError: cannot assign to literal here. Maybe you meant '==' instead of '='?
| |
s642908457 | p04043 | u756696693 | 1566769884 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | A=list(map(int,input().split()))
A.sort()
if A =[5,5,7]:
print("YES")
else:
print("NO") | File "/tmp/tmp7s51c340/tmp7spclt8w.py", line 3
if A =[5,5,7]:
^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s035269050 | p04043 | u756696693 | 1566769853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A=list(map(int,input().split())
A.sort()
if A =[5,5,7]:
print("YES")
else:
print("NO") | File "/tmp/tmpcfnwo3xr/tmp_uhemgdx.py", line 1
A=list(map(int,input().split())
^
SyntaxError: '(' was never closed
| |
s396997034 | p04043 | u802963389 | 1566707707 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | n = list(int, input().split())
n.sort()
if n[0] == n[1] == 5 and n[2] == 7:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpqc_sqwtx/tmpnq0dirlc.py", line 1, in <module>
n = list(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s406343367 | p04043 | u688375653 | 1566612709 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | A,B,C=map(int,input().split())
hoge=set([A,B,C])
if hoge==set([5,7]):
if A+B+C=17:
print("YES")
else:
print("NO") | File "/tmp/tmp7mkqvii1/tmpbpm9gnkh.py", line 5
if A+B+C=17:
^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s389836261 | p04043 | u770035520 | 1566476313 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 178 | def Haiku(check,syllables):
check.sort()
syllables.sort()
if check==syllables:
return "YES"
else:
return "NO"
print(Haiku(check,syllables)) | Traceback (most recent call last):
File "/tmp/tmp5g4ge_z0/tmp4kxhu3mo.py", line 9, in <module>
print(Haiku(check,syllables))
^^^^^
NameError: name 'check' is not defined
| |
s217541692 | p04043 | u343711599 | 1566443339 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | A,B,C = map(int,input().split())
if A+B+C == 17 and (A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7):
print('YES')
else:
print('NO') | File "/tmp/tmpnjx0qcpe/tmpv52g8fcd.py", line 4
else:
^^^^
SyntaxError: invalid syntax
| |
s798644419 | p04043 | u920438243 | 1566362678 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 162 | go = 0
nana = 0
num = input().split()
for i in num:
if i == "5":
go+=1
elif i == "7":
nana+=1
if (go==2) and (nana==1):
print(YES)
else:
print(NO) | Traceback (most recent call last):
File "/tmp/tmpr0uw75nx/tmp6koya75f.py", line 3, in <module>
num = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s857082762 | p04043 | u453500284 | 1566314960 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38256 | 111 | li = list(map(int, input().split()))
if li = [5,5,7] or [5,7,5] or [7,5,5]:
print('Yes')
else:
print('No') | File "/tmp/tmplkswgqpl/tmpd7a_oa2r.py", line 2
if li = [5,5,7] or [5,7,5] or [7,5,5]:
^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s885908827 | p04043 | u453500284 | 1566314456 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38256 | 161 | a, b, c = map(int,input().split())
if ((a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7)):
print("Yes")
else: print("No")
| File "/tmp/tmpeozmi2xl/tmp685ec4s9.py", line 2
if ((a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7)):
IndentationError: unexpected indent
| |
s054348891 | p04043 | u453500284 | 1566314026 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 174 | a, b, c = map(input().split())
if a + b + c == 17:
if (a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7):
print("Yes")
else: print("No") | Traceback (most recent call last):
File "/tmp/tmpsajcc6k1/tmp6bovql2_.py", line 1, in <module>
a, b, c = map(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s802427606 | p04043 | u131625544 | 1566272594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | N, L = map(int, input().split())
Slist = [input() for i in range(N)]
S = sorted(Slist)
s = ''.join(S)
print(s) | Traceback (most recent call last):
File "/tmp/tmpdy1jmw7d/tmp1k_2kbvb.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s170747293 | p04043 | u131625544 | 1566272530 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 38 | n,l=map(int,input().split())
print('') | Traceback (most recent call last):
File "/tmp/tmpna9yybee/tmpzy81a39r.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s834191196 | p04043 | u131625544 | 1566272305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmpwxxqy2xn/tmp_v3qyxtf.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s957891784 | p04043 | u131625544 | 1566272283 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | n, l = map(int, input().split())
s = sorted([input() for i in range(N)])
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmpmoq7r0bm/tmps9xz9onh.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s228525428 | p04043 | u131625544 | 1566272228 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | N, L = map(int, input().split())
S = sorted([input() for i in range(N)])
print("".join(S)) | Traceback (most recent call last):
File "/tmp/tmpll0ixc51/tmpevqfgbm3.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s638595827 | p04043 | u131625544 | 1566272194 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N, L = map(int, input().split())
S = sorted([input() for i in range(N)])
print(''.join(S)) | Traceback (most recent call last):
File "/tmp/tmpl9s9s7l7/tmpny6ezq2t.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s853815484 | p04043 | u131625544 | 1566272134 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 91 | N, L = map(int, input().split())
S = sorted([input() for i in range(N)])
print(*S, sep='') | Traceback (most recent call last):
File "/tmp/tmpbi4x7vdw/tmpa2orcpd7.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s430040957 | p04043 | u131625544 | 1566271946 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N, L = map(int, input().split())
S = [input() for i in range(N)]
print(*sorted(S), sep='') | Traceback (most recent call last):
File "/tmp/tmp66ql2fd0/tmp5hh5e1tr.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s306934730 | p04043 | u026678302 | 1566268455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 208 | test=list(map(int, input().split()))
def iroha():
if test==[5,5,7]:
print("yes")
elif test==[5,7,5]:
print("yes")
elif test==[7,5,5]:
print("yes")
else:
print("no")
iroha() | File "/tmp/tmpnlnw1ci5/tmpl2a05mzn.py", line 5
print("yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s161418154 | p04043 | u026678302 | 1566268151 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 210 | test=list(map(int, input().split()))
def iroha():
if test==[5,5,7]:
print("yes")
elif test==[5,7,5]:
print("yes")
elif test==[7,5,5]:
print("yes")
else:
print("no")
iroha() | File "/tmp/tmp3wyiy_95/tmpjk5u2tdl.py", line 3
def iroha():
IndentationError: unexpected indent
| |
s869591147 | p04043 | u785470389 | 1566266716 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 361 | #入力
n, k = map(int, input().split())
d = input().split()
stop = min(10000, n * 10)
for l in range(n, stop):
a = str(n)
flag = 0
for i in range(len(a)):
for j in range(k):
if a[i] != d[j]:
flag += 1
else:
n += 1
break
if (flag % k) != 0 and flag == 0:
break
if flag == len(a) * k:
break
print(n) | Traceback (most recent call last):
File "/tmp/tmp4_37uizr/tmprbzrqnlk.py", line 2, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s986822911 | p04043 | u488934106 | 1566240161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | A = int(input())
B = int(input())
C = int(input())
print("YES" if A+B+C == 17 else "NO") | Traceback (most recent call last):
File "/tmp/tmp7yznc2xe/tmpbgru2qvh.py", line 1, in <module>
A = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s190816422 | p04043 | u291625518 | 1566166158 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 | s = input().split()
if s.count("5") == 2 and s.count("7") = 1:
print("YES")
else:
print("NO") | File "/tmp/tmpkf3lzxfn/tmpmwroo7r5.py", line 3
if s.count("5") == 2 and s.count("7") = 1:
^
SyntaxError: invalid syntax
| |
s521550048 | p04043 | u291625518 | 1566165640 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 | s = input().split()
if s.find("5") == 2 and s.find("7") == 1:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp0arumnpf/tmpwi6x4sby.py", line 1, in <module>
s = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s011573967 | p04043 | u628018347 | 1566103889 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 492 | num_list = list(map(int, input().split()))
N = num_list[0]
L = num_list[1]
S = [input(i) for i in range(N)]
for i in range(N):
for j in range(N):
if i < j:
for k in range(L):
if S[i][k] > S[j][k]:
S[i], S[j] = S[j], S[i]
break
else:
continue
print(''.join(S))
| Traceback (most recent call last):
File "/tmp/tmp4i0ekn41/tmpfsg83b0d.py", line 1, in <module>
num_list = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s142877093 | p04043 | u643714578 | 1566043360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print(*s,sep="") | Traceback (most recent call last):
File "/tmp/tmp11yaxwb_/tmpvktvj0s3.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s580290464 | p04043 | u643714578 | 1566043249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | n,l=map(int,input().split())
list=sorted([input() for i in range(n)])
print(*list,sep="") | Traceback (most recent call last):
File "/tmp/tmp3k59xo3x/tmp27ohazzf.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s079221232 | p04043 | u643714578 | 1566043102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | n,l=map(int,input().split())
list=sorted([input() for i in range(n)])
print(*list,sep="") | Traceback (most recent call last):
File "/tmp/tmpo6bjqxh4/tmpm513u0n5.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s617507093 | p04043 | u271044469 | 1566020003 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 233 | n = list(map(int, input().split()))
count_5 = 2
count_5 = 1
for i in range(len(n)):
if n[i] == 5:
count_5 -= 1
elif n[i] == 7:
count_7 -= 1
if count_5==0 and count_7==0:
print('YES')
else:
print('NO')
| Traceback (most recent call last):
File "/tmp/tmpuhece3iy/tmpzz5glc_a.py", line 1, in <module>
n = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s634136546 | p04043 | u271044469 | 1566019919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 227 | n = list(map(int, input().split()))
5count = 2
7count = 1
for i in range(len(n)):
if n[i] == 5:
5count -= 1
elif n[i] == 7:
7count -= 1
if 5count==0 and 7count==0:
print('YES')
else:
print('NO')
| File "/tmp/tmpb79r1gp3/tmp0ukzsfhr.py", line 2
5count = 2
^
SyntaxError: invalid decimal literal
| |
s768945968 | p04043 | u275861030 | 1566013366 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | a, b, c = map(int, input().split())
if (a ==5 and b==5 and c ==7) or (a==5 and b==7 and c==5) or (a==7 and b==5 and C==5):
print('YES')
else:
print('NO')
| Traceback (most recent call last):
File "/tmp/tmpiktxasu0/tmp1pdmjcmz.py", line 1, in <module>
a, b, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s358996144 | p04043 | u618373524 | 1566003321 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | n,l = map(int,input().split())
s = sorted([input() for i in range(n)] )
print(*s,sep="") | Traceback (most recent call last):
File "/tmp/tmptvjx_7pw/tmpb7a02hk3.py", line 1, in <module>
n,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s302254040 | p04043 | u200887663 | 1565922377 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | l,n=map(int,input().split())
li=[input() for i in range(n)]
ans=sorted(li)
"""
for st in li :
s += st
print(s)
"""
print(*ans,sep="") | Traceback (most recent call last):
File "/tmp/tmps_02l0a2/tmp90oipxxt.py", line 1, in <module>
l,n=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s970914734 | p04043 | u999799597 | 1565920671 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 191 | strings = raw_input().split()
cand = [5, 7, 5]
for i in range(len(cand)):
for j in range(len(strings)):
if cand[i] == int(strings[j]):
cand.pop(i)
print(len(cand)==0) | Traceback (most recent call last):
File "/tmp/tmpkl2jy66d/tmpyij9ct8r.py", line 1, in <module>
strings = raw_input().split()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s227560385 | p04043 | u318165580 | 1565888969 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a,b,c=list(map(int,input().split()))
print("YES" if (a=b=5 and c=7) or (a=c=5 and b=7) or (b=c=5 and a=7) else "NO") | File "/tmp/tmpnjagn2ka/tmpwwzldxz8.py", line 2
print("YES" if (a=b=5 and c=7) or (a=c=5 and b=7) or (b=c=5 and a=7) else "NO")
^
SyntaxError: invalid syntax
| |
s068627127 | p04043 | u649558044 | 1565819355 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 164 | inp = input().split(" ")
N = int(inp[0])
L = int(inp[1])
s = []
for i in range(N):
s.append(input())
s.sort()
res = ""
for i in range(N):
res += s[i]
print(res) | Traceback (most recent call last):
File "/tmp/tmptduls6o8/tmp18jp7g5j.py", line 1, in <module>
inp = input().split(" ")
^^^^^^^
EOFError: EOF when reading a line
| |
s951587787 | p04043 | u812023932 | 1565812093 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | A, B, C = map(int, input().split())
if [A, B, C].count(5) = 2 and [A, B, C].count(7) = 1:
print("YES")
else:
print("NO")
| File "/tmp/tmp36k3xwnl/tmpj3o835x2.py", line 2
if [A, B, C].count(5) = 2 and [A, B, C].count(7) = 1:
^
SyntaxError: invalid syntax
| |
s723916683 | p04043 | u390170391 | 1565806096 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | lis = map(int,list(input().split()))
lis.sort()
if lis == [5,5,7]:
print('YES')
else:
print('NO')
| Traceback (most recent call last):
File "/tmp/tmppmllvqev/tmpbdoi4w35.py", line 1, in <module>
lis = map(int,list(input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s420210699 | p04043 | u390170391 | 1565805964 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | lis = list(input().split())
lis.sort()
if lis = [5,5,7]:
print('YES')
else:
print('NO') | File "/tmp/tmpj2gjmr2j/tmp25d3dmum.py", line 3
if lis = [5,5,7]:
^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s970516835 | p04043 | u959759457 | 1565785624 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | N,L=map(int,input(split()))
raw=[]
for i in range(N):
raw.append(input())
sortedraw=raw.sort()
ans=''
for j in range(N):
ans+=sortedraw[j]
print(ans)
| Traceback (most recent call last):
File "/tmp/tmpgfkkye28/tmpo4pt7c9d.py", line 1, in <module>
N,L=map(int,input(split()))
^^^^^
NameError: name 'split' is not defined
| |
s814976522 | p04043 | u111365362 | 1565759521 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 588 | n,K = map(int,input().split())
use = [0,1,2,3,4,5,6,7,8,9]
useless = list(map(int,input().split()))
for i in range(K):
use.remove(useless[i])
k = 10 - K
time = [0]
def suc(time):
now = 0
while True:
if now >= len(time):
time.append(0)
break
elif time[now] != k-1:
time[now] += 1
break
else:
time[now] = 0
now += 1
return time
#print(suc([0]))
#print(suc([1,1,1,1]))
#print(suc([1,0,1,1]))
while True:
pay = 0
for j in range(len(time)):
pay += use[time[j]] * 10 ** j
if pay >= n:
print(pay)
break
time = suc(time) | Traceback (most recent call last):
File "/tmp/tmpzqzwz4ff/tmpeewr7mwf.py", line 1, in <module>
n,K = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s563496922 | p04043 | u729535891 | 1565731589 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 181 | N = map(int, input().split())
for n in N:
if n == 5 :
cnt_5 += 1
elif n == 7 :
cnt_7 += 1
if cnt_5 == 2 & cnt_7 == 1:
print('Yes')
else:
print('N0') | Traceback (most recent call last):
File "/tmp/tmpop3vxmsn/tmp0paqryyy.py", line 1, in <module>
N = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s406331828 | p04043 | u880985077 | 1565666844 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | array = input().split()
if (array.count(5) == 2 and array.count(7) == 1):
print "YES"
else
print "NO" | File "/tmp/tmpq8v2epq4/tmp9_ncj_6t.py", line 3
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s953933119 | p04043 | u497326082 | 1565569832 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmp1wog6lxb/tmpeiic2ig4.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s731817002 | p04043 | u033907515 | 1565462614 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 3 | File "/tmp/tmpv_vqkxuz/tmp7lor5poz.py", line 1
^
SyntaxError: invalid non-printable character U+3000
| ||
s833352997 | p04043 | u933179804 | 1565459368 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | A, B, C = map(int, input().split())
if sum(A,B,C) == 17:
print("YEAS")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmpa_9daw06/tmpjnxxn1l_.py", line 1, in <module>
A, B, C = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s654387628 | p04043 | u933179804 | 1565458991 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | nums = list(input().split())
if sum(nums) == 17:
print("YES")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmpybl3q9e1/tmpepq9t0xm.py", line 1, in <module>
nums = list(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s063544759 | p04043 | u933179804 | 1565458819 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | numlist = list(input())
if sum(numlist) == 17:
print("YES")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmpjyqco74u/tmpnwv5z_zu.py", line 1, in <module>
numlist = list(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s206901648 | p04043 | u025159619 | 1565424558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | print(sorted([int(input()) for i in range(3)]) == [5,5,7]) | Traceback (most recent call last):
File "/tmp/tmpzmdehr1n/tmpj08w5igb.py", line 1, in <module>
print(sorted([int(input()) for i in range(3)]) == [5,5,7])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpzmdehr1n/tmpj08w5igb.py", line 1, in <listcomp>
print(sorted([int(input()) for i in range(3)]) == [5,5,7])
^^^^^^^
EOFError: EOF when reading a line
| |
s594819492 | p04043 | u493491792 | 1565383063 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | lista=list(map(int,input().split()))
lista.sort()
if lista==[5,5,7]:
print("YES")
else:
ptinr("NO") | Traceback (most recent call last):
File "/tmp/tmpwnu7z8mp/tmpv9xe7vfz.py", line 1, in <module>
lista=list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s041921416 | p04043 | u939581910 | 1565379222 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | x=map(int,input().split())
if x.count(7)==1 and x.count(5)==2:
print('YES')
else:
print('NO') | Traceback (most recent call last):
File "/tmp/tmp7y_0pes3/tmpxl37gio9.py", line 1, in <module>
x=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s251201236 | p04043 | u740047492 | 1565310016 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 126 | a = int(input())
b = int(input())
c = int(input())
if a + b + c == 17:
print("YES")
else:
print("NO")
| File "/tmp/tmp04cgvj74/tmp34rnznwf.py", line 4
if a + b + c == 17:
^
SyntaxError: invalid non-printable character U+3000
| |
s797858688 | p04043 | u280853184 | 1565270613 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2692 | 163 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
print "YES"
else:
print "NO" | File "/tmp/tmpxmdu4otx/tmpwrptpvyv.py", line 6
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s975631257 | p04043 | u280853184 | 1565270564 | Python | Python (2.7.6) | py | Runtime Error | 17 | 2696 | 166 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
print "YES"
else:
print "NO"
| File "/tmp/tmppuig7p6p/tmptjv195rp.py", line 6
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s761875948 | p04043 | u280853184 | 1565270538 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 205 | # -*- coding: utf-8 -*-
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum = 17:
print "YES"
else:
print "NO"
| File "/tmp/tmplkpbfr53/tmppbzt0up7.py", line 7
if sum = 17:
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s880070112 | p04043 | u280853184 | 1565270472 | Python | Python (2.7.6) | py | Runtime Error | 13 | 2824 | 123 | # -*- coding: utf-8 -*-
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
print "YES"
else
print "NO"
| File "/tmp/tmpugho1cnq/tmpjxtrc_bj.py", line 5
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s863353186 | p04043 | u280853184 | 1565270191 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2696 | 203 | # -*- coding: utf-8 -*-
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum = 17:
print "YES"
else
print "NO" | File "/tmp/tmpiuopzg29/tmpxrkrej8b.py", line 7
if sum = 17:
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s603717349 | p04043 | u800729321 | 1565188755 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 174 | i = input().split()
s, t = map(int, i)
str_list = []
for i in range(s):
string = input()
str_list.append(string)
str_list.sort()
ans = ''.join(str_list)
print(ans) | Traceback (most recent call last):
File "/tmp/tmpxsmzswpj/tmpitpcud2t.py", line 1, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s612004953 | p04043 | u800729321 | 1565187053 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 239 | a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a + b + c) != 17:
print("NO")
elif(a + b + c) = 17:
if(a + b == 10) | (b + c == 10) | (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") | File "/tmp/tmpj3i_4y__/tmparv6bq43.py", line 10
elif(a + b + c) = 17:
^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s071767513 | p04043 | u800729321 | 1565187003 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 242 | a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a + b + c) != 17:
print("NO")
elif(a + b + c) == 17:
if(a + b == 10) || (b + c == 10) || (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") | File "/tmp/tmpio0f_p5b/tmpuje2j7xb.py", line 11
if(a + b == 10) || (b + c == 10) || (c + a == 10):
^
SyntaxError: invalid syntax
| |
s036288573 | p04043 | u800729321 | 1565186919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 238 | a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a + b + c) != 17:
print("NO")
elif(a + b + c) = 17:
if(a + b == 10) || (b + c == 10) || (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") | File "/tmp/tmpunlf3gb8/tmpp1nsn80e.py", line 10
elif(a + b + c) = 17:
^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s300681998 | p04043 | u800729321 | 1565186819 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 203 | a,b,c = input().split()
if(a + b + c) != 17:
print("NO")
elif(a + b + c) = 17:
if(a + b == 10) || (b + c == 10) || (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") | File "/tmp/tmpuu7fdmr5/tmpi8nhlzku.py", line 5
elif(a + b + c) = 17:
^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s804997348 | p04043 | u971328381 | 1565127122 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | def k(l,i1,i2):
if(a==7):
i1 = i1+1
if(a==5):
i2 = i2+1
return i1,i2
l=list(int,input().split())
i1=0
i2=0
for i in l:
i1,i2 = k(i,i1,i2)
print('YES' if i1==1 and i2==2 else 'NO') | File "/tmp/tmp4f6lcgj1/tmpaeyc52mo.py", line 6
return i1,i2
^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s407532984 | p04043 | u680885792 | 1565116956 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | import sys
args = sys.args[1::]
numbers = [int(s) for s in args]
if sorted(numbers) == [5, 5, 7]:
return 'YES'
else:
return 'No'
| File "/tmp/tmpl52ounnb/tmp6i40nq3t.py", line 7
return 'YES'
^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s319573453 | p04043 | u680885792 | 1565116775 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | import sys
args = sys.args[1::]
ints = [int(s) for s in args]
return sorted(ints) == [5, 5, 7]
| File "/tmp/tmpi_a0b4v4/tmpiaf6je__.py", line 6
return sorted(ints) == [5, 5, 7]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s544968188 | p04043 | u462703607 | 1565116202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a=list(map(int,input().split()))
a.sort()
if a[0]=5 and a[1]=5 and a[2]=7:
print(Yes)
else:
print(No) | File "/tmp/tmptaygtuzj/tmptcl645fc.py", line 3
if a[0]=5 and a[1]=5 and a[2]=7:
^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s913073872 | p04043 | u229959388 | 1565107876 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 219 | n, k = map(int, input().split())
a = input().split()
for i in range(10*n - n):
c = str(n+i)
for j in a:
if j in c:
break
else:
ans = c
break
print(ans) | Traceback (most recent call last):
File "/tmp/tmp3i64tmum/tmp676b7ofn.py", line 1, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s570115699 | p04043 | u999669171 | 1565065335 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 790 | h, w, a, b = map( int, input().split() )
SIZE = h+w+2
MOD = 10**9 + 7
MOD_Farmer = 10**9+5
fact = [0] * SIZE
inv = [0] * SIZE
fact_inv = [0] * SIZE
# prepare --------------------------------
inv[0] = 0
inv[1] = 1
fact[0] = fact[1] = 1
fact_inv[0] = fact_inv[1] = 1
for i in range( 2, SIZE ):
fact[i] = fact[i-1] * i % MOD
fact_inv[i] = ( (fact[i] **( 10**4 ) \
* fact[i] **( 10**5 ) \
* fact[i] ** 5 ) % MOD )\
% MOD
# ----------------------------------------
def comb( n, r ):
if r >= 0 and n >= 0:
return fact[n] * fact_inv[n-r] * fact_inv[r]
else :
return 0.0
# ----------------------------------------
ans = 0
for i in range( h-a ):
ans += comb(i+b-1, b-1) * comb(h-i-1+w-b-1,w-b-1)
ans %= MOD
print( ans ) | Traceback (most recent call last):
File "/tmp/tmpn88240c8/tmpboa32pwy.py", line 1, in <module>
h, w, a, b = map( int, input().split() )
^^^^^^^
EOFError: EOF when reading a line
| |
s546117742 | p04043 | u999669171 | 1565065229 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 758 | h, w, a, b = map( int, input().split() )
SIZE = h+w+2
MOD = 10**9 + 7
MOD_Farmer = 10**9+5
fact = [0] * SIZE
inv = [0] * SIZE
fact_inv = [0] * SIZE
# prepare --------------------------------
inv[0] = 0
inv[1] = 1
fact[0] = fact[1] = 1
fact_inv[0] = fact_inv[1] = 1
for i in range( 2, SIZE ):
fact[i] = fact[i-1] * i % MOD
fact_inv[i] = fact[i] **( 10**4 ) \
* fact[i] **( 10**5 ) \
* fact[i] ** 5 % MOD % MOD
# ----------------------------------------
def comb( n, r ):
if r >= 0 and n >= 0:
return fact[n] * fact_inv[n-r] * fact_inv[r]
else :
return 0.0
# ----------------------------------------
ans = 0
for i in range( h-a ):
ans += comb(i+b-1, b-1) * comb(h-i-1+w-b-1,w-b-1)
ans %= MOD
print( ans ) | Traceback (most recent call last):
File "/tmp/tmpf7hrmdoz/tmp8hj_s9xf.py", line 1, in <module>
h, w, a, b = map( int, input().split() )
^^^^^^^
EOFError: EOF when reading a line
| |
s611522726 | p04043 | u999669171 | 1565054328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 263 | input_N_L = input()
#print( input_N_L )
N, L = map( int, input_N_L.split() )
#print( N )
#print( L )
str_set = []
for i in range( L ):
str_set.append( input() )
#print( array )
sorted_str = ""
for s in sorted( str_set ):
sorted_str += s
print( sorted_str ) | Traceback (most recent call last):
File "/tmp/tmp79glcceg/tmpbh6bz168.py", line 1, in <module>
input_N_L = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s402777809 | p04043 | u999669171 | 1565054077 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 263 | input_N_L = input()
#print( input_N_L )
N, L = map( int, input_N_L.split() )
#print( N )
#print( L )
str_set = set()
for i in range( L ):
str_set.add( input() )
#print( array )
sorted_str = ""
for s in sorted( str_set ):
sorted_str += s
print( sorted_str ) | Traceback (most recent call last):
File "/tmp/tmp7l5l7bwk/tmpwlksqduv.py", line 1, in <module>
input_N_L = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s362623359 | p04043 | u999669171 | 1565053077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | array = intpu().split()
N = array[0]
L = array[1]
strs = array[2:]
print( sorted(strs) )
| Traceback (most recent call last):
File "/tmp/tmp0x1zjnm6/tmphdgcwcxt.py", line 1, in <module>
array = intpu().split()
^^^^^
NameError: name 'intpu' is not defined. Did you mean: 'input'?
| |
s817969335 | p04043 | u999669171 | 1565051941 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 362 |
a, b, c = map( int, input().split() )
if a+b+c != 17:
print( "NO" )
iCountFive = 0
if a = 5:
iCountFive += 1
if b = 5:
iCountFive += 1
if c = 5:
iCountFive += 1
iCountSeven = 0
if a = 7:
iCountSeven += 1
if b = 7:
iCountSeven += 1
if c = 7:
iCountSeven += 1
if iCountFive == 2 and iCountSeven == 1:
print( "YES" )
else :
print( "NO" ) | File "/tmp/tmp_cp8fl55/tmpo693g95p.py", line 7
if a = 5:
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s169933438 | p04043 | u999669171 | 1565051878 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 353 | a, b, c = map( int, input() )
if a+b+c != 17:
print( "NO" )
iCountFive = 0
if a = 5:
iCountFive += 1
if b = 5:
iCountFive += 1
if c = 5:
iCountFive += 1
iCountSeven = 0
if a = 7:
iCountSeven += 1
if b = 7:
iCountSeven += 1
if c = 7:
iCountSeven += 1
if iCountFive == 2 and iCountSeven == 1:
print( "YES" )
else :
print( "NO" ) | File "/tmp/tmp53yh369o/tmpxpo6dwf4.py", line 6
if a = 5:
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s234075528 | p04043 | u539005641 | 1564959880 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a=list(map(int,input().split())).sort()
if a==[5,5,7]:
print(YES)
else:
print(NO)
| File "/tmp/tmp1l21hr5u/tmp51nbqx71.py", line 4
else:
^^^^
SyntaxError: invalid syntax
| |
s045329917 | p04043 | u539005641 | 1564959761 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a,b=map(int,input().split())
s = [input().strip("\"") for i in range(a)]
print("".join(s)) | Traceback (most recent call last):
File "/tmp/tmp6n8boqkx/tmp7p3jg5ls.py", line 1, in <module>
a,b=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s241011475 | p04043 | u057308539 | 1564955084 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N,L=map(int,input().split())
S=[]
S_list=[]
for i in range(N):
S.append(input())
S.sort()
print(''.join(S)) | Traceback (most recent call last):
File "/tmp/tmpkszoio4_/tmp4mt1j813.py", line 1, in <module>
N,L=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s108505845 | p04043 | u057308539 | 1564953589 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N,L=map(int,input().split())
S=[]
S_list=[]
for i in range(N):
S.append(input())
S.sort()
print("".join(S)) | Traceback (most recent call last):
File "/tmp/tmpxn7vko39/tmpfox2qvin.py", line 1, in <module>
N,L=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s331194728 | p04043 | u457554982 | 1564946321 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1020 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") | Traceback (most recent call last):
File "/tmp/tmp83g5uiha/tmp_j1e8oqt.py", line 1, in <module>
n,k=[s for s in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s511039995 | p04043 | u457554982 | 1564946232 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1020 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") | Traceback (most recent call last):
File "/tmp/tmp2lxjwllx/tmpwy_298by.py", line 1, in <module>
n,k=[s for s in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s993686598 | p04043 | u457554982 | 1564946208 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1044 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
hate.sort()
like.sort()
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") | Traceback (most recent call last):
File "/tmp/tmp0h66byhz/tmpq1y0chun.py", line 1, in <module>
n,k=[s for s in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s763861258 | p04043 | u457554982 | 1564946064 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1044 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
hate.sort()
like.sort()
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") | Traceback (most recent call last):
File "/tmp/tmpewmt9fda/tmp2dd9dg5h.py", line 1, in <module>
n,k=[s for s in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s214236713 | p04043 | u457554982 | 1564942708 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 831 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
print(kane) | Traceback (most recent call last):
File "/tmp/tmpe9qa2two/tmpeiwe6xqq.py", line 1, in <module>
n,k=[s for s in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s417114285 | p04043 | u457554982 | 1564942655 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 857 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
print(kane)
#else:
#print("Error!!") | Traceback (most recent call last):
File "/tmp/tmpjhi9sdx6/tmp4z4c_2da.py", line 1, in <module>
n,k=[s for s in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s907599332 | p04043 | u457554982 | 1564932865 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | (n,l)=map(int, input().split())
list1=[]
for i in range(n):
list1.extend(input().split())
list1.sort()
for i in range(n):
print(list1[i],end="") | Traceback (most recent call last):
File "/tmp/tmpi0h8olin/tmp501o5o83.py", line 1, in <module>
(n,l)=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s722904446 | p04043 | u457554982 | 1564930952 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | (n,l)=map(int, input().split())
list1=list(input().split())
for i in range(n):
print(list1[i],end="") | Traceback (most recent call last):
File "/tmp/tmpjpl1_q0q/tmpzx50zby6.py", line 1, in <module>
(n,l)=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s708196409 | p04043 | u457554982 | 1564930890 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | (n,l)=map(int, input().split())
list1=list(input().split())
for i in range(n)
print(list1[i],end="") | File "/tmp/tmpab_3bsnk/tmp6ytjqt58.py", line 3
for i in range(n)
^
SyntaxError: expected ':'
| |
s458980741 | p04043 | u457554982 | 1564923280 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | [a,b,c]=input().split()
[A,B,C]=map(len, [a,b,c])
haiku=[A,B,C]
haiku.sort()
if haiku==[5,5,7];
print("YES")
else;print("NO")
| File "/tmp/tmp4nbf7pcs/tmpdq5_uyq7.py", line 5
if haiku==[5,5,7];
^
SyntaxError: invalid syntax
| |
s470102242 | p04043 | u498397607 | 1564894220 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a, b, c = map(int, input().stlip())
if sorted((a, b, c)) == [5, 5, 7]:
print('YES')
else:
print('NO') | Traceback (most recent call last):
File "/tmp/tmpvd1fmyj9/tmp7f_0_4r3.py", line 1, in <module>
a, b, c = map(int, input().stlip())
^^^^^^^
EOFError: EOF when reading a line
| |
s774669529 | p04043 | u498397607 | 1564892606 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 103 | a, b, c = map(int, input().split())
if sorted(a, b, c) == [5, 5, 7]:
print('Yes')
else:
print('NO') | Traceback (most recent call last):
File "/tmp/tmp4k0r8mio/tmpd_dfvqff.py", line 1, in <module>
a, b, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s427080242 | p04043 | u498397607 | 1564892399 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a, b, c = map(int, input().split())
if set(a, b, c) == (5, 7) & a*b*c % 25 == 0:
print(YES)
else:
print(NO) | Traceback (most recent call last):
File "/tmp/tmp_fbyvurn/tmpfreqy30z.py", line 1, in <module>
a, b, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s113145247 | p04043 | u171435446 | 1564884490 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 121 | a = list(map(int, input().split()))
a.sort()
if (a[0] == 5 && a[1] == 5 && a[2] == 7):
print("Yes")
else:
print("No") | File "/tmp/tmpgeean_xl/tmpnb1vnjdr.py", line 3
if (a[0] == 5 && a[1] == 5 && a[2] == 7):
^
SyntaxError: invalid syntax
| |
s087942165 | p04043 | u171435446 | 1564884179 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | a = map(int, input().split())
a.sort()
if (a[0] == 5 && a[1] == 5 && a[2] == 7):
print("Yes")
else:
print("No")
| File "/tmp/tmp1rd9z73g/tmpr600gb8m.py", line 3
if (a[0] == 5 && a[1] == 5 && a[2] == 7):
^
SyntaxError: invalid syntax
| |
s474213510 | p04043 | u904804404 | 1564872395 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | if [5,5,7] == list(map(int,input().split().sorted())):
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpa8rlax__/tmpgchq5gj3.py", line 1, in <module>
if [5,5,7] == list(map(int,input().split().sorted())):
^^^^^^^
EOFError: EOF when reading a line
| |
s498131960 | p04043 | u027165539 | 1564842836 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | n, l = map(int, input())
s = sorted([input() for _ in range(N)])
print(''.join(s)) | Traceback (most recent call last):
File "/tmp/tmp3rzm2l0q/tmpidnpn0vv.py", line 1, in <module>
n, l = map(int, input())
^^^^^^^
EOFError: EOF when reading a line
| |
s206757872 | p04043 | u257541375 | 1564811271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | array = [int(i) for i in input().split()]
if sort(array) == [5,5,7]:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp2e4b6ahj/tmp1ww1u0of.py", line 1, in <module>
array = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s194926936 | p04043 | u361841553 | 1564784118 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | x = map(int, input().split())
x.sort()
if x[0] == 5 and x[1] == 5 and x[2]== 5:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp_z3h9ypq/tmp3ycot5dx.py", line 1, in <module>
x = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s428713417 | p04043 | u361841553 | 1564784077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | x = map(int(), input().split())
x.sort()
if x[0] == 5 and x[1] == 5 and x[2]== 5:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpe13bn8my/tmpceg2_zhc.py", line 1, in <module>
x = map(int(), input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s778440204 | p04043 | u227610947 | 1564758874 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a, b, c = map(int,input.split())
if a == 5 and b == 7 and c == 5:
print('YES')
else:
print('NO')
| Traceback (most recent call last):
File "/tmp/tmp1uja5_dn/tmpccublik6.py", line 1, in <module>
a, b, c = map(int,input.split())
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.