結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
53,252 KB
testcase_01 AC 31 ms
52,892 KB
testcase_02 AC 31 ms
53,300 KB
testcase_03 AC 31 ms
52,724 KB
testcase_04 AC 31 ms
52,812 KB
testcase_05 AC 31 ms
53,656 KB
testcase_06 AC 30 ms
53,148 KB
testcase_07 AC 31 ms
52,276 KB
testcase_08 AC 31 ms
52,760 KB
testcase_09 AC 32 ms
53,296 KB
testcase_10 AC 31 ms
51,992 KB
testcase_11 AC 30 ms
52,556 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(round(ans))      
    
    
0