結果
問題 | No.676 C0nvertPr0b1em |
ユーザー |
![]() |
提出日時 | 2018-04-27 22:33:56 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 72 ms / 2,000 ms |
コード長 | 625 bytes |
コンパイル時間 | 15,227 ms |
コンパイル使用メモリ | 189,680 KB |
実行使用メモリ | 31,104 KB |
最終ジャッジ日時 | 2024-06-23 12:32:36 |
合計ジャッジ時間 | 15,471 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (459 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
open Systemlet rs () = stdin.ReadLine()let ri () = stdin.ReadLine() |> intlet ria () = stdin.ReadLine().Split() |> Array.map intlet seq2str (s : seq<char>) = new string [| for c in s -> c |]type Sol() =member this.Solve() =let s = rs()let f c =match c with| 'I' -> '1'| 'l' -> '1'| 'O' -> '0'| 'o' -> '0'| _ -> cs.ToCharArray()|> Array.map f|> seq2str|> printfn "%s"()let mySol = new Sol()mySol.Solve()