結果

問題 No.564 背の順
ユーザー matrie
提出日時 2020-11-28 04:06:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-12 21:58:18
合計ジャッジ時間 1,432 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

h,m = map(int, input().split())
x = 1
for i in range(m-1):
	if h < int(input()): x += 1

s = ["st","nd","rd","th"]
print(x, s[min(x%10,4)-1], sep='')
0