結果

問題 No.73 helloworld
ユーザー threepipes_sthreepipes_s
提出日時 2015-12-31 15:00:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 447 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 10,864 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-08-22 21:38:41
合計ジャッジ時間 1,275 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,880 KB
testcase_01 AC 16 ms
7,916 KB
testcase_02 AC 15 ms
7,876 KB
testcase_03 AC 16 ms
7,940 KB
testcase_04 AC 15 ms
7,880 KB
testcase_05 AC 15 ms
7,972 KB
testcase_06 AC 16 ms
7,744 KB
testcase_07 AC 16 ms
7,772 KB
testcase_08 AC 16 ms
7,876 KB
testcase_09 AC 16 ms
7,756 KB
testcase_10 AC 16 ms
7,916 KB
testcase_11 AC 16 ms
7,920 KB
testcase_12 AC 16 ms
7,828 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

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]*alp[22]*alp[3]*alp[17]
ans = 0
for i in range(alp[11]-1):
    ans = max(ans, res*comb(alp[11]-i, 2)*i)

res = ans
for i in range(alp[14]):
    ans = max(ans, res*(alp[14]-i)*i)

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