結果
問題 | No.2092 Conjugation |
ユーザー | Theta |
提出日時 | 2022-10-11 16:25:28 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 404 bytes |
コンパイル時間 | 806 ms |
コンパイル使用メモリ | 10,892 KB |
実行使用メモリ | 23,556 KB |
最終ジャッジ日時 | 2023-09-07 17:53:31 |
合計ジャッジ時間 | 4,179 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 18 ms
8,628 KB |
testcase_02 | AC | 18 ms
8,436 KB |
testcase_03 | AC | 18 ms
8,580 KB |
testcase_04 | AC | 18 ms
8,596 KB |
testcase_05 | AC | 18 ms
8,440 KB |
testcase_06 | WA | - |
testcase_07 | AC | 68 ms
11,224 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 111 ms
19,976 KB |
testcase_18 | AC | 115 ms
23,556 KB |
testcase_19 | AC | 37 ms
9,740 KB |
ソースコード
from collections import Counter def main(): N = int(input()) A = list(map(int, input().split())) A_counter = Counter(A) column_nums = [] checked_row = 0 for column in range(1, A[0]+1): column_nums.append(N-checked_row) if ctr := A_counter.get(column) is not None: checked_row += ctr print(*column_nums) if __name__ == "__main__": main()