ZhenlongDai/ACPR huggingface dataset:
Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
if N/2.0>int(N/2.0):
    print(int(N/2.0)+1)
else: print(N/2.0)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
N=int(input())
if N/2.0>int(N/2.0):
    print(int(N/2.0)+1)
else: print(int((N/2.0)))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print((n+1)/2)

Failing test case input:
840

Expected output:
420


Actual output:
420.5


Fixed submission (verdict: Accepted):
n = int(input())
print((n + 1)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n % 2 ==0:
    print(n/2)
else:
    print((n+1)/2)
    

Failing test case input:
557

Expected output:
279


Actual output:
279.0


Fixed submission (verdict: Accepted):
n = int(input())

if n % 2 ==0:
    print(int(n/2))
else:
    print(int((n+1)/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = int(input())
print(int(x/2)+1)

Failing test case input:
840

Expected output:
420


Actual output:
421


Fixed submission (verdict: Accepted):
N = int(input())
print(int(N/2)+N%2)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if(n%2==0):
  print(n/2)
else:
  print((n+1)/2)

Failing test case input:
557

Expected output:
279


Actual output:
279.0


Fixed submission (verdict: Accepted):
n = int(input())
 
if(n%2==0):
  print(int(n/2))
else:
  print(int((n+1)/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num=int(input())
a=num/2
b=num%2
if b==0:
	print(a)
else:
	a=int(a)+1    
print(a)


Failing test case input:
840

Expected output:
420


Actual output:
420.0
420.0


Fixed submission (verdict: Accepted):
num=int(input())
a=int(num/2)
b=int(num%2)
if b==1:
	a=int(a)+1    
print(a)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
print((a+1)/2)

Failing test case input:
583

Expected output:
292


Actual output:
292.0


Fixed submission (verdict: Accepted):
a=int(input())
print((a+1)

Problem: p02759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
if N % 2 == 0:
  print(N/2)
else:
  print((N/2)+1)

Failing test case input:
487

Expected output:
244


Actual output:
244.5


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 0:
  print(N
else:
  print((N

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N % 2 == 0:
  print(N/2)
else:
  print((N+1)/2)


Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 0:
  print(int(N/2))
else:
  print(int((N+1)/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n%2 == 0:
  print(n/2)
else:
  print(n/2+1)

Failing test case input:
557

Expected output:
279


Actual output:
279.5


Fixed submission (verdict: Accepted):
n = int(input())
 
if n%2 == 0:
  print(int(n/2))
else:
  print(int(n
Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
print(n / 2)

Failing test case input:
487

Expected output:
244


Actual output:
243.5


Fixed submission (verdict: Accepted):
n = int(input())
print((n+1)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
K = N % 2
S = (N + K) / 2 
print(S)

Failing test case input:
1073

Expected output:
537


Actual output:
537.0


Fixed submission (verdict: Accepted):
N = int(input())
K = N % 2
S = (N + K) / 2 
I = round(S)
print(I)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
page = int(input())
paper = page 
print(paper)

Failing test case input:
840

Expected output:
420


Actual output:
840


Fixed submission (verdict: Accepted):
page = int(input())
paper = -(-page 
print(paper)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N%2 == 0:
    print(N/2)
else:
    print(N/2+1)

Failing test case input:
1073

Expected output:
537


Actual output:
537.5


Fixed submission (verdict: Accepted):
N = int(input())
if N%2 == 0:
    print(N
else:
    print((N

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
if N%2 == 0:
	print(round(N/2))
else:
  print(round(N/2) + 1)

Failing test case input:
583

Expected output:
292


Actual output:
293


Fixed submission (verdict: Accepted):
N=int(input())
if N%2==0:
	print(int(N/2))
else:
	print(int((N+1)/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())

if N%2==0:
    print(N/2)

else:
    print(round(N/2)+1)

Failing test case input:
487

Expected output:
244


Actual output:
245


Fixed submission (verdict: Accepted):
N=int(input())

if N%2==0:
    print(int(N/2))

elif N%2==1:
    print(int(int(N/2)+1))

Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

if N % 2 == 0:
  print(N/2)
else:
  print(N/2 + 1)

Failing test case input:
583

Expected output:
292


Actual output:
292.5


Fixed submission (verdict: Accepted):
N = int(input())

if N % 2 == 0:
  print(int(N/2))
else:
  print(int(N/2 + 1))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

n= n


n

Failing test case input:
1073

Expected output:
537


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())

print(n

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = int(input())
if N % 2 == 1:
   print((N+1)/2)
else:
    print(N/2)



Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 1:
    print(int((N+1)/2))
else:
    print(int(N/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())
print(math.ceil(N))


Failing test case input:
557

Expected output:
279


Actual output:
557


Fixed submission (verdict: Accepted):
import math
N = int(input())
print(math.ceil(N/2))
Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print(n/2)

Failing test case input:
1073

Expected output:
537


Actual output:
536.5


Fixed submission (verdict: Accepted):
n=int(input())
print(n

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
print(math.ceil(int(input())))

Failing test case input:
740

Expected output:
370


Actual output:
740


Fixed submission (verdict: Accepted):
import math
print(math.ceil(int(input()) / 2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())

if N%2==0:
    print(N/2)
else:
    print(int(N/2)+1)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
N=int(input())

if N%2==0:
    print(int(N/2))
else:
    print(int(N/2)+1)

Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

print(int(round(n/2)))


Failing test case input:
1073

Expected output:
537


Actual output:
536


Fixed submission (verdict: Accepted):
n = int(input()) / 2 + 0.01

print(int(round(n)))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N=int(input())


if N % 2==0:
    a=N/2
else:
    a=(N+1)/2
print(a)

Failing test case input:
583

Expected output:
292


Actual output:
292.0


Fixed submission (verdict: Accepted):

N=int(input())


if N % 2==0:
    a=N/2
else:
    a=(N+1)/2
print(round(a))

Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

if n % 2 == 0:
  print(n / 2)
else:
  print(int(n/2) + 1)

Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):
n = int(input())
 
if n % 2 == 0:
  print(n 
else:
  print(n

Problem: p02759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N=int(input())
if N%2==0:
  answer=N/2
else:
  answer=N/2+1
print(answer)

Failing test case input:
583

Expected output:
292


Actual output:
292.5


Fixed submission (verdict: Accepted):
N=int(input())
if N%2==0:
  answer=N/2
else:
  answer=(N+1)/2
print(int(answer))

Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
if n%2 == 0:
  print(n%2)
else:
  print(n%2 + 1)

Failing test case input:
557

Expected output:
279


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
if n%2 == 0:
  print(n
else:
  print(n

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N % 2 == 0:
  print(N/2)
else:
  print(int((N/2))+1)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 0:
  print(int(N/2))
else:
  print(int((N/2))+1)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = N / 2
B = (N + 1) / 2
if N % 2 == 0:
  print("A")
else:
  print("B")


Failing test case input:
740

Expected output:
370


Actual output:
A


Fixed submission (verdict: Accepted):
N = int(input())
A = N / 2
A = int(A)
B = (N + 1) / 2
B = int(B)
if N % 2 == 0:
  print(A)
else:
  print(B)
Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N % 2 ==0:
  print(N/2)

else:
  print((N/2)+1)

Failing test case input:
487

Expected output:
244


Actual output:
244.5


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2==0:
  print(int(N/2))
  
else:
  print(int((N/2)+1))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n%2==0:
    print(n/2)
else:
    print(n/2+1)

Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):
n = int(input())
if n%2==0:
    print(int(n/2))
else:
    print(int(n/2)+1)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n = int(input())
print(math.ceil(n))

Failing test case input:
1073

Expected output:
537


Actual output:
1073


Fixed submission (verdict: Accepted):
import math
n = int(input())
print(math.ceil(n/2))

Problem: p02759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import math
print(math.ceil(int(input())))

Failing test case input:
487

Expected output:
244


Actual output:
487


Fixed submission (verdict: Accepted):
import math
n=int(input())
print(math.ceil(n/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
if n%2==0:
  print(n/2)
elif n%2==1:
  print((n+1)/2)


Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):
n=int(input())
if n%2==0:
  print(int(n/2))
elif n%2==1:
  print(int((n+1)/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
ans = 0
if n % 2 == 0:
  ans = n / 2
else:
  ans = n / 2 + 1
print(ans)

Failing test case input:
1073

Expected output:
537


Actual output:
537.5


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
if n % 2 == 0:
  ans = int(n / 2)
else:
  ans = int(n / 2) + 1
print(ans)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

n = int(input())

if n%2 == 0:
    print(n/2)
else:
    print(math.floor(n/2)+1)


Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):
import math

n = int(input())

if n%2 == 0:
    print(n
else:
    print(math.floor(n

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
pageNum = int(input())
print(int(round(pageNum/2,0)))

Failing test case input:
557

Expected output:
279


Actual output:
278


Fixed submission (verdict: Accepted):
import math
pageNum = int(input())
print(int(math.ceil(pageNum/2)))

Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

def main():
    n = int(input())
    print((n+1)/2)

if __name__ == "__main__":
    main()

Failing test case input:
487

Expected output:
244


Actual output:
244.0


Fixed submission (verdict: Accepted):

def main():
    n = int(input())
    print((n+1)

if __name__ == "__main__":
    main()
Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = int(input()) 
print(x / 2 + 1 if x % 2 != 0 else x / 2)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
x = int(input()) 
print(int(x/2)+ 1 if x % 2 != 0 else int(x/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N % 2 == 0 :
  print(N/2)
else :
  print(int(N/2) + 1)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
N = int(input())

if N % 2 == 0 :
  print(int(N/2))
else :
  print(int(N/2) + 1)

Problem: p02759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
if n % 2 == 0:
  print(n / 2)
else:
  print((n + 1) / 2)

Failing test case input:
583

Expected output:
292


Actual output:
292.0


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
  print(int(n / 2))
else:
  print(int((n + 1) / 2))

Problem: p02759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import math

n=105

print(math.ceil(n/2))

Failing test case input:
487

Expected output:
244


Actual output:
53


Fixed submission (verdict: Accepted):
import math

n=int(input())

print(math.ceil(n/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x =int(input())
print(int(x/2))

Failing test case input:
557

Expected output:
279


Actual output:
278


Fixed submission (verdict: Accepted):
N = int(input())
print(int(N/2)+N%2)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n =int(input())

if n%2:
    print((n+1)/2)
else:
    print(n/2)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
n =int(input())

if n%2:
    print(int((n+1)/2))
else:
    print(int(n/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

n = n 

n

Failing test case input:
583

Expected output:
292


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())

print(n

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
if a%2==0:
  print(a/2)
else:
  print((a+1)/2)

Failing test case input:
583

Expected output:
292


Actual output:
292.0


Fixed submission (verdict: Accepted):
a=int(input())
if a%2==0:
  print(int(a/2))
else:
  print(int((a+1)/2))
Problem: p02759
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):


import sys
import math
import time

import collections
from collections import deque
import queue
import copy
import bisect


def dfs(s, prev, pre):
  val[s] += Ope[s] + prev
  for i in G[s]:
    if(i == pre):
      continue
    dfs(i, val[s], s)





N = int(input())

if(N%2==0):
  print(N/2)
else:
  print(int(math.floor(N/2)+1))


Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):


import sys
import math
import time

import collections
from collections import deque
import queue
import copy
import bisect


def dfs(s, prev, pre):
  val[s] += Ope[s] + prev
  for i in G[s]:
    if(i == pre):
      continue
    dfs(i, val[s], s)





N = int(input())

if(N%2==0):
  print(int(N/2))
else:
  print(int(math.floor(N/2)+1))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N % 2 != 0:
  	print((N/2)+1)
else:
	print(N/2)


Failing test case input:
557

Expected output:
279


Actual output:
279.5


Fixed submission (verdict: Accepted):
N = int(input())

if N % 2 != 0:
	print(int(N/2)+1)
else:
  print(int(N/2))

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())

if a % 2 == 0:
  b = a / 2
else:
  b = int(a / 2) + 1
  
print(b)

Failing test case input:
740

Expected output:
370


Actual output:
370.0


Fixed submission (verdict: Accepted):
a = int(input())

b = int(a/2)

if b < a / 2:
  b = b + 1
 
print(b)

Problem: p02759
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if int(N) % 2 == 0:
  print(int(N) / 2)
else:
  print(int(N) / 2 + 0.5)

Failing test case input:
840

Expected output:
420


Actual output:
420.0


Fixed submission (verdict: Accepted):
N = input()
if int(N) % 2 == 0:
  print(round(int(N) / 2))
else:
  print(round(int(N) / 2 + 0.5))

Problem: p02759
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = N % 2
my_result = N + a
print(my_result)

Failing test case input:
583

Expected output:
292


Actual output:
584


Fixed submission (verdict: Accepted):
N = int(input())
a = N % 2
my_result = (N + a) / 2
print(int(my_result))
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

ans = 'No'
count = 0
for i in range(n):
  a,b = map(int,input().split())
  if a==b:
    count += 1
    if count == 3:
      ans = 'Yes'

print(ans)      
      
      
  

Failing test case input:
6
1 0
2 3
3 3
4 4
5 0
10 10

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
 
ans = 'No'
count = 0
for i in range(n):
  a,b = map(int,input().split())
  if a==b:
    count += 1
    if count == 3:
      ans = 'Yes'
  else:
    count = 0
    
print(ans)

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for _ in range(n):
  a,b = map(int,input().split())
  if a==b:
    ans += 1
  else:
    ans = 0
print('Yes' if ans>=3 else 'No')

Failing test case input:
5
1 2
6 6
4 4
3 3
3 2

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
tmp = 0
for _ in range(n):
  a,b = map(int,input().split())
  if a==b:
    tmp += 1
  else:
    ans = max(ans,tmp)
    tmp = 0
ans = max(ans,tmp)
print('Yes' if ans>=3 else 'No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

d1=[]
d2=[]

cont=0
for i in range(N):
    D1,D2=map(int,input().split())

    d1.append(D1)
    d2.append(D2)

for i in range(len(d1)):
    if d1[i]==d2[i]:
        cont+=1
    else:
        cont=0
if cont>=3:
    print("Yes")
else:
    print("No")

Failing test case input:
6
1 0
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())

d1=[]
d2=[]

cont=0
for i in range(N):
    D1,D2=map(int,input().split())

    d1.append(D1)
    d2.append(D2)

for i in range(len(d1)):
    if d1[i]==d2[i]:
        cont+=1
    else:
        cont=0

    if cont==3:
        break
    
if cont>=3:
    print("Yes")
else:
    print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
iterate = int(input())
cnt = 0
for i in range(iterate):
  dice = list(map(lambda x: int(x), input().split()))
  if dice[0]==dice[1]:
    cnt += 1
  if dice[0]!=dice[1]: cnt=0
  if cnt==3: break
    
if cnt!=0: print("Yes")
else: print("No")

Failing test case input:
5
0 0
11 2
4 1
3 0
2 2

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
iterate = int(input())
cnt = 0
for i in range(iterate):
  dice = list(map(lambda x: int(x), input().split()))
  if dice[0]==dice[1]:
    cnt += 1
  else:
    cnt = 0
  if cnt==3: break
    
if cnt!=3: print("No")
else: print("Yes")
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
count = 0
for i in range(n):
  d1, d2 = map(int, input().split())
  if count == 3:
    break
  elif d1 == d2:
    count += 1
  else:
    count == 0
if count == 3:
  print("Yes")
else:
  print("No")

Failing test case input:
6
1 0
2 3
3 3
4 4
5 0
10 10

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
count = 0
for i in range(n):
  d1, d2 = map(int, input().split())
  if count > 2:
    break
  else:
    if d1 == d2:
      count += 1
    else:
      count = 0
if count > 2:
  print("Yes")
else:
  print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = "No"
j = 0
for i in range(n):
  d,dd = map(str,input().split())
  if(d==dd):
    if(j>0):
      j += 1
    else:
      j = 0
    if(j==3):
      ans = "Yes"
print(ans)

Failing test case input:
6
1 1
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
ans = "No"
j = 0
for i in range(n):
  d,dd = map(str,input().split())
  if(d==dd):
    j += 1
  else:
    j=0
  if(j>=3):
    ans = "Yes"
print(ans)

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
z = 0
f = False
for i in range(N):
    r = list(map(int, input().split()))
    if r[0] == r[1]:
        z += 1
        if z == 2:
            f = True
    elif not f:
        f = False
        z = 0
if f:
    print("Yes")
else:
    print("No")

Failing test case input:
5
1 2
2 2
3 4
5 5
6 6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
z = 0
f = False
for i in range(N):
    r = list(map(int, input().split()))
    if r[0] == r[1]:
        z += 1
        if z == 3:
            f = True
    elif not f:
        f = False
        z = 0
if f:
    print("Yes")
else:
    print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

count = 0

for i in range(N):
    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")



Failing test case input:
5
1 2
2 2
4 0
9 10
0 6

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input())

count = 0

for i in range(N):
    k, t = map(int, input().split())
      
    if not k == t:
        count *= 0
    if k == t:
       count += 1 
    if count == 3:
      print ( "Yes" )
     
      break
        
if count == 3:
        print ("")
else:
  print ("No")
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
cnt=0
d=[list(map(int,input().split()))for i in range(n)]
for i in range(n):
    if i==0:
        if d[i][0]==d[i][1]:
            cnt+=1
    else:
        if d[i-1][0]!=d[i-1][1]:
            cnt=0
            if d[i][0]==d[i][1]:
                cnt+=1
        else:
            if d[i][0]==d[i][1]:
                cnt+=1
if cnt>=3:
    print('Yes')
else:
    print('No')


Failing test case input:
6
1 0
2 2
3 3
4 4
5 0
10 10

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
cnt=0
d=[list(map(int,input().split()))for i in range(n)]
for i in range(n):
    if cnt>=3:
        break
    else:
        if i==0:
            if d[i][0]==d[i][1]:
                cnt+=1
        else:
            if d[i-1][0]!=d[i-1][1]:
                cnt=0
                if d[i][0]==d[i][1]:
                    cnt+=1
            else:
                if d[i][0]==d[i][1]:
                    cnt+=1
if cnt>=3:
    print('Yes')
else:
    print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input().strip())
count = 0
for i in range(n):
  a,b = map(int,input().strip().split())
  if a == b and count == 3:
    print('Yes')
  elif a == b:
    count += 1
  else:
    count = 0
print('No')


Failing test case input:
5
1 2
6 6
4 4
3 3
3 3

Expected output:
Yes


Actual output:
Yes
No


Fixed submission (verdict: Accepted):
n = int(input().strip())
count = 0
for i in range(n):
  a,b = map(int,input().strip().split())
  if count == 3:
    print('Yes')
    exit(0)
  elif a == b:
    count += 1
  elif(a != b):
    count = 0
if count == 3:
	print('Yes')
else:
	print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YNEOS"["000" not in "".join([str(eval(input().replace(" ","-")))for _ in "_"*int(input())])::2])

Failing test case input:
6
-1 0
2 3
6 1
4 4
2 0
8 4

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
print("YNeos"["000" not in "".join([str(eval(input().replace(" ","-")))for _ in "_"*int(input())])::2])

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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
    else:
        ans -=1
        
if ans >= 3:
    print("Yes")
    
else:
    print("No")

Failing test case input:
6
1 0
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())

xy = [map(int,input().split()) for _ in range(N)]
x,y = [list(i) for i in zip(*xy)]

ans = 0
flag = False

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:
    print("No")
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def solution(arr):
  count = 0
  for i, val in enumerate(arr):
    if 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))

Failing test case input:
6
1 0
2 2
3 3
4 4
5 0
10 10

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def solution(arr):
  count = 0
  for i, j in arr:
    if i == j:
      count += 1
    else:
      count = 0
    if count == 3:
      return 'Yes'
  return 'No'
n = int(input())
arr = []
for _ in range(n):
  arr.append([ int(i) for i in input().split()])
print(solution(arr))

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
D = [input().split() for _ in range(N)]
ans = "no"
for i in range(N - 2):
    if D[i][0] == D[i][1]:
         if D[i + 1][0] == D[i + 1][1]:
            if D[i + 2][0] == D[i + 2][1]:
                ans = "yes"
                break
print(ans)

Failing test case input:
6
0 0
2 3
3 1
4 4
5 0
8 4

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input())
D = [input().split() for _ in range(N)]
ans = "No"
for i in range(N - 2):
    if D[i][0] == D[i][1]:
         if D[i + 1][0] == D[i + 1][1]:
            if D[i + 2][0] == D[i + 2][1]:
                ans = "Yes"
                break
print(ans)

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
lst1=[]
lst2=[]
count=0
for _ in range(n):
    m,k=[int(x) for x in input().split()]
    lst1.append(m)
    lst2.append(k)
if(n<3):
    print('NO')
else:
    
    for i in range(n-2):
        if(lst1[i]==lst2[i] and lst1[i+1]==lst2[i+1] and lst1[i+2]==lst2[i+2]):
            count=3
            break
    if(count==3):
        print('YES')
    else:
        print('NO')
    

Failing test case input:
5
1 -1
1 0
4 0
1 2
1 4

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
lst1=[]
lst2=[]
count=0
for _ in range(n):
    m,k=[int(x) for x in input().split()]
    lst1.append(m)
    lst2.append(k)
for i in range(n-2):
    if(lst1[i]==lst2[i] and lst1[i+1]==lst2[i+1] and lst1[i+2]==lst2[i+2]):
        count=3
        break
if(count==3):
    print('Yes')
else:
    print('No')
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
D = [input() for i in range(N)]
count = 0
OK = 0
for ite in D:
    
    
    a,b = map(int,ite.split())
    
    if a == b:
        count += 1
        if count >=3:
            OK = 1
            print('Yes')
        
        else:
            pass
    
    else:
        count = 0
if OK == 0:
    print('No')    



Failing test case input:
6
1 0
2 2
3 3
4 4
5 5
10 10

Expected output:
Yes


Actual output:
Yes
Yes
Yes


Fixed submission (verdict: Accepted):
N = int(input())
D = [input() for i in range(N)]
count = 0
OK = 0
for ite in D:
    
    
    a,b = map(int,ite.split())
    
    if a == b:
        count += 1
        if count >=3:
            OK = 1
            
        
        else:
            pass
    
    else:
        count = 0

if OK == 0:
    print('No')    
else:
    print('Yes')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
num_list = []
for i in range(N):
    num_list.append(list(map(int,input().split())))

for j in range(N-2):
    if num_list[j][0] == num_list[j][1] and num_list[j+1][0] == num_list[j+1][1] and num_list[j+2][0] == num_list[j+2][1]:
        print ("Yes")
        break
    elif j != N-3 and num_list[j][0] != num_list[j][1] or num_list[j+1][0] != num_list[j+1][1] or num_list[j+2][0] != num_list[j+2][1]:
        continue
    else:
        print("No")



Failing test case input:
5
0 0
1 2
4 0
0 1
1 3

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
num_list = []
for i in range(N):
    num_list.append(list(map(int,input().split())))

for j in range(N-2):
    if num_list[j][0] == num_list[j][1] and num_list[j+1][0] == num_list[j+1][1] and num_list[j+2][0] == num_list[j+2][1]:
        print ("Yes")
        break
    elif j != N-3 and (num_list[j][0] != num_list[j][1] or num_list[j+1][0] != num_list[j+1][1] or num_list[j+2][0] != num_list[j+2][1]):
        continue
    else:
        print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
x=[0]*N
y=[0]*N
L=[0]*N

flag = "No"

if N <3:
  flag = "No"

else:

  for i in range(N):
      x[i],y[i] = map(int, input().split())

  for i in range(N):
    if x[i]==y[i]:
      L[i]=1

  

  for i in range (N-2):
    
    if L[i] == L[i+1] == L[i+2]:
      flag = "Yes"



print(flag)
    

Failing test case input:
5
1 0
0 2
4 0
-1 1
1 3

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
x=[0]*N
y=[0]*N
L=[0]*N

flag = "No"

if N <3:
  flag = "No"

else:

  for i in range(N):
      x[i],y[i] = map(int, input().split())

  for i in range(N):
    if x[i]==y[i]:
      L[i]=1

  

  for i in range (N-2):
    
    if L[i] == L[i+1] == L[i+2] == 1:
      flag = "Yes"



print(flag)
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
count = 0
for i in range(int(input())):
    l = list(map(int, input().split()))
    if l[0] == l[1]:
        count += 1
    elif l[0] != l[1]:
        count = 0
if count >= 3:
    print("Yes")
elif count < 3:
    print("No")


Failing test case input:
6
1 0
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
count = 0
for i in range(int(input())):
    l = list(map(int, input().split()))
    if l[0] == l[1]:
        count += 1
    elif l[0] != l[1]:
        count = 0
    if count >= 3:
        print("Yes")
        break
if count < 3:
    print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import os,sys
c=0

n=input()
for i in range(int(n)):
    m=input()
    one=m[0]
    two=m[2]
    if(one==two):
        c+=1
    else:
        c=0
    
if(c>=3):
    print('Yes')
else:
    print('No')


Failing test case input:
5
1 2
6 6
4 4
3 3
3 2

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
import os,sys
c=0
ok=False
n=input()
for i in range(int(n)):
    m=input()
    one=m[0]
    two=m[2]
    if one==two:
        c+=1
    else:
        c=0
    if c>=3:
        ok=True
    
if(ok):
    print('Yes')
else:
    print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
l1=[]
l2=[]
for i in range(n):
  x,y=(int(i) for i in input().split())
  l1.append(x)
  l2.append(y)
c=0
for i in range(n-2):
  if(l1[i]==l2[i] and l1[i+1]==l2[i+1] and l1[i+2]==l2[i+1]):
    c=1
    break
if(c==0):
  print("No")
else:
  print("Yes")

Failing test case input:
6
1 1
2 2
3 3
4 4
5 5
6 6

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
l1=[]
l2=[]
for i in range(n):
  x,y=(int(i) for i in input().split())
  l1.append(x)
  l2.append(y)
c=0
for i in range(n-2):
  if(l1[i]==l2[i] and l1[i+1]==l2[i+1] and l1[i+2]==l2[i+2]):
    c=1
    break
if(c==0):
  print("No")
else:
  print("Yes")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from collections import defaultdict 
import sys
import math 
import random
def get_array(): return list(map(int , sys.stdin.readline().strip().split()))
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def input(): return sys.stdin.readline().strip()

cnt = 0
n = int(input())
for i in range(n):
    (x,y) = get_ints()
    if x==y:
        cnt+=1
if cnt>=3:
    print("Yes")
else:
    print("No")

Failing test case input:
5
1 2
2 2
3 4
5 5
6 6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
from collections import defaultdict 
import sys
import math 
import random
def get_array(): return list(map(int , sys.stdin.readline().strip().split()))
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def input(): return sys.stdin.readline().strip()

cnt = 0
n = int(input())
flag = False 
for i in range(n):
    (x,y) = get_ints()
    
    if x==y:
        cnt+=1
    else:
        cnt=0
    if cnt>=3:
        flag = True 

if flag:
    print("Yes")
else:
    print("No")
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
ans=''
for i in range(n-2):
  if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
    ans='Yes'
  else:
    ans='No'
print(ans)

Failing test case input:
6
1 1
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
ans='No'
for i in range(n-2):
  if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
    ans='Yes'
print(ans)

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if __name__ == '__main__':
    try:
        count = []
        result = 0
        T = int(input())
        for _ in range(T):
            x, y = map(int, input().split())
            count.append([x, y])

        for i in range(T-2):
            if count[i][0] == count[i][1] and count[i+1][0] == count[i+1][1] and count[i+2][0] == count[i+2][1]:
                print("Yes")
                exit(0)
            else:
                print("No")
    except Exception:
        pass

Failing test case input:
5
1 2
2 2
3 4
5 5
6 6

Expected output:
No


Actual output:
No
No
No


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    try:
        count = []
        result = 0
        T = int(input())
        for _ in range(T):
            x, y = map(int, input().split())
            count.append([x, y])

        for i in range(T-2):
            if count[i][0] == count[i][1] and count[i+1][0] == count[i+1][1] and count[i+2][0] == count[i+2][1]:
                print("Yes")
                exit(0)

        print("No")
    except Exception:
        pass

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
xy=[map(int,input().split()) for i in range(n)]
x,y=[list(v) for v in zip(*xy)]
cnt=0
for i in range(n):
  if x[i]==y[i]:
    cnt+=1
  else:
    cnt=0
  if cnt==3:
    print('Yes')
    break
if cnt==0:
  print('No')

Failing test case input:
5
0 0
6 2
4 1
3 0
2 2

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n=int(input())
xy=[map(int,input().split()) for i in range(n)]
x,y=[list(v) for v in zip(*xy)]
cnt=0
for i in range(n):
  if x[i]==y[i]:
    cnt+=1
  else:
    cnt=0
  if cnt==3:
    print('Yes')
    break
if cnt!=3:
  print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
lst = []
for i in range(n):
	lst.append(list(map(int,input().split())))
print(lst)

cnt = 0

for i in range(n):
	if lst[i][0]==lst[i][1]:
		cnt += 1
	else:
		cnt = 0
	if cnt == 3:
		print('Yes')
		exit()
print('No')

Failing test case input:
5
0 0
1 2
4 0
-1 1
1 3

Expected output:
No


Actual output:
[[0, 0], [1, 2], [4, 0], [-1, 1], [1, 3]]
No


Fixed submission (verdict: Accepted):
n = int(input())
lst = []
for i in range(n):
	lst.append(list(map(int,input().split())))

cnt = 0

for i in range(n):
	if lst[i][0]==lst[i][1]:
		cnt += 1
	else:
		cnt = 0
	if cnt == 3:
		print('Yes')
		exit()
print('No')
Problem: p02547
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
count = 0
for i in range(N):
    D1, D2 = map(int, input().split())
    if D1 == D2:
        count += 1
    if count == 3:
        print('Yes')
        break
    if i == N-1:
        print('No')

Failing test case input:
5
1 2
2 2
3 4
5 5
6 6

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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:
        print('Yes')
        break
    if i == N-1:
        print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
data = []
zoro = []
yn = False
for i in range(n):
    data = input().split()
    if data[0] == data[1]:
        zoro += [True]
    else:
        zoro += [False]
    if i > 1 and (zoro[i] == True or zoro[i-1] == True or zoro[i-2] == True):
        yn = True
print(zoro)
print("Yes") if yn == True else print("No")

Failing test case input:
5
0 0
1 2
4 0
0 2
1 3

Expected output:
No


Actual output:
[True, False, False, False, False]
Yes


Fixed submission (verdict: Accepted):
n = int(input())
data = []
zoro = []
yn = False
for i in range(n):
    data = input().split()
    if data[0] == data[1]:
        zoro += [True]
    else:
        zoro += [False]
    if i > 1 and (zoro[i] == True and zoro[i-1] == True and zoro[i-2] == True):
        yn = True
print("Yes") if yn == True else print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

affilé = 0

for i in range(n):
  d1, d2 = [int(k) for k in input().split()]
  if d1 == d2:
    affilé += 1
  elif d1 != d2:
    affilé == 0
  

  if affilé == 3:
    print('YES')
    exit()

print('NO')


Failing test case input:
6
1 0
2 3
3 1
4 4
5 0
8 10

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())

affilé = 0
ok = 0


for i in range(n):
  d1, d2 = [int(k) for k in input().split()]
  if d1 == d2:
    affilé += 1
  elif d1 != d2:
    affilé = 0
  

  if affilé == 3:
    ok = 1

if ok == 0:
  print('No')
else:
  print('Yes')
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if __name__ == '__main__':
    try:
        count = []
        result = 0
        T = int(input())
        for _ in range(T):
            x, y = map(int, input().split())
            count.append([x, y])

        for i in range(T-2):
            if count[i][0] == count[i][1] and count[i+1][0] == count[i+1][1] and count[i][1+2][0] == count[i+2][1]:
                print("Yes")
                exit(0)
            else:
                print("No")
    except Exception:
        pass

Failing test case input:
5
0 0
1 2
4 0
0 2
1 4

Expected output:
No


Actual output:
No
No
No


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    try:
        count = []
        result = 0
        T = int(input())
        for _ in range(T):
            x, y = map(int, input().split())
            count.append([x, y])

        for i in range(T-2):
            if count[i][0] == count[i][1] and count[i+1][0] == count[i+1][1] and count[i+2][0] == count[i+2][1]:
                print("Yes")
                exit(0)

        print("No")
    except Exception:
        pass

Problem: p02547
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
cnt = 0
flg = False
for _ in range(N):
    a, b = map(int, input().split())
    if a != b:
        cnt = 0
    else:
        cnt += 1
        flg = True

if flg:
    print('Yes')
else:
    print('No')

Failing test case input:
6
1 0
2 3
3 3
4 4
5 0
8 10

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
cnt = 0
flg = False
for _ in range(N):
    a, b = map(int, input().split())
    if a != b:
        cnt = 0
    else:
        cnt += 1
    if cnt >= 3:
        flg = True

if flg:
    print('Yes')
else:
    print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
s=0
for i in range(n):
  lis=input().split()
  if lis[0]==lis[1]:
    s+=1
  else:
    s=0
if s>=3:
  print("Yes")
else:
  print("No")

Failing test case input:
5
1 2
6 6
4 4
3 3
3 2

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
s=0
ok=0
for i in range(n):
  lis=input().split()
  if lis[0]==lis[1]:
    s+=1
    if s>=3:
      ok=1
  else:
    s=0
if ok==1:
  print("Yes")
else:
  print("No")

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = [list(map(int, input().split())) for i in range(n)]


ans = n-2
ans1 = 0

for m in range(ans):
  if l[m][0]  == l[m][1] and l[m+1][0] == l[m+1][1] and l[m+2][0] == l[m+2][1]:
    ans1 += 1
  else:
    ans1 = 0
    
    
if ans1 >= 1:
  print("Yes")
else:
  print("No")

Failing test case input:
6
1 0
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
l = [list(map(int, input().split())) for i in range(n)]


ans = n-2
ans1 = 0

for m in range(ans):
  if l[m][0]  == l[m][1] and l[m+1][0] == l[m+1][1] and l[m+2][0] == l[m+2][1]:
    ans1 += 1
 
    
    
if ans1 >= 1:
  print("Yes")
else:
  print("No")
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
flag = 0
ans = "No"
for i in range(N):
  A,B = input().split()
  if A == B:    
    flag += 1
  if flag == 3:
    ans = "Yes"
    break
  else:
    flag = 0
    
  
print(ans)

Failing test case input:
6
1 1
2 2
3 3
4 4
5 5
10 6

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
flag = 0
ans = "No"
for i in range(N):
  A,B = input().split()
  if A == B:    
    flag += 1
  else:
    flag = 0
  if flag == 3:
    ans = "Yes"
    break
    
print(ans)

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
d = []
z = 0

for i in range(n):
  d1, d2 = map(int, input().split())
  z = z+1 if d1==d2 else 0
  d.append(z)

print(max(d))

Failing test case input:
6
-4 1
1 3
0 2
5 12
2 0
0 3

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
d = []
z = 0

for i in range(n):
  d1, d2 = map(int, input().split())
  z = z+1 if d1==d2 else 0
  d.append(z)

ans = 'Yes' if max(d)>=3 else 'No'
print(ans)

Problem: p02547
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())

cnt = 0
ans = False
for i in range(N):
	D1, D2 = map(int, input().split())
	if D1 == D2:
		cnt += 1
	else:
		cnt = 0
   
	if cnt > 2:
		ans = True
		break
      
print(ans)

Failing test case input:
5
1 2
6 6
4 1
3 3
3 2

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
N = int(input())
 
cnt = 0
ans = 'No'
for i in range(N):
	D1, D2 = map(int, input().split())
	if D1 == D2:
		cnt += 1
	else:
		cnt = 0
   
	if cnt > 2:
		ans = 'Yes'
		break
      
print(ans)

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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

if cou >= 3:
    print('Yes')
else:
    print('No')

Failing test case input:
6
1 0
2 3
3 3
4 4
5 0
10 10

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
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
        if cou ==3:
            print('Yes')
            break
    else:
        cou=0

if cou < 3:
    print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
t = 0
for i in range(N):
    a, b = [int(x) for x in input().split()]
    if a != b:
        t = 0
    else:
        t += 1
    if t == 2:
        break
if t == 3:
    print("Yes")
else:
    print("No")


Failing test case input:
5
1 2
6 6
4 4
3 3
3 3

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
t = 0
for i in range(N):
    a, b = [int(x) for x in input().split()]
    if a != b:
        t = 0
    else:
        t += 1
    if t > 2:
        break
if t > 2:
    print("Yes")
else:
    print("No")
Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
lst1=[]
lst2=[]
count=0
for _ in range(n):
    m,k=[int(x) for x in input().split()]
    lst1.append(m)
    lst2.append(k)
if(n<3):
    print('NO')
else:
    
    for i in range(n-2):
        if(lst1[i]==lst2[i] and lst1[i+1]==lst2[i+1] and lst1[i+2]==lst2[i+2]):
            count=3
            break
    if(count>=3):
        print('YES')
    else:
        print('NO')
    

Failing test case input:
5
1 2
2 2
3 4
9 5
6 6

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
lst1=[]
lst2=[]
count=0
for _ in range(n):
    m,k=[int(x) for x in input().split()]
    lst1.append(m)
    lst2.append(k)
for i in range(n-2):
    if(lst1[i]==lst2[i] and lst1[i+1]==lst2[i+1] and lst1[i+2]==lst2[i+2]):
        count=3
        break
if(count==3):
    print('Yes')
else:
    print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = [input().split(" ") for i in range(n)]
num = 0
nummax = 0
for i in range(n):
  print(a[i][0])
  if int(a[i][0])==int(a[i][1]):
    num+=1
  else:
    if num> nummax:
      nummax = num
      num=0
if nummax>3:
  print('Yes')
else:
  print('No')

Failing test case input:
5
0 0
1 2
4 0
0 2
1 4

Expected output:
No


Actual output:
0
1
4
0
1
No


Fixed submission (verdict: Accepted):
n = int(input())
a = [input().split(" ") for i in range(n)]
num = 0
nummax = 0
for i in range(n):
  if int(a[i][0])==int(a[i][1]):
    num+=1
  else:
    if num> nummax:
      nummax = num
    num=0
if num> nummax:
   nummax = num
if nummax>=3:
  print('Yes')
else:
  print('No')

Problem: p02547
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
tmp = 0
for _ in range(n):
  a,b = map(int,input().split())
  if a==b:
    tmp += 1
  else:
    ans = max(ans,tmp)
    tmp = 0
print('Yes' if ans>=3 else 'No')

Failing test case input:
6
1 1
2 2
3 3
4 4
5 5
6 6

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
tmp = 0
for _ in range(n):
  a,b = map(int,input().split())
  if a==b:
    tmp += 1
  else:
    ans = max(ans,tmp)
    tmp = 0
ans = max(ans,tmp)
print('Yes' if ans>=3 else 'No')