結果

問題 No.1904 Never giving up!
ユーザー 👑 H20H20
提出日時 2022-04-15 21:26:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 71,780 KB
最終ジャッジ日時 2023-08-26 07:29:14
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
71,584 KB
testcase_01 AC 87 ms
71,752 KB
testcase_02 AC 88 ms
71,432 KB
testcase_03 AC 83 ms
71,460 KB
testcase_04 AC 83 ms
71,780 KB
testcase_05 AC 85 ms
71,764 KB
testcase_06 AC 83 ms
71,616 KB
testcase_07 AC 82 ms
71,560 KB
testcase_08 AC 85 ms
71,480 KB
testcase_09 AC 84 ms
71,568 KB
testcase_10 AC 81 ms
71,532 KB
testcase_11 AC 87 ms
71,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import collections
N = int(input())
A = list(map(int, input().split()))
ans = math.factorial(N)
for k,v in collections.Counter(A).items():
    ans//=math.factorial(v)
print(ans)
0