結果

問題 No.1904 Never giving up!
ユーザー ntudantuda
提出日時 2022-10-25 21:03:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 71,788 KB
最終ジャッジ日時 2023-09-16 18:14:23
合計ジャッジ時間 3,080 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
71,732 KB
testcase_01 AC 87 ms
71,608 KB
testcase_02 AC 88 ms
71,688 KB
testcase_03 AC 93 ms
71,732 KB
testcase_04 AC 89 ms
71,512 KB
testcase_05 AC 85 ms
71,608 KB
testcase_06 WA -
testcase_07 AC 87 ms
71,560 KB
testcase_08 AC 88 ms
71,596 KB
testcase_09 AC 86 ms
71,604 KB
testcase_10 AC 88 ms
71,684 KB
testcase_11 AC 89 ms
71,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(input())
A = list(map(int,input().split()))
D = list(Counter(A).items())
D.sort(reverse= True)
ans = 1
for x,c in D:
    while c > 0:
        ans *= N / c
        c -= 1
        N -= 1
print(int(ans))
0