結果
| 問題 | 
                            No.1904 Never giving up!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             lllllll88938494
                         | 
                    
| 提出日時 | 2022-06-14 04:05:16 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 282 bytes | 
| コンパイル時間 | 895 ms | 
| コンパイル使用メモリ | 82,528 KB | 
| 実行使用メモリ | 53,112 KB | 
| 最終ジャッジ日時 | 2024-10-01 19:44:25 | 
| 合計ジャッジ時間 | 1,616 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 WA * 2 | 
ソースコード
n=int(input())
ns=list(map(int,input().split()))
ns.sort()
cnt=1
bunbo=n
ans=1
for i in range(1,n):
    if ns[i-1] == ns[i]:
        cnt+=1
        continue
    while cnt:
        ans *= 1/(cnt/bunbo)
        cnt-=1
        bunbo-=1
    cnt+=1
    
print(int(ans))      
    
    
            
            
            
        
            
lllllll88938494