結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-14 11:43:37 |
| 言語 | OCaml (5.5.2) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 1,000 ms |
| + 58µs | |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 1,302 ms |
| コンパイル使用メモリ | 22,436 KB |
| 実行使用メモリ | 9,828 KB |
| 最終ジャッジ日時 | 2026-11-12 01:26:51 |
| 合計ジャッジ時間 | 3,433 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
Scanf.scanf "%d %d %d %d" (fun a b c d ->
let a = [| a; b; c; d |] in
Array.sort compare a;
print_endline @@
if a.(1) - a.(0) = 1 &&
a.(2) - a.(1) = 1 &&
a.(3) - a.(2) = 1 then "Yes" else "No"
)