結果
| 問題 | No.870 無敵囲い |
| コンテスト | |
| ユーザー |
clearbook
|
| 提出日時 | 2019-10-24 19:43:23 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 300 ms |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 414 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-18 16:31:37 |
| 合計ジャッジ時間 | 3,128 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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