Submission #16858381


Source Code Expand

Copy
import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

XY = np.array(read().split(), np.int64)[1:]
X, Y = XY[::2], XY[1::2]

A = (X == Y)
A = A[:-1] & A[1:]
A = A[:-1] & A[1:]

print('Yes' if np.any(A) else 'No')

Submission Info

Submission Time
Task B - Go to Jail
User maspy
Language Python (3.8.2)
Score 200
Code Size 308 Byte
Status
Exec Time 122 ms
Memory 27248 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
× 3
× 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hamd_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hamd_01.txt 116 ms 26956 KB
hand_02.txt 117 ms 26660 KB
hand_03.txt 120 ms 26996 KB
hand_04.txt 110 ms 26640 KB
hand_05.txt 112 ms 26948 KB
random_01.txt 111 ms 26904 KB
random_02.txt 119 ms 27072 KB
random_03.txt 117 ms 27064 KB
random_04.txt 116 ms 26944 KB
random_05.txt 119 ms 26984 KB
random_06.txt 116 ms 27040 KB
random_07.txt 116 ms 26952 KB
random_08.txt 114 ms 26908 KB
random_09.txt 113 ms 27248 KB
random_10.txt 110 ms 26656 KB
sample_01.txt 119 ms 26988 KB
sample_02.txt 122 ms 27184 KB
sample_03.txt 111 ms 27220 KB