結果

問題 No.2092 Conjugation
ユーザー tnogamitnogami
提出日時 2022-10-08 13:48:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 154 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 19,808 KB
最終ジャッジ日時 2023-09-04 18:20:46
合計ジャッジ時間 3,249 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,996 KB
testcase_01 AC 16 ms
7,896 KB
testcase_02 AC 15 ms
7,896 KB
testcase_03 AC 16 ms
7,888 KB
testcase_04 AC 16 ms
7,976 KB
testcase_05 AC 16 ms
7,956 KB
testcase_06 AC 16 ms
7,956 KB
testcase_07 AC 80 ms
10,880 KB
testcase_08 AC 144 ms
16,128 KB
testcase_09 AC 128 ms
14,672 KB
testcase_10 AC 128 ms
15,080 KB
testcase_11 AC 130 ms
15,060 KB
testcase_12 AC 127 ms
14,560 KB
testcase_13 AC 115 ms
14,160 KB
testcase_14 AC 111 ms
13,900 KB
testcase_15 AC 125 ms
14,796 KB
testcase_16 AC 152 ms
17,820 KB
testcase_17 AC 146 ms
19,716 KB
testcase_18 AC 154 ms
19,808 KB
testcase_19 AC 31 ms
9,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
N = int(input())
A = list(map(int,input().split()))
A.sort()
ans = []
for i in range(A[-1]):
    idx = bisect.bisect(A, i)
    ans.append(N-idx)

print(*ans)
0