提出 #16858381


ソースコード 拡げる

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')

提出情報

提出日時
問題 B - Go to Jail
ユーザ maspy
言語 Python (3.8.2)
得点 200
コード長 308 Byte
結果 AC
実行時間 122 ms
メモリ 27248 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 18
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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