結果
問題 |
No.564 背の順
|
ユーザー |
![]() |
提出日時 | 2020-03-31 00:09:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 593 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-23 07:39:46 |
合計ジャッジ時間 | 1,018 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() h,n=map(int,input().split()) ans=1 for _ in range(n-1): if int(input())>h: ans+=1 if ans%10==1: m="st" elif ans%10==2: m="nd" elif ans%10==3: m="rd" else: m="th" print(str(ans)+m)