結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
|
提出日時 | 2023-08-01 20:04:55 |
言語 | F# (F# 4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 7,093 ms |
コンパイル使用メモリ | 189,304 KB |
実行使用メモリ | 66,348 KB |
最終ジャッジ日時 | 2024-10-11 11:15:37 |
合計ジャッジ時間 | 14,455 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 7 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (226 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/
ソースコード
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"