結果

問題 No.504 ゲーム大会(ランキング)
ユーザー natoriusannatoriusan
提出日時 2023-08-01 20:04:55
言語 F#
(F# 4.0)
結果
TLE  
実行時間 -
コード長 329 bytes
コンパイル時間 8,672 ms
コンパイル使用メモリ 189,688 KB
実行使用メモリ 64,904 KB
最終ジャッジ日時 2024-04-19 19:04:55
合計ジャッジ時間 14,367 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 309 ms
37,028 KB
testcase_01 AC 311 ms
40,212 KB
testcase_02 AC 303 ms
34,644 KB
testcase_03 AC 309 ms
34,764 KB
testcase_04 AC 304 ms
34,640 KB
testcase_05 AC 307 ms
33,992 KB
testcase_06 AC 304 ms
34,632 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (245 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/

ソースコード

diff #

let n = stdin.ReadLine () |> int

let mutable a = Array.empty
for i in 0..n-1 do
    a <- Array.append a [|i, stdin.ReadLine () |> int|]
    a
        |> Array.sortWith (fun (n1, s1) (n2, s2) -> if s1 = s2 then compare n1 n2 else compare s2 s1)
        |> Array.findIndex (fst >> ((=)0))
        |> ((+)1)
        |> printfn "%d"
0