結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
なかおん
|
| 提出日時 | 2017-09-13 22:08:23 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-07 20:06:30 |
| 合計ジャッジ時間 | 1,068 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
i = input().rstrip().split(" ") #取得
#身長0 人数i[1] - 1
n = 0
for k in range(int(i[1]) - 1):
s = int(input())
if int(i[0]) < s:
n += 1
if n == 0:
print("1st")
elif n == 1:
print("2nd")
elif n == 2:
print("3rd")
else:
print(str(int(n) + 1) + "th")
なかおん