結果
問題 | No.2092 Conjugation |
ユーザー | Theta |
提出日時 | 2022-10-11 16:29:02 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 112 ms / 2,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 240 ms |
コンパイル使用メモリ | 10,668 KB |
実行使用メモリ | 23,612 KB |
最終ジャッジ日時 | 2023-09-07 17:56:08 |
合計ジャッジ時間 | 2,824 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 18 ms
8,492 KB |
testcase_01 | AC | 18 ms
8,616 KB |
testcase_02 | AC | 18 ms
8,468 KB |
testcase_03 | AC | 18 ms
8,636 KB |
testcase_04 | AC | 18 ms
8,616 KB |
testcase_05 | AC | 18 ms
8,456 KB |
testcase_06 | AC | 18 ms
8,668 KB |
testcase_07 | AC | 67 ms
11,244 KB |
testcase_08 | AC | 100 ms
19,064 KB |
testcase_09 | AC | 84 ms
16,320 KB |
testcase_10 | AC | 87 ms
16,880 KB |
testcase_11 | AC | 87 ms
16,680 KB |
testcase_12 | AC | 84 ms
16,264 KB |
testcase_13 | AC | 76 ms
14,668 KB |
testcase_14 | AC | 74 ms
14,284 KB |
testcase_15 | AC | 83 ms
15,884 KB |
testcase_16 | AC | 108 ms
20,624 KB |
testcase_17 | AC | 108 ms
20,028 KB |
testcase_18 | AC | 112 ms
23,612 KB |
testcase_19 | AC | 37 ms
9,776 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()