結果
| 問題 |
No.1904 Never giving up!
|
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2022-04-15 21:28:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 1,878 ms |
| コンパイル使用メモリ | 81,872 KB |
| 実行使用メモリ | 58,368 KB |
| 最終ジャッジ日時 | 2024-12-24 23:27:39 |
| 合計ジャッジ時間 | 1,474 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
from math import factorial
from itertools import groupby
n = int(input())
f = 1
for x in (len(list(x)) for (_, x) in groupby(sorted(map(int, input().split())))):
f *= factorial(x)
print(factorial(n) // f)
Kude