結果
| 問題 | No.1904 Never giving up! |
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-06-14 04:06:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 51,840 KB |
| 最終ジャッジ日時 | 2026-04-18 02:13:52 |
| 合計ジャッジ時間 | 1,313 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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