結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
tak
|
| 提出日時 | 2018-04-12 09:26:46 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 720 ms / 2,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 6,681 ms |
| コンパイル使用メモリ | 188,416 KB |
| 実行使用メモリ | 49,360 KB |
| 最終ジャッジ日時 | 2024-06-26 21:21:31 |
| 合計ジャッジ時間 | 16,039 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (233 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 a = Array.init N (fun _ -> stdin.ReadLine() |> int)
let aHead = a |> Array.head
a
|> Array.tail
|> Array.scan (fun acc x ->
if x > aHead then acc + 1 else acc) 1
|> Array.iter (printfn "%i")
tak