結果
問題 | No.1904 Never giving up! |
ユーザー |
![]() |
提出日時 | 2022-04-16 16:05:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 57,984 KB |
最終ジャッジ日時 | 2024-12-25 20:17:53 |
合計ジャッジ時間 | 1,508 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
import math N = int(input()) A = list(map(int, input().split())) cnt = [0]*(N+1) for v in A: cnt[v] += 1 T = math.factorial(N) B = 1 for n in cnt: B *= math.factorial(n) print(T//B)