結果
| 問題 |
No.1217 せしすせそ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-06 14:21:02 |
| 言語 | OCaml (5.2.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 345 bytes |
| コンパイル時間 | 531 ms |
| コンパイル使用メモリ | 21,572 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-09 02:03:16 |
| 合計ジャッジ時間 | 1,256 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
let () =
let rec charlist_of_string str n i =
if i = n then [] else str.[i] :: charlist_of_string str n (i+1) in
Scanf.scanf "%s\n" @@ fun s ->
List.iteri (fun i c -> if Char.code c = 97+i then ()
else print_endline ((Char.escaped (Char.chr (97+i))) ^ "to" ^ (Char.escaped c))) (charlist_of_string s (String.length s) 0)