結果

問題 No.411 昇順昇順ソート
ユーザー kuuso1kuuso1
提出日時 2016-08-19 09:47:33
言語 F#
(.NET 7)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 4,211 ms
コンパイル使用メモリ 170,576 KB
実行使用メモリ 24,912 KB
最終ジャッジ日時 2023-08-07 14:14:45
合計ジャッジ時間 7,954 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
24,844 KB
testcase_01 AC 82 ms
22,728 KB
testcase_02 AC 82 ms
22,800 KB
testcase_03 AC 81 ms
24,832 KB
testcase_04 AC 81 ms
24,832 KB
testcase_05 AC 81 ms
22,812 KB
testcase_06 AC 81 ms
24,832 KB
testcase_07 AC 82 ms
24,832 KB
testcase_08 AC 82 ms
20,672 KB
testcase_09 AC 81 ms
22,784 KB
testcase_10 AC 81 ms
22,844 KB
testcase_11 AC 82 ms
24,912 KB
testcase_12 AC 81 ms
22,872 KB
testcase_13 AC 81 ms
22,824 KB
testcase_14 AC 81 ms
22,836 KB
testcase_15 AC 81 ms
24,900 KB
testcase_16 AC 81 ms
24,820 KB
testcase_17 AC 81 ms
22,784 KB
testcase_18 AC 81 ms
24,852 KB
testcase_19 AC 81 ms
22,992 KB
testcase_20 AC 81 ms
22,908 KB
testcase_21 AC 81 ms
24,908 KB
testcase_22 AC 80 ms
24,852 KB
testcase_23 AC 80 ms
22,856 KB
testcase_24 AC 80 ms
22,732 KB
testcase_25 AC 81 ms
24,764 KB
testcase_26 AC 81 ms
22,924 KB
testcase_27 AC 81 ms
22,920 KB
testcase_28 AC 81 ms
22,784 KB
testcase_29 AC 81 ms
24,852 KB
testcase_30 AC 82 ms
24,840 KB
testcase_31 AC 81 ms
22,788 KB
testcase_32 AC 81 ms
22,788 KB
testcase_33 AC 81 ms
22,988 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(5,13): 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
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