結果

問題 No.411 昇順昇順ソート
ユーザー kuuso1kuuso1
提出日時 2016-08-19 09:47:33
言語 F#
(F# 4.0)
結果
AC  
実行時間 352 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 13,989 ms
コンパイル使用メモリ 206,348 KB
実行使用メモリ 34,868 KB
最終ジャッジ日時 2024-04-25 07:58:08
合計ジャッジ時間 20,439 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 344 ms
34,076 KB
testcase_01 AC 347 ms
34,728 KB
testcase_02 AC 339 ms
33,988 KB
testcase_03 AC 347 ms
34,864 KB
testcase_04 AC 344 ms
33,844 KB
testcase_05 AC 344 ms
34,868 KB
testcase_06 AC 345 ms
34,604 KB
testcase_07 AC 342 ms
34,588 KB
testcase_08 AC 350 ms
33,840 KB
testcase_09 AC 349 ms
34,180 KB
testcase_10 AC 347 ms
34,616 KB
testcase_11 AC 342 ms
34,740 KB
testcase_12 AC 343 ms
34,480 KB
testcase_13 AC 342 ms
34,488 KB
testcase_14 AC 342 ms
34,864 KB
testcase_15 AC 344 ms
34,608 KB
testcase_16 AC 343 ms
34,868 KB
testcase_17 AC 343 ms
34,480 KB
testcase_18 AC 347 ms
34,612 KB
testcase_19 AC 343 ms
34,484 KB
testcase_20 AC 343 ms
34,572 KB
testcase_21 AC 343 ms
34,740 KB
testcase_22 AC 348 ms
34,600 KB
testcase_23 AC 352 ms
34,720 KB
testcase_24 AC 343 ms
34,744 KB
testcase_25 AC 346 ms
34,360 KB
testcase_26 AC 340 ms
34,180 KB
testcase_27 AC 341 ms
33,836 KB
testcase_28 AC 343 ms
34,612 KB
testcase_29 AC 350 ms
34,608 KB
testcase_30 AC 342 ms
34,716 KB
testcase_31 AC 338 ms
34,356 KB
testcase_32 AC 343 ms
34,864 KB
testcase_33 AC 350 ms
33,972 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (299 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.fs(5,13): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '[|_; _; _|]' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  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 [|N;K|] = stdin.ReadLine().Split() |> Array.map int
        let f n k =
            match (n,k) with
            | (_,1) -> (1 <<< (n-1) ) - n
            | (_,_) -> (1 <<< (n-k) )
        
        f N K |> printfn "%d"
        
let mySol = new Sol()
mySol.Solve()
0