結果

問題 No.564 背の順
ユーザー RyupeRyupe
提出日時 2018-01-19 13:10:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-08-25 23:55:57
合計ジャッジ時間 1,232 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,704 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 17 ms
7,932 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,848 KB
testcase_10 WA -
testcase_11 AC 16 ms
7,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,N = map(int,input().split(' '))
Hn = [int(input()) for i in range(N-1)]
Hn.append(H)
Hn.sort(reverse=True)
for i in range(N):
	if Hn[i] != H:
		pass
	else:
		if i == 0:
			print('1st')
		elif i == 1:
			print('2nd')
		elif i == 2:
			print('3rd')
		elif i >= 3:
			print(i+1,'th')
0