結果
問題 | No.870 無敵囲い |
ユーザー |
|
提出日時 | 2019-09-23 09:51:12 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 300 ms |
コード長 | 242 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,144 KB |
最終ジャッジ日時 | 2024-06-29 06:25:19 |
合計ジャッジ時間 | 1,261 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
#yuki870 n=int(raw_input()) ls=[(2,8),(3,9),(7,9)] lg=[(5,8),(4,8),(6,8)] for i in xrange(n): x0,y0,x1,y1=map(int,raw_input().split()) if (x0,y0) in ls: temp=ls.index((x0,y0)) ls[temp]=(x1,y1) if ls==lg: print 'YES' else: print 'NO'