結果
問題 |
No.1904 Never giving up!
|
ユーザー |
![]() |
提出日時 | 2022-10-25 21:03:44 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 216 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 55,564 KB |
最終ジャッジ日時 | 2024-07-03 17:54:50 |
合計ジャッジ時間 | 1,617 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 1 |
ソースコード
from collections import Counter N = int(input()) A = list(map(int,input().split())) D = list(Counter(A).items()) D.sort(reverse= True) ans = 1 for x,c in D: while c > 0: ans *= N / c c -= 1 N -= 1 print(int(ans))