結果
問題 | No.1904 Never giving up! |
ユーザー |
|
提出日時 | 2022-06-16 22:35:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 82,332 KB |
実行使用メモリ | 59,392 KB |
最終ジャッジ日時 | 2024-10-07 06:22:54 |
合計ジャッジ時間 | 1,570 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
import sys import math input = lambda: sys.stdin.readline().rstrip() from collections import Counter ################## n = int(input()) A = list(map(int, input().split())) ans = math.factorial(n) for v in Counter(A).values(): ans //= math.factorial(v) print(ans)