結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-06 18:50:52 |
| 言語 | OCaml (5.2.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 300 ms |
| コード長 | 374 bytes |
| コンパイル時間 | 1,112 ms |
| コンパイル使用メモリ | 21,576 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 06:41:30 |
| 合計ジャッジ時間 | 1,820 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")