結果

問題 No.564 背の順
コンテスト
ユーザー fagfagdfa
提出日時 2017-09-08 22:28:30
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 266 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 131 ms
コンパイル使用メモリ 77,240 KB
最終ジャッジ日時 2025-12-04 00:38:24
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

h, n = map(int, raw_input().split())

ct = 1

for i in range(n - 1):
    if h < input():
        ct += 1

if ct % 10 == 1:
    print str(ct) + "st"
elif ct % 10 == 2:
    print str(ct) + "nd"
elif ct % 10 == 3:
    print str(ct) + "rd"
else:
    print str(ct) + "th"
0