結果
| 問題 |
No.1904 Never giving up!
|
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-06-14 04:06:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 53,540 KB |
| 最終ジャッジ日時 | 2024-10-01 19:46:21 |
| 合計ジャッジ時間 | 1,384 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
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(round(ans))
lllllll88938494