結果

問題 No.504 ゲーム大会(ランキング)
ユーザー liny_tailliny_tail
提出日時 2020-09-05 15:29:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 256 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 12,272 KB
最終ジャッジ日時 2023-08-19 03:25:53
合計ジャッジ時間 3,541 ms
ジャッジサーバーID
(参考情報)
judge14 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
7,824 KB
testcase_01 AC 13 ms
7,812 KB
testcase_02 AC 13 ms
7,812 KB
testcase_03 AC 12 ms
7,952 KB
testcase_04 AC 14 ms
7,856 KB
testcase_05 AC 14 ms
7,748 KB
testcase_06 AC 13 ms
7,864 KB
testcase_07 AC 246 ms
10,856 KB
testcase_08 AC 246 ms
10,100 KB
testcase_09 AC 249 ms
10,752 KB
testcase_10 AC 240 ms
9,320 KB
testcase_11 AC 246 ms
11,584 KB
testcase_12 AC 256 ms
12,272 KB
testcase_13 AC 253 ms
9,168 KB
testcase_14 AC 247 ms
10,968 KB
権限があれば一括ダウンロードができます

ソースコード

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