結果
問題 | No.564 背の順 |
ユーザー | StarMatyan |
提出日時 | 2018-12-15 17:16:12 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 11,888 KB |
実行使用メモリ | 10,080 KB |
最終ジャッジ日時 | 2023-10-25 21:54:39 |
合計ジャッジ時間 | 1,141 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
10,080 KB |
testcase_01 | AC | 30 ms
10,080 KB |
testcase_02 | AC | 28 ms
10,080 KB |
testcase_03 | WA | - |
testcase_04 | AC | 26 ms
10,080 KB |
testcase_05 | AC | 26 ms
10,080 KB |
testcase_06 | AC | 26 ms
10,080 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 27 ms
10,080 KB |
testcase_10 | AC | 27 ms
10,080 KB |
testcase_11 | AC | 24 ms
10,080 KB |
ソースコード
first =input(); firstdata = first.split(" "); sintyo = int(firstdata[0]); num = int(firstdata[1])-1; result=1; for inputer in range(num): hikaku = int(input()); if hikaku > sintyo: result = result+1; if result==1: result = str(result)+"st"; elif result ==2: result = str(result)+"nd"; elif result ==3: result = str(result)+"rd"; else: result = str(result)+"th"; print(result);