結果

問題 No.1904 Never giving up!
ユーザー lllllll88938494lllllll88938494
提出日時 2022-06-14 04:05:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 53,432 KB
最終ジャッジ日時 2024-04-09 19:32:53
合計ジャッジ時間 1,428 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,356 KB
testcase_01 AC 37 ms
51,948 KB
testcase_02 AC 35 ms
51,756 KB
testcase_03 AC 34 ms
52,676 KB
testcase_04 AC 33 ms
52,556 KB
testcase_05 AC 35 ms
51,908 KB
testcase_06 AC 35 ms
53,032 KB
testcase_07 AC 34 ms
52,876 KB
testcase_08 WA -
testcase_09 AC 35 ms
52,552 KB
testcase_10 WA -
testcase_11 AC 34 ms
51,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))      
    
    
0