Submission #16858381
Source Code Expand
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 | AC |
| Exec Time | 122 ms |
| Memory | 27248 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| 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 | AC | 116 ms | 26956 KiB |
| hand_02.txt | AC | 117 ms | 26660 KiB |
| hand_03.txt | AC | 120 ms | 26996 KiB |
| hand_04.txt | AC | 110 ms | 26640 KiB |
| hand_05.txt | AC | 112 ms | 26948 KiB |
| random_01.txt | AC | 111 ms | 26904 KiB |
| random_02.txt | AC | 119 ms | 27072 KiB |
| random_03.txt | AC | 117 ms | 27064 KiB |
| random_04.txt | AC | 116 ms | 26944 KiB |
| random_05.txt | AC | 119 ms | 26984 KiB |
| random_06.txt | AC | 116 ms | 27040 KiB |
| random_07.txt | AC | 116 ms | 26952 KiB |
| random_08.txt | AC | 114 ms | 26908 KiB |
| random_09.txt | AC | 113 ms | 27248 KiB |
| random_10.txt | AC | 110 ms | 26656 KiB |
| sample_01.txt | AC | 119 ms | 26988 KiB |
| sample_02.txt | AC | 122 ms | 27184 KiB |
| sample_03.txt | AC | 111 ms | 27220 KiB |