結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
clearbook
|
| 提出日時 | 2019-10-24 19:43:23 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 300 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-29 06:26:26 |
| 合計ジャッジ時間 | 1,231 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
N_28 = 28
N_39 = 39
N_79 = 79
N = int(input())
for i in range(N):
x1, y1, x2, y2 = map(int, input().split())
if 10*x1 + y1 == N_28:
N_28 = 10*x2 + y2
if 10*x1 + y1 == N_39:
N_39 = 10*x2 + y2
if 10*x1 + y1 == N_79:
N_79 = 10*x2 + y2
if N_28 == 58 and N_39 == 48 and N_79 == 68:
print("YES")
else:
print("NO")
clearbook