結果
問題 |
No.564 背の順
|
ユーザー |
|
提出日時 | 2018-03-13 23:28:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-24 06:54:15 |
合計ジャッジ時間 | 1,116 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 3 |
ソースコード
#-*- coding:utf-8 -*- if __name__ == "__main__": H, N = list(map(int, input().split())) ans = 1 for i in range(N-1): if H < int(input()): ans += 1 if ans == 1: print("{}st".format(ans)) elif ans == 2: print("{}nd".format(ans)) elif ans == 3: print("{}rd".format(ans)) else: print("{}th".format(ans))