結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2017-09-10 11:16:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 629 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,232 KB |
| 最終ジャッジ日時 | 2026-05-07 20:57:46 |
| 合計ジャッジ時間 | 3,664 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
h,n=map(int,input().split()) rank=sorted([-h]+[-int(input()) for _ in range(n-1)]).index(-h) f=lambda x:rank%10<x print(str(rank+1)+['th','rd','nd','st'][f(1)+f(2)+f(3)])
compass19