結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-01 10:45:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,448 KB |
| 最終ジャッジ日時 | 2026-04-06 19:46:15 |
| 合計ジャッジ時間 | 4,247 ms |
|
ジャッジサーバーID (参考情報) |
judge-tmp_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
from bisect import bisect_left h, n = map(int, input().split()) hs = [int(input()) for _ in range(n - 1)] hs.sort() i = bisect_left(hs, h) ans = n - i end = ["th", "st", "nd", "rd"] + ["th"] * 6 print(ans, end[ans % 10], sep="")