結果
| 問題 |
No.531 エヌスクミ島の平和協定
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-22 02:22:14 |
| 言語 | OCaml (5.2.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 234 bytes |
| コンパイル時間 | 361 ms |
| コンパイル使用メモリ | 21,700 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-09 01:38:01 |
| 合計ジャッジ時間 | 1,611 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 |
ソースコード
Scanf.scanf "%d %d" (fun n m ->
Printf.printf "%d\n" @@
if n mod 2 = 1 then (
if n <= m then 1 else (-1)
) else (
if n <= m then 1 else
if n / 2 <= m then 2 else (-1)
)
)