結果

問題 No.1904 Never giving up!
ユーザー SidewaysOwlSidewaysOwl
提出日時 2022-04-15 22:06:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,244 KB
実行使用メモリ 72,048 KB
最終ジャッジ日時 2023-08-26 07:59:58
合計ジャッジ時間 2,268 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
71,836 KB
testcase_01 AC 92 ms
71,848 KB
testcase_02 AC 94 ms
71,692 KB
testcase_03 AC 94 ms
71,832 KB
testcase_04 AC 95 ms
71,488 KB
testcase_05 AC 95 ms
72,048 KB
testcase_06 AC 95 ms
71,700 KB
testcase_07 AC 96 ms
71,680 KB
testcase_08 AC 94 ms
71,492 KB
testcase_09 AC 94 ms
71,812 KB
testcase_10 AC 94 ms
71,408 KB
testcase_11 AC 93 ms
71,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
from collections import Counter
n = int(input())
a = list(map(int,input().split()))
c = Counter(a)
ans = math.factorial(n)
for key in c.keys():
    ans//= math.factorial( c[key])
print(ans)
0