結果
| 問題 | No.870 無敵囲い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-24 18:23:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 300 ms |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-04-30 08:28:11 |
| 合計ジャッジ時間 | 1,810 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
N = int(input())
A = (2,8)
B = (3,9)
C = (7,9)
l = [A,B,C]
for _ in range(N):
x,y,z,w = map(int,input().split())
for i in range(3):
if l[i] == (x,y):
l[i] = (z,w)
if l[0] == (5,8) and l[1] == (4,8) and l[2] == (6,8):
print('YES')
else:
print('NO')