結果

問題 No.676 C0nvertPr0b1em
ユーザー kuuso1kuuso1
提出日時 2018-04-27 22:33:56
言語 F#
(.NET 7)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 625 bytes
コンパイル時間 5,066 ms
コンパイル使用メモリ 166,152 KB
実行使用メモリ 24,808 KB
最終ジャッジ日時 2023-09-05 17:01:50
合計ジャッジ時間 8,700 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
24,764 KB
testcase_01 AC 77 ms
22,672 KB
testcase_02 AC 78 ms
20,772 KB
testcase_03 AC 79 ms
24,800 KB
testcase_04 AC 78 ms
24,804 KB
testcase_05 AC 77 ms
22,716 KB
testcase_06 AC 78 ms
24,712 KB
testcase_07 AC 78 ms
22,760 KB
testcase_08 AC 78 ms
22,752 KB
testcase_09 AC 78 ms
24,680 KB
testcase_10 AC 78 ms
22,752 KB
testcase_11 AC 77 ms
22,736 KB
testcase_12 AC 78 ms
22,828 KB
testcase_13 AC 78 ms
20,744 KB
testcase_14 AC 80 ms
22,836 KB
testcase_15 AC 78 ms
22,896 KB
testcase_16 AC 77 ms
22,720 KB
testcase_17 AC 78 ms
22,640 KB
testcase_18 AC 79 ms
24,744 KB
testcase_19 AC 78 ms
22,780 KB
testcase_20 AC 79 ms
24,688 KB
testcase_21 AC 79 ms
22,788 KB
testcase_22 AC 78 ms
22,912 KB
testcase_23 AC 78 ms
22,696 KB
testcase_24 AC 78 ms
24,808 KB
testcase_25 AC 78 ms
22,856 KB
testcase_26 AC 77 ms
22,752 KB
testcase_27 AC 78 ms
22,816 KB
testcase_28 AC 78 ms
22,752 KB
testcase_29 AC 78 ms
22,796 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let rs () = stdin.ReadLine()
let ri () = stdin.ReadLine() |> int
let ria () = stdin.ReadLine().Split() |> Array.map int

let 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'
            | _ -> c
        
        
        
        s.ToCharArray()
        |> Array.map f
        |> seq2str
        |> printfn "%s"
        
        
        ()
let mySol = new Sol()
mySol.Solve()
0