結果

問題 No.504 ゲーム大会(ランキング)
ユーザー toshiro_yanagi
提出日時 2018-06-11 20:12:26
言語 Nim
(2.2.0)
結果
AC  
実行時間 181 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 3,092 ms
コンパイル使用メモリ 65,952 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 13:43:58
合計ジャッジ時間 6,293 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils
proc getInt: int = stdin.readLine.parseInt

let N = getInt()

var
  a = newSeqWith(0, 0)
  rnk = 1

for i in 0 ..< N:
  a.add getInt()

for a_i in a:
  if a[0] < a_i:
    rnk += 1

  echo rnk
0