結果

問題 No.73 helloworld
ユーザー threepipes_sthreepipes_s
提出日時 2015-12-31 14:51:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-19 08:56:55
合計ジャッジ時間 1,088 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

def comb(n, r):
    res = 1
    if(n-r<r): r = n-r
    for i in range(r):
        res *= n-i
    for i in range(r):
        res /= i+1
    return int(res)

alp = []
for i in range(26):
    alp.append(int(input()))

res = alp[7]*alp[4]*int((alp[14]+1)/2)*alp[22]*int(alp[14]/2)*alp[3]
ans = 0
for i in range(alp[11]-1):
    ans = max(ans, res*comb(alp[11]-i, 2)*i)

if(alp[11]<3): ans = 0
print(ans)
0