結果
問題 | No.292 芸名 |
ユーザー |
![]() |
提出日時 | 2016-08-17 23:55:21 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 12,291 ms |
コンパイル使用メモリ | 189,592 KB |
実行使用メモリ | 29,552 KB |
最終ジャッジ日時 | 2024-11-07 19:05:57 |
合計ジャッジ時間 | 12,025 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (286 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 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()