結果

問題 No.73 helloworld
ユーザー threepipes_sthreepipes_s
提出日時 2015-12-31 14:51:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 11,916 KB
実行使用メモリ 10,128 KB
最終ジャッジ日時 2023-10-19 12:51:04
合計ジャッジ時間 1,523 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 30 ms
10,116 KB
testcase_02 AC 30 ms
10,116 KB
testcase_03 AC 30 ms
10,116 KB
testcase_04 AC 30 ms
10,116 KB
testcase_05 WA -
testcase_06 AC 32 ms
10,116 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 30 ms
10,116 KB
testcase_13 AC 31 ms
10,116 KB
権限があれば一括ダウンロードができます

ソースコード

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