結果
| 問題 | No.799 赤黒かーどげぇむ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-06 17:13:37 |
| 言語 | OCaml (5.5.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 304µs | |
| コード長 | 429 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 22,560 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-12 07:24:41 |
| 合計ジャッジ時間 | 1,473 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
let rec check2 a lst = match lst with | [] -> 0 | head :: tail -> if head <> a then 1 + check2 a tail else check2 a tail let rec check a b lst = if a > b then 0 else check2 a lst + check (a+1) b lst let () = let a, b, c, d = Scanf.scanf "%d %d %d %d\n" (fun a b c d -> a, b, c, d) in let rec make_lst a b = if a = b then [a] else a :: make_lst (a+1) b in let lst = make_lst c d in Printf.printf "%d\n" (check a b lst)