結果

問題 No.292 芸名
ユーザー kuuso1kuuso1
提出日時 2016-08-17 23:55:21
言語 F#
(F# 4.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 452 bytes
コンパイル時間 10,455 ms
コンパイル使用メモリ 190,364 KB
実行使用メモリ 29,568 KB
最終ジャッジ日時 2024-04-25 08:37:45
合計ジャッジ時間 11,693 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
29,568 KB
testcase_01 AC 60 ms
29,440 KB
testcase_02 AC 59 ms
29,440 KB
testcase_03 AC 60 ms
29,440 KB
testcase_04 AC 58 ms
29,568 KB
testcase_05 AC 59 ms
29,440 KB
testcase_06 AC 59 ms
29,312 KB
testcase_07 AC 58 ms
29,312 KB
testcase_08 AC 59 ms
29,312 KB
testcase_09 AC 60 ms
29,440 KB
testcase_10 AC 58 ms
29,312 KB
testcase_11 AC 60 ms
29,440 KB
testcase_12 AC 60 ms
29,568 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (248 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/

ソースコード

diff #

open System
type Sol() =
    member this.Solve() = 
        let (S,a,b) = stdin.ReadLine().Split() |> fun ss -> (ss.[0],int ss.[1],int ss.[2])
        let mutable ans: char list = []
        for i = 0 to ( (Seq.length S) - 1) do
            if i <> a && i <> b then ( ans <- S.[i] :: ans)
        
        let str = new String(List.toArray ans |> Array.rev )
        stdout.WriteLine(str)
        
        
        
let mySol = new Sol()
mySol.Solve()
0