結果
問題 | No.564 背の順 |
ユーザー | Liny52551272 |
提出日時 | 2019-11-13 14:24:24 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 11,808 KB |
実行使用メモリ | 10,012 KB |
最終ジャッジ日時 | 2023-10-21 19:41:55 |
合計ジャッジ時間 | 1,212 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 31 ms
9,988 KB |
testcase_01 | AC | 32 ms
9,988 KB |
testcase_02 | AC | 29 ms
9,988 KB |
testcase_03 | WA | - |
testcase_04 | AC | 29 ms
9,988 KB |
testcase_05 | AC | 29 ms
9,988 KB |
testcase_06 | AC | 30 ms
9,988 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 28 ms
9,988 KB |
testcase_10 | AC | 28 ms
9,988 KB |
testcase_11 | AC | 29 ms
9,988 KB |
ソースコード
H, N = input().strip().split(' ') H, N = int(H), int(N) high = 1 for i in range(N - 1): tmp = int(input().strip()) if tmp > H: high += 1 if high == 1: tmp = '1st' elif high == 2: tmp = '2nd' elif high == 3: tmp = '3rd' else: tmp = str(high) + 'th' print(tmp)