結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-09-15 21:35:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-07 22:52:35 |
| 合計ジャッジ時間 | 1,075 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 WA * 7 |
ソースコード
# your code goes here
H,N=(int(i) for i in input().split())
c=0
for i in range(N-1):
# print(c)
g=int(input())
if g>H:
c+=1
S=str(c+1)
S=S[-1]
if S=="1":
d="st"
elif S=="2":
d="nd"
elif S=="3":
d="rd"
else:
d="th"
print(S+d)
rocoder