結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
fagfagdfa
|
| 提出日時 | 2017-09-08 22:28:30 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 2,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-11-07 12:05:28 |
| 合計ジャッジ時間 | 1,217 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
h, n = map(int, raw_input().split())
ct = 1
for i in range(n - 1):
if h < input():
ct += 1
if ct % 10 == 1:
print str(ct) + "st"
elif ct % 10 == 2:
print str(ct) + "nd"
elif ct % 10 == 3:
print str(ct) + "rd"
else:
print str(ct) + "th"
fagfagdfa