結果
| 問題 | No.870 無敵囲い |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-08 22:14:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 300 ms |
| コード長 | 448 bytes |
| 記録 | |
| コンパイル時間 | 460 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-03-18 16:44:27 |
| 合計ジャッジ時間 | 3,233 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(readline())
m = map(int,read().split())
data = zip(m,m,m,m)
A = (2,8)
B = (3,9)
C = (7,9)
for x1,y1,x2,y2 in data:
if A == (x1,y1):
A = (x2,y2)
if B == (x1,y1):
B = (x2,y2)
if C == (x1,y1):
C = (x2,y2)
answer = 'YES' if all((A == (5,8), B == (4,8), C == (6,8))) else 'NO'
print(answer)
maspy