結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,708 KB
testcase_01 AC 14 ms
7,752 KB
testcase_02 AC 14 ms
7,872 KB
testcase_03 WA -
testcase_04 AC 13 ms
7,784 KB
testcase_05 AC 14 ms
7,752 KB
testcase_06 AC 13 ms
7,892 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 13 ms
7,864 KB
testcase_10 AC 13 ms
7,700 KB
testcase_11 AC 13 ms
7,776 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('{0}th'.format(i+1))
0