結果
| 問題 | No.1904 Never giving up! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-16 22:35:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 2,000 ms |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 59,452 KB |
| 最終ジャッジ日時 | 2026-04-23 23:56:18 |
| 合計ジャッジ時間 | 3,113 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)