結果
| 問題 | No.870 無敵囲い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-06 18:50:52 |
| 言語 | OCaml (5.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 300 ms |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 1,066 ms |
| コンパイル使用メモリ | 22,920 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-18 16:55:47 |
| 合計ジャッジ時間 | 1,923 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
let () =
let n = Scanf.scanf "%d\n" @@ fun n -> n in
let koma = [|(2, 8); (3, 9); (7, 9)|] in
for i = 0 to n-1 do
Scanf.scanf "%d %d %d %d\n" @@ fun x1 y1 x2 y2 ->
for i = 0 to 2 do
if koma.(i) = (x1, y1) then koma.(i) <- (x2, y2)
done;
done;
print_endline (if koma.(0) = (5,8) && koma.(1) = (4, 8) && koma.(2) = (6,8) then "YES" else "NO")