結果
| 問題 | No.1904 Never giving up! |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2022-04-15 21:28:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 85,388 KB |
| 実行使用メモリ | 58,240 KB |
| 最終ジャッジ日時 | 2026-05-30 17:12:48 |
| 合計ジャッジ時間 | 1,289 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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