結果
| 問題 | No.1904 Never giving up! |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2022-10-25 21:03:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 53,760 KB |
| 最終ジャッジ日時 | 2026-03-25 01:40:35 |
| 合計ジャッジ時間 | 1,616 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))
ntuda