結果
| 問題 | No.1453 手助け |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-02 14:10:46 |
| 言語 | OCaml (5.5.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 518µs | |
| コード長 | 439 bytes |
| 記録 | |
| コンパイル時間 | 528 ms |
| コンパイル使用メモリ | 22,692 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-09-30 17:42:33 |
| 合計ジャッジ時間 | 2,390 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
Scanf.scanf "%d %d %d %d %d" (fun a b c d e ->
let calc v =
let rec loop x i acc =
if i > v then acc else
let cur = if i mod 10 > 0 then x else
if e <= x then x - e else
x
in
loop cur (i + 1) (acc + cur)
in
if v = 0 then 0 else loop d 2 d
in
Printf.printf "%d\n" @@ calc (a * (b - c))
)