結果

問題 No.504 ゲーム大会(ランキング)
ユーザー nobigomunobigomu
提出日時 2018-06-04 01:47:49
言語 F#
(F# 4.0)
結果
AC  
実行時間 566 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 3,163 ms
コンパイル使用メモリ 154,344 KB
実行使用メモリ 31,100 KB
最終ジャッジ日時 2023-09-12 22:02:23
合計ジャッジ時間 9,541 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
22,892 KB
testcase_01 AC 81 ms
23,168 KB
testcase_02 AC 82 ms
24,944 KB
testcase_03 AC 82 ms
24,976 KB
testcase_04 AC 81 ms
22,908 KB
testcase_05 AC 81 ms
24,960 KB
testcase_06 AC 81 ms
23,004 KB
testcase_07 AC 547 ms
27,084 KB
testcase_08 AC 566 ms
29,096 KB
testcase_09 AC 546 ms
27,088 KB
testcase_10 AC 534 ms
27,248 KB
testcase_11 AC 539 ms
29,012 KB
testcase_12 AC 551 ms
27,116 KB
testcase_13 AC 541 ms
31,100 KB
testcase_14 AC 549 ms
27,076 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let p,r = printfn "%d",stdin.ReadLine >> int
let rec iter n a i =
    if n>1 then
        let t = if a<(r ()) then i+1 else i
        p t
        iter (n-1) a t
let f a =
    p a
    iter (r ()) (r ()) a
f 1
0