結果

問題 No.1904 Never giving up!
ユーザー ああいいああいい
提出日時 2022-04-15 21:28:56
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 86,556 KB
実行使用メモリ 71,708 KB
最終ジャッジ日時 2023-08-26 07:32:21
合計ジャッジ時間 2,383 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
71,360 KB
testcase_01 AC 82 ms
71,564 KB
testcase_02 AC 82 ms
71,516 KB
testcase_03 AC 81 ms
71,360 KB
testcase_04 AC 80 ms
71,300 KB
testcase_05 AC 82 ms
71,708 KB
testcase_06 AC 84 ms
71,480 KB
testcase_07 AC 83 ms
71,396 KB
testcase_08 AC 83 ms
71,516 KB
testcase_09 AC 80 ms
71,452 KB
testcase_10 AC 78 ms
71,452 KB
testcase_11 AC 80 ms
71,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

from collections import defaultdict
d = defaultdict(int)
A = list(map(int,input().split()))
for a in A:
    d[a] += 1
ans = 1
for i in range(1,N+1):
    ans *= i
for v in d.values():
    for i in  range(1,v+1):
        ans //= i
print(ans)
0