結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
|
| 提出日時 | 2020-06-21 11:53:24 |
| 言語 | OCaml (5.5.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 36 ms / 1,000 ms |
| + 953µs | |
| コード長 | 456 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 22,820 KB |
| 実行使用メモリ | 9,984 KB |
| 最終ジャッジ日時 | 2026-09-12 07:46:33 |
| 合計ジャッジ時間 | 2,150 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
Scanf.scanf "%d" (fun n ->
let rec loop i head tail =
if i = n then head, tail else
let head, tail = Scanf.scanf " %d %c" (fun t c ->
if t = 0 then head, c :: tail
else c :: head, tail
)
in
loop (i + 1) head tail
in
let h, t = loop 0 [] [] in
let show l = List.iter (print_char) l in
show h;
show (List.rev t);
print_newline ()
)