結果

問題 No.504 ゲーム大会(ランキング)
ユーザー ch1channnch1channn
提出日時 2022-12-25 21:46:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 375 bytes
コンパイル時間 573 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 80,724 KB
最終ジャッジ日時 2023-08-12 12:02:54
合計ジャッジ時間 4,132 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,264 KB
testcase_01 AC 59 ms
70,980 KB
testcase_02 AC 60 ms
71,240 KB
testcase_03 AC 59 ms
71,040 KB
testcase_04 AC 60 ms
70,840 KB
testcase_05 AC 58 ms
71,032 KB
testcase_06 AC 59 ms
71,176 KB
testcase_07 AC 164 ms
80,296 KB
testcase_08 AC 125 ms
80,272 KB
testcase_09 AC 126 ms
80,388 KB
testcase_10 AC 126 ms
80,104 KB
testcase_11 AC 128 ms
80,324 KB
testcase_12 AC 124 ms
80,724 KB
testcase_13 AC 161 ms
80,372 KB
testcase_14 AC 174 ms
80,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
	
n = int(input())
rank = 1
point = []
for i in range(n):
	p = int(input())
	point.append(p)
	
k = point[0]
for j in range(n):
	if k < point[j]:
		rank += 1
	print(rank)
	
0