結果

問題 No.1904 Never giving up!
ユーザー a aa a
提出日時 2022-10-02 00:54:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,748 KB
最終ジャッジ日時 2023-08-25 20:57:48
合計ジャッジ時間 1,163 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,744 KB
testcase_01 AC 18 ms
8,600 KB
testcase_02 AC 18 ms
8,748 KB
testcase_03 AC 18 ms
8,740 KB
testcase_04 AC 18 ms
8,552 KB
testcase_05 AC 18 ms
8,716 KB
testcase_06 AC 18 ms
8,628 KB
testcase_07 AC 18 ms
8,668 KB
testcase_08 AC 18 ms
8,648 KB
testcase_09 AC 18 ms
8,668 KB
testcase_10 AC 18 ms
8,580 KB
testcase_11 AC 18 ms
8,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import collections 
n=int(input())
x=list(map(int,input().split()))
y=collections.Counter(x)
z=list(map(int,list(y.values())))
a=(math.factorial (n))
for i in z:
    a/=(math.factorial(i))
print(int(a))
0