結果

問題 No.504 ゲーム大会(ランキング)
ユーザー liny_tail
提出日時 2020-09-05 15:29:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 333 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 14,848 KB
最終ジャッジ日時 2024-11-28 16:38:03
合計ジャッジ時間 3,742 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input().strip())

cnt = 1
lst = []

for i in range(N):
  a = int(input().strip())
  
  if i == 0:
    b = a
  else:
    if a > b:
      cnt += 1
  
  lst.append(cnt)

for i in lst:
  print(i)
0