結果

問題 No.292 芸名
ユーザー ichibanshiboriichibanshibori
提出日時 2017-04-20 22:03:31
言語 F#
(F# 4.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 5,026 ms
コンパイル使用メモリ 157,024 KB
実行使用メモリ 25,052 KB
最終ジャッジ日時 2023-09-27 03:53:46
合計ジャッジ時間 6,253 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
22,920 KB
testcase_01 AC 89 ms
24,920 KB
testcase_02 AC 88 ms
22,968 KB
testcase_03 AC 87 ms
23,092 KB
testcase_04 AC 86 ms
22,992 KB
testcase_05 AC 87 ms
22,968 KB
testcase_06 AC 87 ms
24,872 KB
testcase_07 AC 87 ms
23,028 KB
testcase_08 AC 87 ms
22,900 KB
testcase_09 AC 89 ms
23,092 KB
testcase_10 AC 86 ms
25,052 KB
testcase_11 AC 87 ms
25,048 KB
testcase_12 AC 86 ms
22,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let () =
    let s, t, u = stdin.ReadLine().Split()
                  |> fun arr -> (arr.[0], int arr.[1], int arr.[2])

    Seq.mapi (fun i c -> (i, c)) s
    |> Seq.choose (fun (i, c) ->
        if i = t || i = u then None
        else Some(c))
    |> Array.ofSeq
    |> fun arr -> new System.String(arr)
    |> printfn "%s"
0