結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-16 15:27:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-29 06:45:58 |
| 合計ジャッジ時間 | 1,438 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 18 |
ソースコード
n=int(input())
x=[2,8]
y=[3,9]
z=[7,9]
for i in range(n):
a,b,c,d=map(int,input().split())
if [a,b]==x:
x=[c,d]
elif [a,b]==y:
y=[c,d]
elif [a,b]==z:
z=[c,d]
print("Yes" if x==[5,8] and y==[4,8] and z==[6,8] else "No")