結果
問題 |
No.870 無敵囲い
|
ユーザー |
![]() |
提出日時 | 2024-05-04 15:05:52 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 300 ms |
コード長 | 344 bytes |
コンパイル時間 | 3,682 ms |
コンパイル使用メモリ | 65,280 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 03:17:00 |
合計ジャッジ時間 | 4,580 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
import sequtils, strutils var ps = { 2:8, 3:9, 7:9 } let n = parseInt readLine stdin for _ in 0 ..< n: let xs = stdin.readLine.split.map parseInt x1 = xs[0] y1 = xs[1] x2 = xs[2] y2 = xs[3] for i in 0 .. 2: if ps[i] == (x1, y1): ps[i] = (x2, y2) if ps == { 5:8, 4:8, 6:8 }: echo "YES" else: echo "NO"