結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-04-17 16:56:41 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WJ
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 346 bytes |
| 記録 | |
| 最終ジャッジ日時 | 2026-09-12 13:36:49 |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
ソースコード
import sys
input = sys.stdin.readline
H,N=map(int,input().split())
ANS=1
for i in range(N-1):
h=int(input())
if h>H:
ANS+=1
if ANS%10==1:
print(ANS,end="")
print("st")
elif ANS%10==2:
print(ANS,end="")
print("nd")
elif ANS%10==3:
print(ANS,end="")
print("rd")
else:
print(ANS,end="")
print("th")
titia