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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s510012237 | p04043 | u182898140 | 1580007145 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 287 | a,b,c=input().split()
if a==b==5:
if c==7:
return print("Yes")
else:
return print("No")
elif a==c==5:
if b==7:
return print("Yes")
else:
return print("No")
elif b==c==5:
if a==7:
return print("Yes")
else:
return print("No")
else:
return print("No") | File "/tmp/tmpuehs6aux/tmpscgufe_7.py", line 5
return print("Yes")
^^^^^^^^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s174593658 | p04043 | u711626986 | 1579895039 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 178 | a, b, c=int(input(),split())
if a==7 and b==5 and c==5:
print("YES")
elif a==5 and b==7 and c==5:
print("YES")
elif a==5 and b==5 and c==7:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp7vzpqle5/tmpgqyosnc4.py", line 1, in <module>
a, b, c=int(input(),split())
^^^^^^^
EOFError: EOF when reading a line
| |
s328834553 | p04043 | u790048565 | 1579779443 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 265 | ins = list(map(int, input().split()))
N = ins[0]
L = ins[1]
Ss = []
for i in range(N):
Ss.append(input())
for i, a in enumerate(Ss):
key = a
j = i - 1
while j >= 0 and Ss[j] > a:
Ss[j + 1] = Ss[j]
j = j - 1
Ss[j + 1] = key
print(' '.join(Ss)) | Traceback (most recent call last):
File "/tmp/tmpkyqmmhi7/tmp1zb9lus6.py", line 1, in <module>
ins = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s246525597 | p04043 | u816070625 | 1579743123 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a=map(int,input().split())
if a.count(5)==2 and a.count(7)==1:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpkaaopacy/tmp0yu8zr0_.py", line 1, in <module>
a=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s328818337 | p04043 | u237299453 | 1579736852 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 3 | if | File "/tmp/tmp29x5mjbp/tmp4tjazmyy.py", line 1
if
^
SyntaxError: invalid syntax
| |
s669396824 | p04043 | u993435350 | 1579724565 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 151 | A,B,C = map(int,inputs().split())
if A + B + C == 17:
if A + B or A + C or B + C == 10:
print("YES")
else:
print("NO")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpz14p2ua2/tmpmdqdwny7.py", line 1, in <module>
A,B,C = map(int,inputs().split())
^^^^^^
NameError: name 'inputs' is not defined. Did you mean: 'input'?
| |
s209909688 | p04043 | u303039933 | 1579710572 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 121 | A = map(int,input().split())
sorted(A)
if A[0] == 5 and A[1] == 5 and A[2] == 7:
print("YES")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmptkp5p5wi/tmpdqypgd33.py", line 1, in <module>
A = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s181922994 | p04043 | u682563287 | 1579669981 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 257 | #N = input().split()
#huga = list(map(int, input().split()))
N = list(map(int, input().split()))
if (N[0]==7 or N[1]==7 or N[2]==7){
if (N[0]==5 or N[1]==5 or N[2]==5 and N[0]+N[1]+N[2]==12){
print YES
}
else{
print NO
}
}
else{
print NO
} | File "/tmp/tmpon4e6a9r/tmp9bnlsllj.py", line 5
if (N[0]==7 or N[1]==7 or N[2]==7){
^
SyntaxError: invalid syntax
| |
s975964972 | p04043 | u871596687 | 1579378696 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | N,L = map(int,input().split())
s = [str(input()) for i in range(N)]
p = sorted(s)
print("".join(p))
| Traceback (most recent call last):
File "/tmp/tmpi5oiasdl/tmpxtevc8wn.py", line 1, in <module>
N,L = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s712122006 | p04043 | u443327476 | 1579300972 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | 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') | File "/tmp/tmpistsdubt/tmp3z966je5.py", line 1
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)):
^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s122767434 | p04043 | u443327476 | 1579300705 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | if (A=5^B=5^C=7|A=5^B=7^C=5|A=7^B=5^C=5):
print ("yes")
else:
print ("no") | File "/tmp/tmpl54glk1y/tmpvhpowhi9.py", line 1
if (A=5^B=5^C=7|A=5^B=7^C=5|A=7^B=5^C=5):
^
SyntaxError: invalid syntax
| |
s590310085 | p04043 | u012131682 | 1579227828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 286 | import sys
a = int(input())
b = int(input())
c = int(input())
if (a == 5 or a == 7):
if (b == 5 or b == 7):
if (c == 5 or c == 7):
d = a * b * c
if (d == 175):
print("YES")
else: print("NO")
else: print("NO")
else: print("NO")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp9gnwet8w/tmpibsj6u_z.py", line 3, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s235838224 | p04043 | u772062359 | 1578893784 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 148 | a , b = map(int,input().split())
list = []
papa = ""
for i in range(b):
list.append(input())
c = sorted(list)
for x in c:
papa += x
print(papa) | Traceback (most recent call last):
File "/tmp/tmpbc8ar2lw/tmppx2efv7j.py", line 1, in <module>
a , b = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s513091256 | p04043 | u566297428 | 1578852668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | A,B,C = list(map(int,input().split()))
if
| File "/tmp/tmpcwhmkuio/tmpj4ifaja_.py", line 3
if
^
SyntaxError: invalid syntax
| |
s992095903 | p04043 | u241190800 | 1578792892 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | tupni = [int(idx) for idx in input.split(" ")]
if tupni.sort() == [5,5,7]:
print("YES")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmp3j1d2u3d/tmp7ew62kan.py", line 1, in <module>
tupni = [int(idx) for idx in input.split(" ")]
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
| |
s961237892 | p04043 | u241190800 | 1578792842 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | tupni = [int(idx) for idx in input.split()]
if tupni.sort() == [5,5,7]:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpi7o930h8/tmpmlqvn4hs.py", line 1, in <module>
tupni = [int(idx) for idx in input.split()]
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
| |
s144245956 | p04043 | u710907926 | 1578788581 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | 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/tmpet9gkfr9/tmp178bk0ci.py", line 1, in <module>
L, N = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s176350392 | p04043 | u805045107 | 1578609354 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | N, L = map(int,input().split())
words = []
for i in range(N):
words.append(input())
words.sort()
print(''.join(words)) | Traceback (most recent call last):
File "/tmp/tmpxqgatiuv/tmpq7pw8dmw.py", line 1, in <module>
N, L = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s706432854 | p04043 | u709686535 | 1578455449 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | sort_list = list(int(map, input().split()))
if sort_list.count(5) == 1 and sort_list.count(7) == 2:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpqt2lb21h/tmpoq_j23v3.py", line 1, in <module>
sort_list = list(int(map, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s997145750 | p04043 | u427984570 | 1578331276 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | str = input()
count5 = str.count(5)
count7 = str.count(7)
if count5 == 2 and count7 == 1:
print('Yes')
else:
print('NO')
| Traceback (most recent call last):
File "/tmp/tmpm7bph2hx/tmpg2fpyb0i.py", line 1, in <module>
str = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s475685895 | p04043 | u427984570 | 1578325853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | num = input().split()
str = input()
strc = ''
for i in range(int(num[0])-1):
strc = input()
if str > strc:
str = strc + str
else:
str = str + strc
print(str) | Traceback (most recent call last):
File "/tmp/tmp4f7hv4po/tmpm64jocgf.py", line 1, in <module>
num = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s105670510 | p04043 | u427984570 | 1578324500 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 211 | num= input().split()
5count = 0
7count = 0
for i in range(len(num)):
if num[i] == '5':
5count += 1
elif num[i] == '7':
7count += 1
if 5count == 2 and 7count == 1:
print('YES')
else:
print('NO') | File "/tmp/tmpnffw45rb/tmpazb1dp53.py", line 2
5count = 0
^
SyntaxError: invalid decimal literal
| |
s208632186 | p04043 | u427984570 | 1578324409 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 211 | num= int(input().split())
5count = 0
7count = 0
for i in range(len(num)):
if num[i] == 5:
5count += 1
elif num[i] == 7:
7count += 1
if 5count == 2 and 7count == 1:
print('YES')
else:
print('NO') | File "/tmp/tmp07m776v4/tmpxacrex3r.py", line 2
5count = 0
^
SyntaxError: invalid decimal literal
| |
s050195933 | p04043 | u127499732 | 1578008517 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | a = list(map(int,input()))
b = a.count('5')
c = a.count('7')
if b == 2 and c ==1:
print('YES')
else:
print('NO') | Traceback (most recent call last):
File "/tmp/tmpk0h1p968/tmp62i8o8nw.py", line 1, in <module>
a = list(map(int,input()))
^^^^^^^
EOFError: EOF when reading a line
| |
s331775926 | p04043 | u127499732 | 1578008479 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 140 | a = list(map(int,input()))
b = a.count(’5')
c = a.count(’7')
if b == 2 and c ==1:
print('YES')
else:
print('NO') | File "/tmp/tmpohh7q0ol/tmpfph8byru.py", line 2
b = a.count(’5')
^
SyntaxError: invalid character '’' (U+2019)
| |
s050631717 | p04043 | u127499732 | 1578008431 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 142 | a = list(map(int,input()))
b = a.count(’5')
c = a.count(’7')
if b == 2 and c ==1:
pritn('YES')
else:
print('NO')
| File "/tmp/tmppfjjt62j/tmp6y9mbzlf.py", line 2
b = a.count(’5')
^
SyntaxError: invalid character '’' (U+2019)
| |
s165142836 | p04043 | u000217253 | 1578001228 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 266 | a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
if x==5:
global 5_count
5_count+=1
elif x==7:
global 7_count
7_count+=1
check(a)
check(b)
check(c)
if 7_count==1 and 5_count==2:
print("YES")
else:
print("NO")
| File "/tmp/tmpb395cvut/tmp0i3f5wnh.py", line 2
7_count=0
^
SyntaxError: invalid decimal literal
| |
s438015842 | p04043 | u000217253 | 1578001049 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 256 | a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
if x==5:
global 5_count
5_count+=1
elif x==7:
global 7_count
7_count+=1
check(a)
check(b)
check(c)
if 7_count=1 and 5_count=2:
print("YES")
else:
print("NO")
| File "/tmp/tmpwe3pixy3/tmp3hr3sgpm.py", line 2
7_count=0
^
SyntaxError: invalid decimal literal
| |
s638442477 | p04043 | u676015657 | 1577918957 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | a, b, c = map(int, input().split())
if a+b+c == 17 and a=5, b=7, c=5;
print("YES")
else;
print("NO") | File "/tmp/tmpm1gtony7/tmpga1405fh.py", line 2
if a+b+c == 17 and a=5, b=7, c=5;
^
SyntaxError: invalid syntax
| |
s043605122 | p04043 | u318024671 | 1577912027 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 89 | a, b, c = map(int, input().split())
if a+b+c = 19:
print("Yes")
else:
print("No") | File "/tmp/tmpshv1yppx/tmpto0wn46w.py", line 2
if a+b+c = 19:
^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s883467072 | p04043 | u654085902 | 1577684159 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 224 | m, n = map(int,input().split())
l = map(str,input().split())
l2 = {str(i) for i in range(10)}
l3 = set(l2) - set(l)
ans = 0
for i in range(m, 100000):
nums = set(str(i))
if nums <= l3:
print(i)
break | Traceback (most recent call last):
File "/tmp/tmp3u0qp3xb/tmpu2rm2p2y.py", line 1, in <module>
m, n = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s983360800 | p04043 | u986480146 | 1577582954 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 247 | A, B, C = map(int, input().split())
if A + B + C == 17:
if A == 5:
if B + C == 12:
print(YES)
else:
print(NO)
if A == 7:
if B + C == 10:
print(YES)
else:
print(NO)
else:
print(NO)
else:
print(NO) | Traceback (most recent call last):
File "/tmp/tmp5017n97f/tmpx0v6e8ux.py", line 1, in <module>
A, B, C = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s847345212 | p04043 | u986480146 | 1577582805 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 247 | A, B, C = map(int, input().split())
if A + B + C == 17:
if A == 5:
if B + C == 12:
return YES
else:
return NO
if A == 7:
if B + C == 10:
return YES
else:
return NO
else:
return NO
else:
return NO | File "/tmp/tmpx76ae0gn/tmpttxwcwlj.py", line 5
return YES
^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s980229367 | p04043 | u986480146 | 1577582312 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | A, B, C = int(input().split().split())
array = [A, B, C]
sa = sorted[array]
if sa = [5, 5, 7]:
return YES
else:
return NO | File "/tmp/tmp88orit1l/tmpqff78971.py", line 4
if sa = [5, 5, 7]:
^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s040614661 | p04043 | u141429472 | 1577575741 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38640 | 1022 | import sys
input = sys.stdin.readline
N,K=map(int,input().rstrip().split())
D=list(map(int,input().rstrip().split()))
def dfs(N):
for i in range(K):
if(str(N).find(str(D[i]))!=-1):
dfs(N+1)
return
else:
print(N)
def resolve():
dfs(N)
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.read()[:-1]
sys.stdout, sys.stdin = stdout, stdin
self.assertEqual(out, output)
def test_入力例_1(self):
input = """1000 8
1 3 4 5 6 7 8 9"""
output = """2000"""
self.assertIO(input, output)
def test_入力例_2(self):
input = """9999 1
0"""
output = """9999"""
self.assertIO(input, output)
if __name__ == "__main__":
#unittest.main()
resolve() | Traceback (most recent call last):
File "/tmp/tmphpo8q73v/tmpis9ojvvk.py", line 4, in <module>
N,K=map(int,input().rstrip().split())
^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s176610403 | p04043 | u102960641 | 1577416901 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 535 | h,w,a,b = map(int, input().split())
mod = 10**9 + 7
n = 10**5 * 2 + 1
fact = [1]*(n+1)
rfact = [1]*(n+1)
r = 1
for i in range(1, n+1):
fact[i] = r = r * i % mod
rfact[n] = r = pow(fact[n], mod-2, mod)
for i in range(n, 0, -1):
rfact[i-1] = r = r * i % mod
# nPk (mod MOD) を求める
def perm(n, k):
return fact[n] * rfact[n-k] % mod
# nCk (mod MOD) を求める
def comb(n, k):
return fact[n] * rfact[k] * rfact[n-k] % mod
ans = 0
for i in range(b,w):
ans = (ans + comb(h-a-1+i,i) * comb(w-i+a-2,a-1)) % mod
print(ans) | Traceback (most recent call last):
File "/tmp/tmpqiz6njw1/tmp1ut_o5s0.py", line 1, in <module>
h,w,a,b = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s848242968 | p04043 | u201082459 | 1577321751 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | x = list(map(str,input().split()))
if '2' == x.value_counts('5') and '1' == x.value_counts('7'):
print('YES')
else:
print('NO') | Traceback (most recent call last):
File "/tmp/tmpg69d6399/tmpacad7g3a.py", line 1, in <module>
x = list(map(str,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s651107468 | p04043 | u810457760 | 1577308481 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 21 | a = input().split()
p | Traceback (most recent call last):
File "/tmp/tmpq94nwv84/tmpbqtshpwr.py", line 1, in <module>
a = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s525872771 | p04043 | u771577506 | 1577226283 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | x = str(input())
if count(x,"5")==2 and count(x,"7")==1:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp6hjw411p/tmpy8abstu2.py", line 1, in <module>
x = str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s098870014 | p04043 | u355137116 | 1577205674 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | s = map(int, input().split())
return (s[0] == s[1] == 5 and s[2] == 7 or s[2] == s[1] == 5 and s[0] == 7 or s[0] == s[2] == 5 and s[1] == 7)
| File "/tmp/tmpic6csx5r/tmpezzo_w7h.py", line 2
return (s[0] == s[1] == 5 and s[2] == 7 or s[2] == s[1] == 5 and s[0] == 7 or s[0] == s[2] == 5 and s[1] == 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s031876204 | p04043 | u355137116 | 1577205594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | s = map(int, input().split())
return (s[0] == s[1] == 5 and s[2] == 7 or s[2] == s[1] == 5 and s[0] == 7 s[0] == s[2] == 5 and s[1] == 7)
| File "/tmp/tmp05t4ip_1/tmpihubfopw.py", line 2
return (s[0] == s[1] == 5 and s[2] == 7 or s[2] == s[1] == 5 and s[0] == 7 s[0] == s[2] == 5 and s[1] == 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s066887132 | p04043 | u560301743 | 1577155114 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | N, _ = map(int, input().split())
values = [input() for _ in range(N)]
print(''.join(sorted(values))) | Traceback (most recent call last):
File "/tmp/tmp0l9cemod/tmpcp17ej5h.py", line 1, in <module>
N, _ = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s593918387 | p04043 | u171065106 | 1577149277 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | a, b, c, = map(int(input().split()))
h = [5, 5, 7]
b = [a, b, c]
if sorted(h) == sorted(b):
print("YES")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmphj2_qdhi/tmpvib_3w4m.py", line 1, in <module>
a, b, c, = map(int(input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s859556287 | p04043 | u268792407 | 1577131800 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a,b,c=map(int,input().split())
aa=sort([a,b,c])
if aa == [5,5,7]:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpd1tve996/tmpnid8ufqk.py", line 1, in <module>
a,b,c=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s993246363 | p04043 | u892538842 | 1577096756 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 325 | import math
h, w, a, b = map(int, input().split(' '))
MOD = 10**9 + 7
def ncr(n, r):
f = math.factorial
return f(n) / f(r) / f(n-r)
r = 0
for i in range(b, w):
y1 = h - a - 1
x1 = i
y2 = a - 1
x2 = w - i - 1
p = (ncr(x1 + y1, x1) * ncr(x2 + y2, x2)) % MOD
r = (r + p) % MOD
print(int(r)) | Traceback (most recent call last):
File "/tmp/tmp4f5gqp8l/tmpgaagbdwx.py", line 2, in <module>
h, w, a, b = map(int, input().split(' '))
^^^^^^^
EOFError: EOF when reading a line
| |
s638298266 | p04043 | u112567325 | 1576842346 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38256 | 102 | A,B,C = list(map(int,input().split()))
if sort([A,B,C]) == [5,5,7]:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpe4dd2n7a/tmpgemunbr4.py", line 1, in <module>
A,B,C = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s595906784 | p04043 | u972892985 | 1576711197 | 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/tmpw89xerys/tmp4q2m23uf.py", line 1, in <module>
n,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s890771249 | p04043 | u343092716 | 1576643258 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 225 | n, k = map(int, input().split())
dislikes = input().split()
payment = n
while True:
tmp = str(payment)
for t in tmp:
if t in dislikes:
break
else:
break
payment += 1
print(payment) | Traceback (most recent call last):
File "/tmp/tmp7bke13bu/tmpb8g9jbvj.py", line 1, in <module>
n, k = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s337042599 | p04043 | u181215519 | 1576603363 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | in = list(map(int,input().split()))
in.sort()
if in=[5,5,7] :
print( 'Yes' )
else :
print( 'No' ) | File "/tmp/tmpc15w_w5a/tmpsgqqq05r.py", line 1
in = list(map(int,input().split()))
^^
SyntaxError: invalid syntax
| |
s182944008 | p04043 | u181215519 | 1576603183 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 285 | number1 = input("First number: ")
number2 = input("\nSecond number: ")
number3 = input("\nSecond number: ")
if ( (number1==5&number1==7&number1==5) |
(number1==7&number1==5&number1==5) |
(number1==5&number1==5&number1==7) ) :
print("Yes")
else:
print("No" ) | Traceback (most recent call last):
File "/tmp/tmp8ydhvl2x/tmptke_pcf3.py", line 1, in <module>
number1 = input("First number: ")
^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
| First number: |
s704997992 | p04043 | u417014669 | 1576548353 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | a,b,c=map(int,input().split())
if sorted(list[a,b,c])==[5,5,7]:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp7wwpgriu/tmpfhz6jal8.py", line 1, in <module>
a,b,c=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s776095123 | p04043 | u473023730 | 1576433612 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a=input().split()
a=[int(i) for i in a]
a.sort()
if a=[5, 5, 7]:
print("YES")
else:
print("NO")
| File "/tmp/tmpn5mg37p2/tmpz0tbluyr.py", line 4
if a=[5, 5, 7]:
^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s385261581 | p04043 | u473023730 | 1576433544 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 99 | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]:
print("YES")
else:
print("NO")
| File "/tmp/tmpbtdlzxzu/tmpvt7y4pau.py", line 3
if a=[5, 5, 7]:
^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s196026286 | p04043 | u473023730 | 1576433493 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]:
print("YES")
else print("NO");
| File "/tmp/tmp4xaov4ic/tmplkytana6.py", line 3
if a=[5, 5, 7]:
^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s861348925 | p04043 | u473023730 | 1576433466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]:
print("YES")
else print("NO"):
| File "/tmp/tmp7dns39j2/tmpz6twxl_v.py", line 3
if a=[5, 5, 7]:
^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s597664832 | p04043 | u373958718 | 1576272953 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | def abc ( ) : \n l = '' . join ( input ( ) . split ( ) ) \n print ( 'YES' if l . replace ( '5' , '' ) == '7' else 'NO' ) \n \n \n abc ( ) | File "/tmp/tmpzqpa8w2d/tmpnxavppyq.py", line 1
def abc ( ) : \n l = '' . join ( input ( ) . split ( ) ) \n print ( 'YES' if l . replace ( '5' , '' ) == '7' else 'NO' ) \n \n \n abc ( )
^
SyntaxError: unexpected character after line continuation character
| |
s113472835 | p04043 | u866682319 | 1576183141 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | N = list(map(int,input().split()))
five = 0
seven = 0
for i in N:
if i == 5:
five += 1
elif i == 7:
seven += 1
if five == 2 and seven == 1:
print("YES")
else:
print("NO) | File "/tmp/tmpteea59dg/tmpxd_5xu6i.py", line 12
print("NO)
^
SyntaxError: unterminated string literal (detected at line 12)
| |
s785514931 | p04043 | u617037231 | 1575948868 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | a,b,c = map(int,input().split())Liste= list(map(str,input().split()))
P = Liste.count('5')
Q = Liste.count('7')
if P == 2 and Q == 1:
print('YES')
else:
print('NO') | File "/tmp/tmppta305m4/tmpa6g4q9qc.py", line 1
a,b,c = map(int,input().split())Liste= list(map(str,input().split()))
^^^^^
SyntaxError: invalid syntax
| |
s893277241 | p04043 | u583507988 | 1575923610 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 123 | 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");
end | File "/tmp/tmp5lm26qus/tmp_cvzmby0.py", line 1
if A==5 and B==5 and C==7
^
SyntaxError: expected ':'
| |
s173668595 | p04043 | u213330296 | 1575669435 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | # -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# 575判定式
if(a*b*c == 5*7*5 && a+b+c == 17):
print("YES")
else:
print("NO") | File "/tmp/tmpqkmhrhgw/tmpd8hwdb_5.py", line 5
if(a*b*c == 5*7*5 && a+b+c == 17):
^
SyntaxError: invalid syntax
| |
s373271277 | p04043 | u348544277 | 1575516150 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 161 | a = input()
b = input()
c = input()
if len(a) == 5 and len(b) == 5:
if len(c) == 7:
print('yes')
else:
print('no')
else:
print('no') | Traceback (most recent call last):
File "/tmp/tmph94pwrs4/tmp0455fowq.py", line 1, in <module>
a = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s496652683 | p04043 | u799691369 | 1574910767 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | A, B, C = map(input().split())
l = [5, 5, 7]
if A in l:
l.remove(A)
if B in l:
if C in l:
print('YES')
break
print('NO') | File "/tmp/tmpv_08eov_/tmpi9ip0fl5.py", line 9
break
^^^^^
SyntaxError: 'break' outside loop
| |
s628299046 | p04043 | u774160580 | 1574907672 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 133 | ABC = [int(i) fo i in input())
ABC.sort()
if sum(ABC) == 17 and ABC[0] == 5 and ABC[2] == 7:
print("YES")
else:
print("NO")
| File "/tmp/tmp0kcy5lfi/tmpsk4vnia8.py", line 1
ABC = [int(i) fo i in input())
^
SyntaxError: closing parenthesis ')' does not match opening parenthesis '['
| |
s066653964 | p04043 | u571832343 | 1574825502 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 230 | A,B,C = map(input().split())
a, b, c = len(A), len(B), len(C)
if a == 5 or a == 7:
if b == 5:
if c == 5:
print('NO')
else:
print('YES')
else:
if c == 5:
print('YES')
else:
print('NO') | Traceback (most recent call last):
File "/tmp/tmpwpva7y_g/tmphn92j_id.py", line 1, in <module>
A,B,C = map(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s001036267 | p04043 | u804505290 | 1574793111 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | A,B,C = map(int, input().split())
if A==7 and B==5 and C==5:
print("Yes")
else if A==5 and B==5 and C==7:
print("Yes")
else if A==5 and B==7 and C==5:
print("Yes")
else:
print("No") | File "/tmp/tmp55pcmi8t/tmpyzuvv20m.py", line 4
else if A==5 and B==5 and C==7:
^^
SyntaxError: expected ':'
| |
s415849840 | p04043 | u340947941 | 1574435428 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 232 | ##### 解けた #####
A,B,C=list(map(int,input().split(" ")))
if (len(A)==5 and len(B)==7 and len(C)==5) or (len(A)==7 and len(B)==5 and len(C)==5) or (len(A)==5 and len(B)==5 and len(C)==7):
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpmhmidkgp/tmpkli6lzvq.py", line 3, in <module>
A,B,C=list(map(int,input().split(" ")))
^^^^^^^
EOFError: EOF when reading a line
| |
s910065980 | p04043 | u979823197 | 1574426882 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | l =list(map(int,input().split()))
if l[0]+l[1]+[2]==17 and l[0]*l[1]*l[2]== 175:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpeile0_fx/tmpr2w8nn4j.py", line 1, in <module>
l =list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s617605498 | p04043 | u979823197 | 1574426438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a,b,c =int(x) for in input().split()
if a+b+c==17 and a*b*c==175:
print('Yes')
else:
print('No') | File "/tmp/tmp1662hcbj/tmp_yhojory.py", line 1
a,b,c =int(x) for in input().split()
^^^
SyntaxError: invalid syntax
| |
s815122129 | p04043 | u716530146 | 1574369606 | Python | PyPy3 (2.4.0) | py | Runtime Error | 274 | 63852 | 427 | #!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect, fractions
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0
n,k=map(int,input().split())
D=set(input().split())
while True:
ns=str(n)
for ni in ns:
if ni in D:
break
else:
print(n)
exit()
n+=1
continue
| Traceback (most recent call last):
File "/tmp/tmpo33mzxxz/tmpk7bbubg1.py", line 8, in <module>
n,k=map(int,input().split())
^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s139649363 | p04043 | u360053454 | 1574234246 | Python | Python (3.4.3) | py | Runtime Error | 17 | 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/tmpxn4m2grk/tmpqbpf3fxr.py", line 1, in <module>
a, b, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s006892585 | p04043 | u360053454 | 1574234044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | A = list(map(int, input().split()))
if A == [5,7,5]
print('YES')
else:
print('NO') | File "/tmp/tmpwhwuv_z8/tmpk4a7f_e_.py", line 2
if A == [5,7,5]
^
SyntaxError: expected ':'
| |
s789451583 | p04043 | u906024886 | 1574203975 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | A = int(input()).split()
if A.count("5") == 2 and A.count("7")==1:
print("YSE")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpjto2ofun/tmp00temsvq.py", line 1, in <module>
A = int(input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s285101555 | p04043 | u906024886 | 1574203937 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A = int(input()).split()
if A.count.("5") == 2 and A.count("7")==1:
print("YSE")
else:
print("NO") | File "/tmp/tmpmr3zxp6s/tmpu6k45n9y.py", line 2
if A.count.("5") == 2 and A.count("7")==1:
^
SyntaxError: invalid syntax
| |
s595519916 | p04043 | u906024886 | 1574203915 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 100 | A = int(input()).split()
if A.count.("5") == 2 and a.count("7")==1:
print("YSE")
else:
print("NO") | File "/tmp/tmpuoy5jsbu/tmpyir3_pcl.py", line 2
if A.count.("5") == 2 and a.count("7")==1:
^
SyntaxError: invalid syntax
| |
s714171186 | p04043 | u234186715 | 1574199350 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 136 | a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
moji =''
for x in newa:
moji += x
print(moji) | Traceback (most recent call last):
File "/tmp/tmpwiq_9p7z/tmpagvpejl1.py", line 1, in <module>
a = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s490667560 | p04043 | u234186715 | 1574199160 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
print(a[0],a[1])
[print(i) for i in newa]
| Traceback (most recent call last):
File "/tmp/tmpnm3v1j3_/tmp54907x5n.py", line 1, in <module>
a = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s740123620 | p04043 | u211025746 | 1574192260 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 446 | NL=input().split()
N=int(NL[0])
L=int(NL[1])
S=[]
rank=[]
for i in range(N):
S.append(input())
rank.append(0)
temp=[]
for i in range(N):
for j in range(N):
if(S[i]<S[j]):
temp.append(int(1))
else:
temp.append(int(0))
for i in range(N*N):
a=i%N
rank[a]+=temp[i]
j=0
moji=""
for i in range(N):
for j in range(N):
if(i==rank[j]):
moji=moji+S[j]
print(moji) | Traceback (most recent call last):
File "/tmp/tmp_nwd4k6p/tmpkvichmkl.py", line 1, in <module>
NL=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s988567501 | p04043 | u211025746 | 1574192238 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 456 | NL=input().split()
N=int(NL[0])
L=int(NL[1])
S=[]
rank=[]
for i in range(N):
S.append(input())
rank.append(0)
temp=[]
for i in range(N):
for j in range(N):
if(S[i]<S[j]):
temp.append(int(1))
else:
temp.append(int(0))
for i in range(N*N):
a=i%N
rank[a]+=temp[i]
j=0
moji=""
for i in range(N):
for j in range(N):
if(i==rank[j]):
moji=moji+S[j]
print(moji)
| Traceback (most recent call last):
File "/tmp/tmp7h99nwo0/tmpyuasuen3.py", line 1, in <module>
NL=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s377784778 | p04043 | u094948011 | 1574136175 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 273 | A = int(input())
B = int(input())
C = int(input())
if A == 5 or A == 7:
if B == 5 or B == 7:
if C == 5 or C == 7:
if A + B + C == 17:
print('Yes')
else:
print('No')
else:
print('No')
else:
print('No')
else:
print('No')
| Traceback (most recent call last):
File "/tmp/tmpojin69sn/tmpqk3mlx9p.py", line 1, in <module>
A = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s598529296 | p04043 | u894685221 | 1574026572 | 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(*s, sep="")
| Traceback (most recent call last):
File "/tmp/tmp9na8ivam/tmpodoy9imj.py", line 1, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s977372704 | p04043 | u522496678 | 1573976248 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 138 | A, B, C = int(input()), int(input()), int(input())
if [A, B, C].count(5) == 2 and [A, B, C].count(7) == 1: print("Yes")
else: print("No") | Traceback (most recent call last):
File "/tmp/tmpptxjffde/tmpk4gt4wur.py", line 1, in <module>
A, B, C = int(input()), int(input()), int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s866954681 | p04043 | u522496678 | 1573976176 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | A, B, C = ( int( input() ) for i in range(3) )
if [A, B, C].count(5) == 2 and [A, B, C].count(7) == 1: print("Yes")
else: print("No") | Traceback (most recent call last):
File "/tmp/tmppjcj2tcw/tmph91wr00t.py", line 1, in <module>
A, B, C = ( int( input() ) for i in range(3) )
^^^^^^^
File "/tmp/tmppjcj2tcw/tmph91wr00t.py", line 1, in <genexpr>
A, B, C = ( int( input() ) for i in range(3) )
^^^^^^^
EOFError: EOF when reading a line
| |
s933001239 | p04043 | u040057159 | 1573704271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | A,B,C=(int(x) for x in input().split())
if A+B+C==17:
print(YES)
else:
print(NO)
| Traceback (most recent call last):
File "/tmp/tmp4cyxo1i7/tmpgdclv4ot.py", line 1, in <module>
A,B,C=(int(x) for x in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s420944637 | p04043 | u673981655 | 1573700202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 252 | n = list(map(int, input().split()))
N = n[0]
K = n[1]
d = list(map(int, input().split()))
num = [i for i in range(1,10)]
for i in d:
if i == 0:
continue
else:
num.remove(i)
total = N*min(num)
if total > N:
print(N)
else:
print(total) | Traceback (most recent call last):
File "/tmp/tmpntfi4e_z/tmpknmc82m7.py", line 1, in <module>
n = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s248644009 | p04043 | u633450100 | 1573674653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 334 | N,K = [int(i) for i in input().split()]
#D = [int(i) for i in input().split()]は数値代入
#文字列を複数代入
D = input().split()
#集合に置き換える(型はset)
D = set(D)
use = set(['0','1','2','3','4','5','6','7','8','9'])
use -= D
for i in range(N,10001):
if use >= set(str(i)):
print(i)
break
| Traceback (most recent call last):
File "/tmp/tmp3gfr7ow5/tmpl9rn2gnq.py", line 1, in <module>
N,K = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s564037552 | p04043 | u124498235 | 1573420727 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | n, l = map(int, input().split())
a = [input() for _ in range(n)]
a.sort()
print ("".join(a)) | Traceback (most recent call last):
File "/tmp/tmpavb9h_i4/tmpdx680z49.py", line 1, in <module>
n, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s395440249 | p04043 | u914120277 | 1573363001 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | S=input()
a, b, c = (int(i) for i in S.split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
if(d==1 and e==1): print("YES")
else: print("NO") | File "/tmp/tmp0q4q6lkz/tmps545w0m_.py", line 1
S=input()
IndentationError: unexpected indent
| |
s941187873 | p04043 | u914120277 | 1573362831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 170 | a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
if(d==1 and e==1): print("YES")
else: print("NO") | File "/tmp/tmpoxuqakng/tmp1ikuvgkt.py", line 1
a, b, c = (int(i) for i in input().split())
IndentationError: unexpected indent
| |
s156092197 | p04043 | u914120277 | 1573362521 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 175 | a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
if(d==1 and e==1): print("YES")
else: print("NO")
| File "/tmp/tmpyerz9yga/tmpidzcrl_f.py", line 1
a, b, c = (int(i) for i in input().split())
IndentationError: unexpected indent
| |
s465350263 | p04043 | u914120277 | 1573362386 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 155 | a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/21
if(d==1 and e==1)
print(min(a,b,c), max(a,b,c), min(a,b,c)) | File "/tmp/tmpx25n7p59/tmp0lv_1_e3.py", line 5
if(d==1 and e==1)
^
SyntaxError: expected ':'
| |
s772840587 | p04043 | u902786897 | 1573286022 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 85 | a=list(map(int,input.split()))
if a.sort==[5,5,7]:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp3tlzz8yx/tmpb0f1lv9t.py", line 1, in <module>
a=list(map(int,input.split()))
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
| |
s126834868 | p04043 | u633548583 | 1573258729 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | N,L=map(int,input().split())
S=[input() for i in range(N)]
print(''.join(S.sort()))
| Traceback (most recent call last):
File "/tmp/tmpl5e2qzu8/tmpp65haeli.py", line 1, in <module>
N,L=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s322245416 | p04043 | u633450100 | 1573182393 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 186 | A,B,C = [int(i) for i in input().split()]
list = [A,B,C]
for i in list:
if i == 5:
go += 1
if i == 7:
nana += 1
if go == 2 and nana == 1:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmpex0p55c3/tmplm9leaza.py", line 1, in <module>
A,B,C = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s820786028 | p04043 | u940061594 | 1573017572 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | #Iroha Loves Strings (ABC Edition)
N, L = map(int, input().split())
S = []
for _ in range(N):
S.append(input())
sort = sorted(S)
R = ""
for i in range(0,N):
R = R + sort[i]
print(R) | Traceback (most recent call last):
File "/tmp/tmpdqm_hc1b/tmp0rljl5mb.py", line 2, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s672964822 | p04043 | u940061594 | 1572998208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 347 | #Iroha Loves Strings (ABC Edition)
N, L = map(int, input().split())
S = []
for _ in range(N):
S.append(input())
R = []
K = ""
R.append(S[0])
for i in range(1, N):
for j in range (0, i):
if S[i] < R[j]:
R.insert(j,S[i])
if S[i] >= R[i-1]:
R.append(S[i])
for i in range(0,N):
K = K + R[i]
print(K) | Traceback (most recent call last):
File "/tmp/tmpv1lwqalv/tmp0g9ofrjr.py", line 2, in <module>
N, L = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s367004399 | p04043 | u284056243 | 1572916453 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 293 | x,y,z = map(int,input().split())
if(x=5):
if(y=5):
if(z=7):
print("YES")
else:
print("NO")
elif(y=7):
if(z=5):
print("YES")
else:
print("NO")
elif(x=7):
if(y=5):
if(z=5):
print("YES")
else:
print("NO")
else:
print("NO")
| File "/tmp/tmpvo1_du8o/tmpyg1oirc3.py", line 3
if(x=5):
^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s941333719 | p04043 | u284056243 | 1572916119 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 96 | x,y,z = map(int,input().split())
if(x=5 and y=7 and z=5):
print("YES")
else:
print("NO") | File "/tmp/tmpji1s59rd/tmpl6fzkj2_.py", line 3
if(x=5 and y=7 and z=5):
^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s734514159 | p04043 | u920438243 | 1572909649 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | ns,k = input().split()
nlist = input().split()
nslist = list(ns)
while set(nslist) & set(nlist):
ns = int(ns)+1
ns = str(ns)
nslist = list(ns)
print(ns)
| Traceback (most recent call last):
File "/tmp/tmpin4dw4rm/tmpzob36wa4.py", line 1, in <module>
ns,k = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s571327326 | p04043 | u032468447 | 1572894805 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | S = "".join(list(map(str,input().split())))
if S.count("5") == 2 and S.count("7") == 1:
print("YES")
else:
print("NO) | File "/tmp/tmp6seaa3pm/tmpxs7tmr93.py", line 5
print("NO)
^
SyntaxError: unterminated string literal (detected at line 5)
| |
s651309871 | p04043 | u503294750 | 1572818955 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 225 | line=input().split()
N=int(line[0])
K=int(line[1])
D=input().rstrip().split()
for i in range(N,10*N+1):
s=str(i)
flag=True
for x in D:
if x in s:
flag=False
break
if flag:
print(s)
break
else:
continue | File "/tmp/tmpl7bs9id6/tmpb14nbnmy.py", line 16
break
TabError: inconsistent use of tabs and spaces in indentation
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.