結果
| 問題 | No.1070 Missing a space |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-06 17:59:44 |
| 言語 | OCaml (5.5.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 299µs | |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 22,692 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-12 07:34:44 |
| 合計ジャッジ時間 | 1,270 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
let () =
let c = Scanf.scanf "%s\n" @@ fun c -> c in
let ans = ref 0 in
for i = 0 to String.length c - 1 do
if c.[i] <> '0' then ans := !ans + 1
done;
print_int (!ans - 1)