結果
問題 | No.224 文字列変更(easy) |
ユーザー |
|
提出日時 | 2020-06-15 20:30:10 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 235 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 21,576 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 01:17:32 |
合計ジャッジ時間 | 1,359 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
Scanf.scanf "%d %s %s" (fun n s t -> let n = String.length s in let rec loop i acc = if i = n then acc else loop (i + 1) (if s.[i] = t.[i] then acc else acc + 1) in loop 0 0 |> Printf.printf "%d\n" )