結果

問題 No.1335 1337
ユーザー xsd
提出日時 2022-07-02 16:56:21
言語 OCaml
(5.2.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 1,555 ms
コンパイル使用メモリ 21,572 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 11:52:48
合計ジャッジ時間 1,517 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

Scanf.scanf "%s %s" (fun a s ->
    let mapfunc c =
        if c >= '0' && c <= '9' then a.[int_of_char c - 48] else c
    in
    print_endline @@ String.map mapfunc s
)
0