結果

問題 No.292 芸名
ユーザー vain0vain0
提出日時 2015-10-23 22:25:28
言語 F#
(.NET 7)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 332 bytes
コンパイル時間 5,312 ms
コンパイル使用メモリ 163,660 KB
実行使用メモリ 24,780 KB
最終ジャッジ日時 2023-09-30 00:13:19
合計ジャッジ時間 6,450 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
22,856 KB
testcase_01 AC 66 ms
22,688 KB
testcase_02 AC 69 ms
22,668 KB
testcase_03 AC 70 ms
22,776 KB
testcase_04 AC 67 ms
22,720 KB
testcase_05 AC 69 ms
24,708 KB
testcase_06 AC 68 ms
22,708 KB
testcase_07 AC 69 ms
24,708 KB
testcase_08 AC 69 ms
24,780 KB
testcase_09 AC 71 ms
22,796 KB
testcase_10 AC 71 ms
22,700 KB
testcase_11 AC 70 ms
24,656 KB
testcase_12 AC 67 ms
22,744 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

/home/judge/data/code/Main.fs(6,7): warning FS0025: Incomplete pattern matches on this expression. For example, the value '[|_; _; _; _|]' may indicate a case not covered by the pattern(s).

ソースコード

diff #

open System
open System.Collections.Generic

[<EntryPoint>]
let main argv =
  let [| s; t; u |] = Console.ReadLine().Split(' ')
  let t = int t
  let u = int u

  let result =
    let s' = s.Remove(t, 1)
    if t <> u then
      s'.Remove((if t < u then u - 1 else u), 1)
    else
      s'

  printfn "%s" result

  //exit code
  0
0