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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s747739171 | p02547 | u914214809 | 1600551158 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8940 | 341 | def solution(arr):
count = 0
for i, val in enumerate(arr):
if i > 0 and arr[i - 1] == val:
count += 1
else:
count = 0
if count == 2:
return 'Yes'
return 'No'
n = int(input())
arr = []
for _ in range(n):
arr.append(input())
... | File "/tmp/tmpni9b3m_5/tmphjkmkstl.py", line 1
def solution(arr):
IndentationError: unexpected indent
| |
s592897853 | p02547 | u914214809 | 1600551074 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8988 | 280 | def solution(arr):
count = 0
for i, val in enumerate(arr):
if i > 0 and arr[i - 1] == val:
count += 1
else:
count = 0
if count == 2:
return 'Yes'
return 'No'
n = int(input())
arr = []
for _ in range(n):
arr.append(input())
print(solution(arr) | File "/tmp/tmp72zhrt66/tmpdvwpi06_.py", line 15
print(solution(arr)
^
SyntaxError: '(' was never closed
| |
s502752542 | p02547 | u392973556 | 1600550392 | Python | PyPy3 (7.3.0) | py | Runtime Error | 236 | 68504 | 521 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
typedef long long ll;
const ll M=1000000007;
//------------------------------------------//
int main(){
ll N;cin>>N;
ll D[N][2];
bool f[N];
rep(i,N){
cin>>D[i][0]>>D[i][1];
if(D[i][0]==D[i][... | File "/tmp/tmpwfewfx6l/tmp_369k5uy.py", line 2
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s706500646 | p02547 | u729133443 | 1600550121 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9068 | 76 | print('NYoe s'[[*'000']in[eval(eval(t.replace(*' -')))for t in open(0)]::2]) | No
| |
s435875228 | p02547 | u246401133 | 1600549463 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8996 | 201 | nn = int(input())
x = 0
for i in range(n):
d1, d2 = map(int, input().split())
if x != 3:
if d1 != d2:
x = 0
else:
x += 1
print("Yes" if x == 3 else "No") | Traceback (most recent call last):
File "/tmp/tmpo2yvnmvs/tmpdk9c65sj.py", line 1, in <module>
nn = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s535687581 | p02547 | u816552564 | 1600547944 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9020 | 153 | N=input()
n=int(N)
for s in range(n):
ds1,ds2=input().split()
if ds1==ds2 and d(s+1)1==d(s+1)2 and d(s+2)1==d(s+2)2:
print("Yes")
else:
print("No") | File "/tmp/tmpidpj6hfd/tmpdyntw193.py", line 5
if ds1==ds2 and d(s+1)1==d(s+1)2 and d(s+2)1==d(s+2)2:
^
SyntaxError: invalid syntax
| |
s544133575 | p02547 | u147761652 | 1600547816 | Python | Python (3.8.2) | py | Runtime Error | 189 | 27284 | 325 | import numpy as np
a = int(input())
xy = [map(int, input().split()) for _ in range(5)]
x, y = [list(i) for i in zip(*xy)]
x=np.array(x)
y=np.array(y)
c = x -y
b= np.where(c==0)
ren = np.array(range(len(b[0])))
d= b[0]-ren
u, counts = np.unique(d, return_counts=True)
if np.max(counts) >=3:
print("Yes")
else:
print(... | Traceback (most recent call last):
File "/tmp/tmplmcxarjd/tmppr3ox1lk.py", line 2, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s683522758 | p02547 | u463945054 | 1600547749 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9112 | 287 | N = int(input())
count = 0
for i in range(N +1):
k, t = map(int, input().split())
if count == 3:
print ( "yes" )
count += 5
break
if not k == t:
count *= 0
if k == t:
count += 1
if not count >= 3:
print ("no")
| Traceback (most recent call last):
File "/tmp/tmplhwv_8u0/tmpjgxj7pq1.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s771299442 | p02547 | u171460096 | 1600547424 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9112 | 342 | N= int(input())
a = [input().split() for i in range(N)]
n = int(a[0])
Is = []
for i in range(N):
Ds = list(map(int, a[i].split()))
if Ds[0] == Ds[1]:
Is.append(i)
Boooo = False
for i in range(len(Is)-2):
if Is[i] == Is[i+1] and Is[i+1] == Is[i+2]:
Boooo = True
if Boooo:
print("Yes")
e... | Traceback (most recent call last):
File "/tmp/tmpshjb_94u/tmp3z8mckrb.py", line 1, in <module>
N= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s490820156 | p02547 | u858142980 | 1600547363 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8968 | 208 | count = 0
N = int(input())
for i in range(N):
for j in range(3):
A, B = map(int, input().split())
if A == B:
count += 1
if (count >= 3):
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpg1gabfnq/tmpbljr0ypg.py", line 2, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s918551774 | p02547 | u858142980 | 1600547289 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9160 | 208 | count = 0
N = int(input())
for i in range(N):
for i in range(3):
A, B = map(int, input().split())
if A == B:
count += 1
if (count >= 3):
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpxhugrmzv/tmpcz4rb5p8.py", line 2, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s876095143 | p02547 | u863850961 | 1600547258 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9088 | 549 | n=int(input())
l=[]
for i in range(0,n):
d,d1=list(map(int ,input().split()))
if(d==d1):
l.append("Yes")
elif(d!=d1):
l.append("No")
# print(l)
a=l.count("Yes")
list_s=list(l)
length=len(l)
index=list_s.index("Yes")
# print(index)
min_index=length-3
new_le=length-... | Traceback (most recent call last):
File "/tmp/tmplqo4nzob/tmp9p11urgw.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s347071324 | p02547 | u863850961 | 1600547136 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9216 | 571 | n=int(input())
l=[]
for i in range(0,n):
d,d1=list(map(int ,input().split()))
if(d==d1):
l.append("Yes")
elif(d!=d1):
l.append("No")
# print(l)
a=l.count("Yes")
list_s=list(l)
length=len(l)
index=list_s.index("Yes")
# print(index)
min_index=length-3
new_le=length-... | Traceback (most recent call last):
File "/tmp/tmpob9hm8ez/tmpjphiceke.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s817236462 | p02547 | u863850961 | 1600547067 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9084 | 550 | n=int(input())
l=[]
for i in range(0,n):
d,d1=list(map(int ,input().split()))
if(d==d1):
l.append("Yes")
elif(d!=d1):
l.append("No")
# print(l)
a=l.count("Yes")
list_s=list(l)
length=len(l)
index=list_s.index("Yes")
# print(index)
min_index=length-3
if(a==3 or a>3... | Traceback (most recent call last):
File "/tmp/tmp23n4tgz8/tmp8hkwm0jf.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s264060980 | p02547 | u001689394 | 1600546984 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9128 | 480 | list = []
x = 0
y = 0
n = int(input())
for i in range(n):
a,b = map(int,input().split())
list.append(a)
list.append(b)
for _ in range(n):
if list[x] == list[x+1]:
if not list[x+1] == list[-1]:
if list[x+2] == list[x+3]:
if not list[x+3] == list[-1]:
... | Traceback (most recent call last):
File "/tmp/tmp7hyon60r/tmpertmwkow.py", line 4, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s513792645 | p02547 | u382423941 | 1600546470 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9112 | 275 | n = int(input())
d = [list(map(int, input().split())) for _ in range(n)]
for i in range(n-3):
exist = True
for j in range(3):
if not d[i+j][0] == d[i+j][1]:
exist = False
if exist:
break
if exist:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpr74u23py/tmpb2ogajqv.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s942889896 | p02547 | u555311916 | 1600546459 | Python | PyPy3 (7.3.0) | py | Runtime Error | 192 | 68624 | 200 | ans = False
for i in range(n):
d1,d2 = map(int,input().split())
if d1 == d2:
conseq += 1
if conseq >= 3:
ans = True
else:
conseq = 0
if ans:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmp56hhr0gx/tmp3pkzm6oi.py", line 2, in <module>
for i in range(n):
^
NameError: name 'n' is not defined
| |
s674484517 | p02547 | u147761652 | 1600546353 | Python | Python (3.8.2) | py | Runtime Error | 126 | 27124 | 224 | import numpy as np
a = int(input())
xy = [map(int, input().split()) for _ in range(5)]
x, y = [list(i) for i in zip(*xy)]
x=np.array(x)
y=np.array(y)
b = a - np.count_nonzero(x-y)
if b>=3:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmp0qp7kpq3/tmpz1j4nrmb.py", line 2, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s881235952 | p02547 | u817247382 | 1600546327 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9184 | 242 | n = int(input())
count = 0
for i in range(n):
d1, d2 = map(int,input().split())
if d1 == d2 :
count += 1
else:
count = 0
if count == 3:
flag = 1
if flag == 1:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpj66w2o9r/tmp01hi5cd2.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s021769556 | p02547 | u817247382 | 1600546294 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9052 | 243 | n = int(input())
count = 0
for i in range(n):
d1, d2 = map(int,input().split())
if d1 == d2 :
count += 1
else:
count = 0
if count == 3:
flag = 1;
if flag == 1:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpwr0vyilx/tmp0gx14rbw.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s457803146 | p02547 | u863850961 | 1600546142 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9068 | 433 | n=int(input())
l=[]
for i in range(0,n):
d,d1=list(map(int ,input().split()))
if(d==d1):
l.append("Yes")
elif(d!=d1):
l.append("No")
# print(l)
a=l.count("Yes")
list_s=list(l)
index=list_s.index("Yes")
if(a==3 or a>3):
if(list_s[index]=="Yes" and list_s[inde... | Traceback (most recent call last):
File "/tmp/tmpaj3bu5sg/tmpjcg41uek.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s355244535 | p02547 | u171460096 | 1600545992 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9128 | 341 | import sys
a = []
for l in sys.stdin:
a.append(int(l))
n = a[0]
Is = []
for i in range(n):
Ds = list(map(int, a[i+1].split()))
if Ds[0] == Ds[1]:
Is.append(i)
Boooo = False
for i in range(len(Is)-2):
if Is[i] == Is[i+1] and Is[i+1] == Is[i+2]:
Boooo = True
if Boooo:
print("Yes")
el... | Traceback (most recent call last):
File "/tmp/tmpb_gj6ov_/tmppr3tnf3w.py", line 5, in <module>
n = a[0]
~^^^
IndexError: list index out of range
| |
s593528276 | p02547 | u161701206 | 1600545932 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9164 | 206 | N = int(input())
s = 0
for i in N:
a,b = map(int, input().split())
if a == b:
s = s + 1
if s == 3:
print('Yes')
break
else:
s = 0
print('No')
| Traceback (most recent call last):
File "/tmp/tmpigbxb_z3/tmpy2e7mto9.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s139862808 | p02547 | u686817216 | 1600545793 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9200 | 235 | from sys import exit
n=int(input())
xy=[map(int, input().split()) for _ in range(n)]
x, y=[list(i) for i in zip(*xy)]
for i in range(1,n):
if x[i-1]==y[i-1] and x[i]==y[i] and x[i+1]==y[i+1]:
print("Yes")
exit()
print("No") | Traceback (most recent call last):
File "/tmp/tmp0hurfc_0/tmpfswk6vxy.py", line 3, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s572412233 | p02547 | u466916194 | 1600545769 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9176 | 443 | n = int(input())
arr= []
for i in range(n):
z = [ int(i) for i in input().split()]
arr.append(z)
count = 0
x=[]
for i in range(n):
if arr[i][0] == arr[i][1]:
count+=1
x.append(i)
cu = 0
for i in range(n):
if n-i>3:
if x[i]+1 == x[i+1] and x[i+1]+1 == x[i+2] and x[i+2]+1 == x[i+3]:
... | Traceback (most recent call last):
File "/tmp/tmpcyz1uwms/tmpo2_e03m4.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s267108185 | p02547 | u972605362 | 1600545740 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8956 | 277 | N = int(input())
j = 0
if N >= 3:
D = [input().split() for _ in range(N)]
for i in D:
if i[0] == i[1]:
j += 1
if j == 3:
print("Yes")
elif j == 6:
print("Yes")
elif j != 3:
print("No")
else:
print("No")
| File "/tmp/tmp5p8xu6gn/tmpc_64ojap.py", line 5
for i in D:
TabError: inconsistent use of tabs and spaces in indentation
| |
s694690581 | p02547 | u577139181 | 1600545707 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9096 | 265 | num = int(input())
count = 0
flag = False
for i in range(num):
a,b = read().split()
if a == b:
count += 1
if count >= 3:
print("Yes")
flag = True
break
else:
count = 0
if flag:
print("No") | Traceback (most recent call last):
File "/tmp/tmp1csxyryd/tmpvzlnpwzs.py", line 1, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s049079189 | p02547 | u973167272 | 1600545621 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9136 | 298 | N = int(input())
l = [list(map(int, input().split())) for l in range(N)]
for i in range(len(l)):
if l[i][0]==l[i][1]:
if l[i+1][0]==l[i+1][1]:
if l[i+2][0]==l[i+2][1]:
print('Yes')
else:
print('No')
else:
print('No')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmphwac8sf6/tmpeugnttit.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s790834557 | p02547 | u577139181 | 1600545588 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9004 | 216 | num = int(input())
count = 0
for i in range(num):
a,b = read().split()
if a == b:
count += 1
if count >= 3:
print(Yes)
return()
else:
count = 0
print("No") | File "/tmp/tmpbynlp6ex/tmptwbxdsp7.py", line 10
return()
^^^^^^^^
SyntaxError: 'return' outside function
| |
s358283054 | p02547 | u449580152 | 1600545548 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9052 | 236 | n = int(input())
eq_count = 0
times_count = 0
for i in range(n):
d1, d2 = map(int, input().split())
if d1 == d2:
count += 1
else:
count = 0
if count == 3:
print('Yes')
exit(0)
print('No') | Traceback (most recent call last):
File "/tmp/tmpb5zhf4cb/tmphwsij0cj.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s765443343 | p02547 | u466916194 | 1600545510 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9052 | 444 | n = int(input())
arr= []
for i in range(n):
z = [ int(i) for i in input().split()]
arr.append(z)
count = 0
x=[]
for i in range(n):
if arr[i][0] == arr[i][1]:
count+=1
x.append(i)
cu = 0
for i in range(n):
if n-i>3:
if x[i]+1 == x[i+1] and x[i+1]+1 == x[i+2] and x[i+2]+1 == x[i+3]:
... | Traceback (most recent call last):
File "/tmp/tmp74eopivh/tmpecv4jhcf.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s387632846 | p02547 | u235837041 | 1600545464 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9168 | 235 | n = int(input())
for _ in range(n):
d1, d2 = map(int, input().split(" "))
if d1 == d2:
count += 1
else:
count = 0
if count >= 3:
print("yes")
break
if count < 3:
print("no") | Traceback (most recent call last):
File "/tmp/tmpb51o65xx/tmp7liip3wo.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s541149230 | p02547 | u449580152 | 1600545462 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9180 | 242 | n = int(input())
eq_count = 0
times_count = 0
for i in range(n):
d1, d2 = map(int, input().split())
if d1 == d2:
count += 1
else:
count = 0
if count == 3:
print('Yes')
exit()
print('No') | Traceback (most recent call last):
File "/tmp/tmp7oricu7n/tmp2xgwszgt.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s646153285 | p02547 | u357147881 | 1600545440 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9188 | 219 | n=int(input())
l=[]
for i in range(n):
a,b=list(map(int,input().split()))
l.append(l)
c=0
for i in l:
if i[0]==i[1] and i+1[0]==i+1[1] and i+2[0]==i+2[1]:
c=c+1
if c>=1:
print('Yes')
else:
print('No')
| /tmp/tmpllrf_6tz/tmpojn659k3.py:8: SyntaxWarning: 'int' object is not subscriptable; perhaps you missed a comma?
if i[0]==i[1] and i+1[0]==i+1[1] and i+2[0]==i+2[1]:
/tmp/tmpllrf_6tz/tmpojn659k3.py:8: SyntaxWarning: 'int' object is not subscriptable; perhaps you missed a comma?
if i[0]==i[1] and i+1[0]==i+1[1] and ... | |
s669384625 | p02547 | u790970861 | 1600545344 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9212 | 462 | dice_num_list = []
equal_index_list = []
N = int(input())
for i in range(1, N + 1):
d1, d2 = input().split(" ")
dice_num_list.append([d1, d2])
equal_index_list = [i for i, x in enumerate(dice_num_list) if x[0] == x[1]]
if len(equal_index_list) < 3:
print('No')
exit(0)
for index in equal_index_list:
... | Traceback (most recent call last):
File "/tmp/tmprb2c0rq8/tmpuzi0258w.py", line 4, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s852910527 | p02547 | u842901156 | 1600545261 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9188 | 300 | N = int(input())
D1 = []
for i in range(N):
D = list(map(int, input().split()))
D1.append(int(D[0]))
D1.append(int(D[1]))
count = 0
for j in range(len(D1)):
if D1[j] == D1[j+1] == D1[j+2]:
count = count + 1
break
if count == 1:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmp7qdfyu0k/tmp1xd3k8p9.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s347934666 | p02547 | u032625182 | 1600545143 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9000 | 170 | import os,sys
c=0
n=input()
for i range(n):
m=input()
one=m[0]
two=m[2]
if(one==two):
c+=1
if(c>=3):
print('Yes')
else:
print('No')
| File "/tmp/tmp3bkqa8wp/tmp640rgekw.py", line 5
for i range(n):
^^^^^
SyntaxError: invalid syntax
| |
s824154326 | p02547 | u854931881 | 1600545072 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9116 | 199 | n=input()
c=[[]*n]
for i in range(n):
a,b=map(int,input().split())
if a==b:
c[i]=1
else:
c[i]=0
cnt=0
for j in range(n):
if c[j]==1:
cnt+=1
if cnt==3:
print("Yes")
break | Traceback (most recent call last):
File "/tmp/tmpf2z4r5na/tmp9iifbh87.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s487704088 | p02547 | u790867486 | 1600544957 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9200 | 444 | n=int(input())
l1=[]
sum =0
for tc in range(n):
k = int(input())
l = int(input())
if k==l:
l1.append(1)
else:
l1.append(0)
for i in range(3):
sum+=l1[i]
if sum == 3:
print("Yes")
else:
for i in range(0,n-2):
sum = sum-l1[i]+l1[i+2]
... | Traceback (most recent call last):
File "/tmp/tmpka_mfivg/tmplob7l0rp.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s866559969 | p02547 | u854931881 | 1600544936 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9120 | 233 | n=input()
c=[]
for i in range(n):
a,b=map(int,input().split())
if a==b:
c.append(1)
else:
c.append(0)
cnt=0
for j in range(n):
if c[j]==1:
cnt+=1
if cnt==3:
print("Yes")
break
if cnt<3:
print("No")
| Traceback (most recent call last):
File "/tmp/tmp0375io6f/tmpagia9wh2.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s714580267 | p02547 | u481988863 | 1600544835 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9096 | 253 | n = int(input())
d = []
for i in range(n + 1):
d.append(list(map(int, input().split())))
if (d[i][1] == d[i][2]) and (d[i + 1][1] == d[i + 1][2]) and (d[i + 2][1] == d[i + 2][2]):
print("Yes")
break
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpw3emxi4z/tmpu_xdimk1.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s389335665 | p02547 | u267549094 | 1600544794 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9016 | 286 | N = int(input())
l = [list(map(int, input().split())) for l in range(N)]
count = 0
for i in range(len((l)):
x, y = l[i]
print(x, y)
if x==y:
count+=1
if count==3:
print(Yes)
break
else:
count = 0
if count!=3:
print(No) | File "/tmp/tmpujzh96i0/tmpbt6uy00p.py", line 4
for i in range(len((l)):
^
SyntaxError: invalid syntax
| |
s318569950 | p02547 | u267549094 | 1600544731 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9028 | 257 | N = int(input())
l = [list(map(int, input().split())) for l in range(N)]
count = 0
for i in range(len((l)):
x, y = l[i]
if x==y:
count+=1
if count==3:
print(True)
break
else:
count = 0
print(False) | File "/tmp/tmpt7t6ouh9/tmpypkkrxd6.py", line 4
for i in range(len((l)):
^
SyntaxError: invalid syntax
| |
s123522765 | p02547 | u235837041 | 1600544626 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9172 | 168 | n = int(input())
for _ in range(n):
d1, d2 = map(int, input().split(" "))
if d1 == d2:
count += 1
if count >= 3:
print("yes")
else:
print("no") | Traceback (most recent call last):
File "/tmp/tmpn16fy7eb/tmptyv7xmyo.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s667971340 | p02547 | u761146322 | 1600544539 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9220 | 390 | n = int(input())
count = 0
flag = False
while count < n:
a, b = map(int, input().split())
count += 1
if a == b and count <= n:
a, b = map(int, input().split())
count += 1
if a == b and count <= n:
a, b = map(int, input().split())
count += 1
if a == b and count <= n:
flag = Tr... | Traceback (most recent call last):
File "/tmp/tmpptb8eay_/tmpl6_6o9x3.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s673083083 | p02547 | u456640225 | 1600544528 | Python | Python (3.8.2) | py | Runtime Error | 31 | 8972 | 280 | n = int(input())
str_list = [list(input().split()) for _ in range(n)]
for i in range(n-2):
if str_list[i][0] == str_list[i][1] and str_list[i+1][0] == str_list[i+1][1] and str_list[i+2][0] == str_list[i+2][1]:
print('Yes')
break
elif i == n-3:
print('No')
break | File "/tmp/tmpyv1b977e/tmpftuu7o0s.py", line 6
break
^
IndentationError: unindent does not match any outer indentation level
| |
s394511525 | p02547 | u935241425 | 1600544455 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9096 | 219 | n = int( input() )
#print( n )
cnt = 0
for i in range( n ):
a, b = map( int, input().split() )
if a == b:
cnt = cnt + 1
else:
cnt = 0
if cnt == 3:
exit( "Yes" )
print( "No" )
| Traceback (most recent call last):
File "/tmp/tmpeq6k7rcx/tmpd14sg85q.py", line 1, in <module>
n = int( input() )
^^^^^^^
EOFError: EOF when reading a line
| |
s751527712 | p02547 | u900776974 | 1600544446 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9052 | 154 | n=int(input())
c=0
for i in range(n):
x,y=intput().split()
x=int(x)
y=int(y)
if x==y:
c+=1
if c==3:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpgloxvgyr/tmp59a1bx75.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s257965815 | p02547 | u986942034 | 1600544430 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9128 | 327 | N = input()
a = []
b = []
flg = False
for i in range(N):
x, y = input().split()
a.append(x)
b.append(y)
for i in range(N):
if (a[i - 2] == b[i - 2]):
if (a[i - 1] == b[i - 1]):
if(a[i] == b[i]):
flg = True
break
print(flg if "Yes" els... | Traceback (most recent call last):
File "/tmp/tmp_ammhjvt/tmpt4buzzqc.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s885656069 | p02547 | u244836567 | 1600544421 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9036 | 236 | a=int(input())
b=0
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
for i in range(a-2):
if x[i]==y[i] and x=[i+1]==y[i+1] and x=[i+2]==y[i+2]:
b=b+1
if b==0:
print("No")
else:
print("Yes") | File "/tmp/tmp70t5qvek/tmpamxzv08c.py", line 6
if x[i]==y[i] and x=[i+1]==y[i+1] and x=[i+2]==y[i+2]:
^
SyntaxError: invalid syntax
| |
s559399746 | p02547 | u293326264 | 1600544421 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9188 | 252 | n = int(input())
li = [0] * n
for i in range(n):
a, b = [int(x) for x in input().split()]
li.append([a,b])
count = 0
for i in li:
if i[0] == i[1]:
count += 1
else:
count = 0
if count == 0: print('Yes')
else: print('No') | Traceback (most recent call last):
File "/tmp/tmp4r4o71k9/tmpmau4rjkw.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s799485672 | p02547 | u847075829 | 1600544385 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9076 | 206 | n = int(input)
count = 0
ans = 'No'
for i in range(n):
a , b = map(int,input().split(' '))
if a!=b:
count = 0
else:
count += 1
if count == 3:
ans = 'Yes'
print(ans)
| Traceback (most recent call last):
File "/tmp/tmpm8uori15/tmpqe8r1qh_.py", line 1, in <module>
n = int(input)
^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
| |
s367406195 | p02547 | u561636464 | 1600544372 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9220 | 334 | A = list(map(int, input().split()))
N = A[0]
D = A[1:N*2+1]
D1 = []
D2 = []
for i in range(N):
D1.append(D[2 * i])
D2.append(D[2 * i + 1])
ans = "No"
for i in range(N - 2):
if D1[i] == D[i]:
if D[i + 1] == D[i + 1]:
if D[i + 2] == D[i + 2]:
ans = "Yes"
br... | Traceback (most recent call last):
File "/tmp/tmp8lyk89ng/tmpezw73ass.py", line 1, in <module>
A = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s821521617 | p02547 | u900776974 | 1600544360 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9024 | 146 | n=int(input())
c=0
for i in range(n):
x,y=intput().split()
x=int(x)
y=int(y)
if x==y:
c+=1
if c==3:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpljyiby4v/tmp9tfq37pg.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s568694620 | p02547 | u697615293 | 1600544337 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9200 | 329 | N = int(input())
xy = [map(int,input().split()) for _ in range(N)]
x,y = [list(i) for i in zip(*xy)]
ans = 0
for i in range(N):
if x[i] == y[i]:
ans +=1
elif ans >= 3:
flag = True
ans = 0
else:
ans = 0
if ans >= 3 or flag ==True:
print("Yes")
else:
pr... | Traceback (most recent call last):
File "/tmp/tmp_08cj18e/tmpev3mkltr.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s937205014 | p02547 | u352676541 | 1600544280 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9036 | 294 | N = int(input())
D = []
for i in range(N):
Da,Db = (map(int,input().split()))
if Da == Db:
D.append(1)
else:
D.append(0)
for i in range(N-2):
if D[i]==1 and D[i+1] == 1 and D[i+2] == 1:
ans = "Yes"
break:
else:
ans = "No"
print(ans) | File "/tmp/tmp8m25vnqh/tmpvzwn7p7e.py", line 14
break:
^
SyntaxError: invalid syntax
| |
s563761558 | p02547 | u723345499 | 1600544259 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8956 | 255 | n = int(input())
d = [list(map(int, input().split()))for _ in range(n)]
cnt = 0
for i, (p, q) in enumerate(d):
if p == q:
cnt += 1
else:
cnt = 0
if cnt == 3:
print("Yes")
break
else:
print("No")
| File "/tmp/tmptiz4qky6/tmpk1pigom0.py", line 3
^
SyntaxError: invalid non-printable character U+200B
| |
s048820726 | p02547 | u723345499 | 1600544245 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9012 | 256 | n = int(input())
d = [list(map(int, input().split()))for _ in range(n)]
cnt = 0
for i, (p, q) in enumerate(d):
if p == q:
cnt += 1
else:
cnt = 0
if cnt == 3:
print("Yes")
break
else:
print("No")
5 | File "/tmp/tmpsaj7m1ce/tmpqwda55d9.py", line 3
^
SyntaxError: invalid non-printable character U+200B
| |
s250934726 | p02547 | u697615293 | 1600544219 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9188 | 313 | N = int(input())
xy = [map(int,input().split()) for _ in range(N)]
x,y = [list(i) for i in zip(*xy)]
ans = 0
for i in range(N):
if x[i] == y[i]:
ans +=1
elif ans >= 3:
flag = True
else:
ans = 0
if ans >= 3 or flag ==True:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpnmlj6f3d/tmpdn2ibpi1.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s353484321 | p02547 | u785618718 | 1600544213 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9056 | 240 | N = str(input())
count = 0
yes = False
for i in range(N):
a , b = map(int, input().split())
if a==b:
count +=1
if count >= 3:
print("Yes")
yes = True
break
else:
count = 0
if not(yes):
print("No") | Traceback (most recent call last):
File "/tmp/tmpxaaodseq/tmp872k67u7.py", line 1, in <module>
N = str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s428029314 | p02547 | u291043757 | 1600544212 | Python | PyPy3 (7.3.0) | py | Runtime Error | 87 | 68704 | 339 | n=int(input())
ans=0
c=True
d=[]
for i in range(n):
a,b=map(int,input().split())
if a==b:
d.append()
if len(d)<3:
print("No")
else:
j=0
for i in range(1,len(d)-1):
if d[i]-d[i-1]==1 and d[i+1]-d[i]==1:
print("Yes")
c=False
break
if c==False:
... | Traceback (most recent call last):
File "/tmp/tmp3pjaqy0y/tmpxjpcncw0.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s553692028 | p02547 | u093838453 | 1600544193 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9032 | 193 | n = int(input())
count=0
for num in range(n):
d1,d2 = map(int,input().split())
if d1 == d2:
count += 1
else:
if count>0:
print("Yes")
else:
print("No")v | File "/tmp/tmp78otakjw/tmpfyhd3szu.py", line 12
print("No")v
^
SyntaxError: invalid syntax
| |
s310840243 | p02547 | u785618718 | 1600544186 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9036 | 236 | N = str(input())
count = 0
yes = False
for i in range(N):
a , b = map(int, input().split())
if a==b:
count +=1
if count >= 3:
print("Yes")
yes = True
break
else:
count = 0
if !yes:
print("No") | File "/tmp/tmpeyf9e5yc/tmp79i_renx.py", line 18
if !yes:
^
SyntaxError: invalid syntax
| |
s487745608 | p02547 | u986942034 | 1600544171 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9108 | 362 | N = int(input())
a = []
b = []
flg = False
for i in range(N):
x, y = (map(int, input().split()))
a.append(x)
b.append(y)
for i in range(N):
if flg: break
if (a[i - 2] == b[i - 2]):
if (a[i + 1] == b[i + 1]):
if(a[i] == b[i]):
flg = True
break
... | Traceback (most recent call last):
File "/tmp/tmp0u9zzzu7/tmp9xtg0oxu.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s280617228 | p02547 | u723345499 | 1600544170 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9108 | 255 | n = int(input())
d = [list(map(int, input().split()))for _ in range(n)]
flg = False
for i, (p, q) in enumerate(d):
if p == q:
cnt += 1
else:
cnt = 0
if cnt == 3:
print("Yes")
break
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp_jjzoyya/tmp36wn4g6o.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s025419005 | p02547 | u244836567 | 1600544161 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8956 | 169 | a=int(input())
b=0
xy = [map(int, input().split()) for in range(a)]
for i in range(a-2):
if a[i]==a[i+1]==a[i+2]:
b=b+1
if b==0:
print("No")
else:
print("Yes") | File "/tmp/tmpywmpkdz6/tmpusb80vy2.py", line 3
xy = [map(int, input().split()) for in range(a)]
^^
SyntaxError: invalid syntax
| |
s272824766 | p02547 | u291043757 | 1600544153 | Python | PyPy3 (7.3.0) | py | Runtime Error | 132 | 68684 | 344 | n=int(input())
ans=0
c=True
d=[]
for i in range(n):
a,b=map(int,input().split())
if a==b:
d.append()
if len(d)<3:
print("No")
else:
j=0
for i in range(1,len(d)):
if d[i]-d[i-1]==1 and d[i+1]-d[i]==1:
print("Yes")
c=False
break
if c==Fa... | Traceback (most recent call last):
File "/tmp/tmppmgrbjnb/tmpjiu7iimh.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s272516374 | p02547 | u935241425 | 1600544150 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9188 | 341 | n = int( input() )
#print( n )
d1 = [ 0 ] * n
d2 = [ 0 ] * n
#print( d1, d2 )
for i in range( n ):
d1[ i ], d2[ i ] = map( int, input().split() )
#print( d1, d2 )
for i in range( n-2 ):
if d1[ i ] == d2[ i ]:
if d1[ i+1 ] == d2[ i+1 ]:
if d1[ i+2 ] == d2[ i+2 ]:
exit( "Y... | Traceback (most recent call last):
File "/tmp/tmpq7u0ksgw/tmp8mqz7zpm.py", line 1, in <module>
n = int( input() )
^^^^^^^
EOFError: EOF when reading a line
| |
s584509244 | p02547 | u050103839 | 1600544037 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9124 | 309 |
Copy
Copy
N = int(input())
lst = []
for _ in range(N):
d1, d2 = map(int, input().split(' '))
lst.append((d1, d2))
idx = 0
while idx < N-3:
cnt = 0
for _ in range(3):
d1, d2 = lst[idx]
if d1 == d2:
cnt += 1
if cnt == 3:
print('Yes')
break
else:
idx += 1
print('No') | Traceback (most recent call last):
File "/tmp/tmpnqru9ujq/tmp4ijrsapg.py", line 2, in <module>
Copy
NameError: name 'Copy' is not defined
| |
s012500877 | p02547 | u986942034 | 1600543992 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9204 | 362 | N = int(input())
a = []
b = []
flg = False
for i in range(N):
x, y = (map(int, input().split()))
a.append(x)
b.append(y)
for i in range(N):
if flg: break
if (a[i] == b[i]):
if (a[i + 1] == b[i + 1]):
if(a[i + 2] == b[i + 2]):
flg = True
break
... | Traceback (most recent call last):
File "/tmp/tmpaeuytt9a/tmpj81ot9tk.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s983780564 | p02547 | u050103839 | 1600543981 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9204 | 296 | N = int(input())
lst = []
for _ in range(N):
d1, d2 = map(int, input.split(' '))
lst.append((d1, d2))
idx = 0
while idx < N-3:
cnt = 0
for _ in range(3):
d1, d2 = lst[idx]
if d1 == d2:
cnt += 1
if cnt == 3:
print('Yes')
break
else:
idx += 1
print('No') | Traceback (most recent call last):
File "/tmp/tmpjhhtskdw/tmp034rv8ch.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s853646132 | p02547 | u963963908 | 1600543973 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9056 | 256 | N = int(input())
z,w = [],[]
K = 0
for i in range(N):
x,y = map(int,input().split())
z.append(x)
w.append(y)
for j in range(1,N-1):
if z[j] == w[j] and z[j+1] == w[j+1] and z[j+2] == w[j+2]:
K += 1
if K >= 1:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmplbg2jw69/tmp44jxzooz.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s651913156 | p02547 | u923342518 | 1600543905 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9180 | 250 | N = int(input())
count = 0
c = 0
for i in range(N):
d1,d2 = input().split()
if d1==d2:
count+=1
if count==3:
c =1
sys.exit()
else:
count=0
if count==1:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpgfoxg3wu/tmppc5fvcah.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s817826637 | p02547 | u451233002 | 1600543902 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9104 | 219 | S = []
for _ in range(N):
S.append(input().split())
G = []
for i in range(N):
if S[i][0] == S[i][1]:
G.append("1")
else:
G.append("0")
AN = (''.join(G))
if "111" in AN:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpv5tssolw/tmpbjz0gqir.py", line 2, in <module>
for _ in range(N):
^
NameError: name 'N' is not defined
| |
s939097665 | p02547 | u963963908 | 1600543871 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9192 | 252 | N = int(input())
z,w = [],[]
K = 0
for i in range(N):
x,y = map(int,input().split())
z.append(x)
w.append(y)
for j in range(N):
if z[j] == w[j] and z[j+1] == w[j+1] and z[j+2] == w[j+2]:
K += 1
if K >= 1:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmphraye3vi/tmpvg7evgsa.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s231152509 | p02547 | u087590461 | 1600543852 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9000 | 205 | N = int(input())
count=0
for i in range(N):
p,q=map(int,input().split(' '))
if count<3:
if p==q:
count+=1
else:
count=0
else:
pass
if count>=3:
print('Yes')
else:
print('No') | File "/tmp/tmpywsh23hr/tmpifc9gwpt.py", line 6
if p==q:
TabError: inconsistent use of tabs and spaces in indentation
| |
s577491366 | p02547 | u923342518 | 1600543734 | Python | Python (3.8.2) | py | Runtime Error | 31 | 8956 | 257 | N = input()
count = 0
c = 0
for i in range(N):
d1,d2,d3 = input().split()
if (d1==d2)&(d2==d3):
count+=1
if count=3:
c =1
sys.exit()
else:
count=0
if count=1:
print('Yes')
else:
print('No') | File "/tmp/tmpaugg2zej/tmpgj4ixd_o.py", line 8
if count=3:
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s963111506 | p02547 | u276765287 | 1600543679 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9176 | 232 | N = int(input())
D = 0
for i in range(N + 1):
D1, D2 = map(int, input().split())
if D == 3:
break
if D1 == D2:
D += 1
elif D1 != D2:
D = 0
if D == 3:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpx2qr2ia0/tmpljbj7skf.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s469018479 | p02547 | u259318065 | 1600543670 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9176 | 190 | n=int(input("enter n"))
for i in range(0,n):
count=0
m=int(input("enter m"))
o=int(input("emter o"))
if(m==0):
count=count+1
if(count%3==0):
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmp0q159i40/tmpcy2xpn39.py", line 1, in <module>
n=int(input("enter n"))
^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
| enter n |
s143894237 | p02547 | u050103839 | 1600543598 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9136 | 291 | N = input()
lst = []
for _ in range(N):
d1, d2 = map(int, input.split(' '))
lst.append((d1, d2))
idx = 0
while idx < N-3:
cnt = 0
for _ in range(3):
d1, d2 = lst[idx]
if d1 == d2:
cnt += 1
if cnt == 3:
print('Yes')
break
else:
idx += 1
print('No') | Traceback (most recent call last):
File "/tmp/tmpsu0dguxv/tmp_ruriu3w.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s675813219 | p02547 | u835090251 | 1600543575 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9036 | 238 | n=int(input())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
a=0
for i in range(n):
if x[i]==y[i]:
a+=1
if a==3:
break
else:
a=0
if a>=3:
print("Yes")
else:
print("No") | File "/tmp/tmp9fs55adg/tmp8n71hea2.py", line 8
if a==3:
TabError: inconsistent use of tabs and spaces in indentation
| |
s518030446 | p02547 | u178788290 | 1600543545 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9168 | 238 | N=int(input())
D={}
for i in range(N):
D[i]=[input().split()]
cou=0
for i in range(N):
if D[i][0]==D[i][1]:
cou+=1
else:
cou=0
if cou == 3:
print('Yes')
break
if cou == 0:
print('No')
| Traceback (most recent call last):
File "/tmp/tmpm_v8u978/tmpbkkl0pjo.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s184221422 | p02547 | u282376189 | 1600543536 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9196 | 278 | N = int(input())
D = []
for i in range(N):
a = list(map(int,input().split()))
if(a[0] == a[1]):
D.append(1)
else:
D.append(0)
for i in range(N-2):
if D[i] == D[i+1] == D[i+2] == 1:
tf = 1
if tf == 1:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp_fet_wk7/tmpydjrbopb.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s428444812 | p02547 | u973167272 | 1600543440 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9184 | 321 | rows = int(input())
x = []
for i in range(rows):
x.append(list(map(int, input().split())))
for i in range(len(x)):
if x[i][0]==x[i][1]:
if [i+1][0]==[i+1][1]:
if [i+2][0]==[i+2][1]:
print('Yes')
else:
print('No')
else:
print('No')
else:
print('No')
... | Traceback (most recent call last):
File "/tmp/tmpnqa9_8wz/tmp97kpzbk0.py", line 1, in <module>
rows = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s136838091 | p02547 | u454472984 | 1600543433 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9168 | 224 | n=int(input())
flag=0
for i in range(n):
d1,d2=map(int,input().split())
if d1==d2:
flag+=1
if flag==3:
ans=1
else:
flag=0
if ans!=1:
print("No")
else:
print("Yes")
| Traceback (most recent call last):
File "/tmp/tmppfgc4w_8/tmpahfumc5n.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s280002847 | p02547 | u923342518 | 1600543402 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9040 | 206 | N = input()
count = []
for i in range(N):
d1,d2,d3 = input().split()
if (d1==d2)&(d2==d3):
print('Yes')
sys.exit()
else:
count.append(0)
if sum(count)==0:
print('No') | Traceback (most recent call last):
File "/tmp/tmphmt7y44h/tmp8pyo2roo.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s730416502 | p02547 | u516079286 | 1600543399 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9184 | 287 | n = int(input())
s = []
a = 0
for i in range(n):
d = list(map(int, input().split()))
s.append(d)
for i in range(n):
if s[i][0] == s[i][1]:
if s[i+1][0] == s[i+1][1]:
if s[i+2][0] == s[i+2][1]:
print("Yes")
a += 1
break
if a == 0:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpylft7acb/tmpdha6tson.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s514876143 | p02547 | u875584014 | 1600543332 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9176 | 175 | N=int(input())
j=0
for i in range(N):
D1,D2=map(int,input().split())
if D1==D2:
j+=1
if j>=3:
J=3
else:
j=0
if J>=3:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmprm57paya/tmpwhck22i8.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s192065998 | p02547 | u178788290 | 1600543327 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9112 | 240 | N=int(input())
D={}
for i in range(N):
D=[input().split()]
cou=0
for i in range(N):
if D[i][0]==D[i][1]:
cou+=1
else:
cou=0
if cou == 3:
print('Yes')
break
if cou == 0:
print('No')
| Traceback (most recent call last):
File "/tmp/tmpukuj_vct/tmpskcmu0z9.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s329915367 | p02547 | u087590461 | 1600543310 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8980 | 172 | N= int(input())
count=0
for i in range(N):
p,q=map(int,input().split(' '))
if p==q:
count+=1
else:
count=0
if count>=3:
print('Yes')
else:
print('No')
| File "/tmp/tmp84c4_69y/tmp6jlc6sn3.py", line 7
else:
TabError: inconsistent use of tabs and spaces in indentation
| |
s305252292 | p02547 | u635759013 | 1600543309 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9016 | 331 | N = int(input())
nums =[]
count = 0
switch = False
for i in range(N):
nums.append([int(x) for x in input().split()]
for j in nums:
if j[0] == j[1]:
count += 1
elif j[0] != j[1]:
count = 0
if count == 3:
switch = True
if switch == True:
print("Yes")
elif switch == False:
... | File "/tmp/tmprpere9am/tmp94lrso_4.py", line 6
nums.append([int(x) for x in input().split()]
^
SyntaxError: '(' was never closed
| |
s665026354 | p02547 | u454472984 | 1600543303 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9120 | 224 | n=int(input())
flag=0
for i in range(n):
d1,d2=map(int,input().split())
if d1==d2:
flag+=1
if flag==3:
ans=1
else:
flag=0
if ans!=1:
print("No")
else:
print("Yes")
| Traceback (most recent call last):
File "/tmp/tmpajo590he/tmpj8j9z2cx.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s291460241 | p02547 | u207582576 | 1600543301 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9132 | 286 | N = int(input())
xy = [map(int, input().split()) for _ in range(5)]
x, y = [list(i) for i in zip(*xy)]
flag = 0
count = 0
for i in range(N-1):
if x[i] == y[i]:
count += 1
if count >= 3:
flag = 1
else:
count = 0
if flag == 1:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpncxfhx18/tmp59hp1f77.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s796393837 | p02547 | u847075829 | 1600543287 | Python | PyPy3 (7.3.0) | py | Runtime Error | 107 | 68676 | 213 | n = int(input)
count = 0
ans = 'No'
for i in range(n):
a , b = map(int,input().strip().split(' '))
if a!=b:
count = 0
else:
count += 1
if count == 3:
ans = 'Yes'
print(ans) | Traceback (most recent call last):
File "/tmp/tmpaxxkuoq8/tmpxzb3aof0.py", line 1, in <module>
n = int(input)
^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
| |
s301072269 | p02547 | u178788290 | 1600543279 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9184 | 296 | N=int(input())
D={}
for i in range(N):
D=[input().split()]
for w in range(2):
D[i][w]=int(D[i][w])
cou=0
for i in range(N):
if D[i][0]==D[i][1]:
cou+=1
else:
cou=0
if cou == 3:
print('Yes')
break
if cou == 0:
print('No')
| Traceback (most recent call last):
File "/tmp/tmpg0s2ku88/tmp9h5ib52s.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s485805310 | p02547 | u207363774 | 1600543278 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9028 | 187 | N = int(input())
count = 0
for i in range(N):
a,b = map(int,input().sprit())
if a == b:
count+=1
if count = 3:
print("Yes")
break
else:
count = 0
print("No") | File "/tmp/tmpz45_s33i/tmphp88tuzk.py", line 7
if count = 3:
^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s237673086 | p02547 | u660472825 | 1600543277 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9184 | 278 | n = int(input())
d1d2 = [map(int, input().split()) for _ in range(n)]
d1, d2 = [list(i) for i in zip(*d1d2)]
count = 0
for i in range(n):
if d1[i] == d2[i] and d1[i+1] == d2[i+1] and d1[i+2] == d2[i+2]:
count += 1
if count > 0:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpcp_ydq81/tmpklymx511.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s989309606 | p02547 | u847075829 | 1600543256 | Python | PyPy3 (7.3.0) | py | Runtime Error | 152 | 74704 | 205 | n = int(input)
count = 0
ans = 'No'
for i in range(n):
a , b = map(int,input().split(' '))
if a!=b:
count = 0
else:
count += 1
if count == 3:
ans = 'Yes'
print(ans) | Traceback (most recent call last):
File "/tmp/tmptlt5227r/tmpptbchdzs.py", line 1, in <module>
n = int(input)
^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
| |
s893844714 | p02547 | u050103839 | 1600543234 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9088 | 218 | N = input()
idx = 0
while idx < N-3:
cnt = 0
for _ in range(3):
d1, d2 = map(int, input.split(' '))
if d1 == d2:
cnt += 1
if cnt == 3:
print('Yes')
break
else:
idx += 1
print('No') | Traceback (most recent call last):
File "/tmp/tmpjc7ziur6/tmpq74tjtn9.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s755385220 | p02547 | u352676541 | 1600543213 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9200 | 249 | N = int(input())
D = []
for i in range(N):
D.append(list(map(int,input().split())))
for i in range(N):
if D[i][0] == D[i][1] and D[i+1][0] == D[i+1][1] and D[i+2][0] == D[i+2][1]:
ans = "Yes"
else:
ans = "No"
print(ans) | Traceback (most recent call last):
File "/tmp/tmpsplsyfgj/tmp3zzo5r3d.py", line 1, in <module>
N = int(input())
^^^^^^^
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.