結果
問題 | No.870 無敵囲い |
ユーザー |
![]() |
提出日時 | 2020-01-08 22:14:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 300 ms |
コード長 | 448 bytes |
コンパイル時間 | 247 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-29 06:36:35 |
合計ジャッジ時間 | 1,579 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
import sysread = sys.stdin.buffer.readreadline = sys.stdin.buffer.readlinereadlines = sys.stdin.buffer.readlinesN = 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)