結果

問題 No.73 helloworld
ユーザー kohei2019kohei2019
提出日時 2021-05-22 14:54:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,608 KB
最終ジャッジ日時 2024-04-18 18:14:23
合計ジャッジ時間 1,398 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,872 KB
testcase_01 AC 37 ms
51,968 KB
testcase_02 AC 43 ms
52,224 KB
testcase_03 AC 41 ms
51,624 KB
testcase_04 AC 41 ms
52,224 KB
testcase_05 AC 41 ms
52,096 KB
testcase_06 AC 37 ms
51,968 KB
testcase_07 AC 36 ms
52,120 KB
testcase_08 AC 33 ms
52,096 KB
testcase_09 AC 33 ms
52,608 KB
testcase_10 AC 35 ms
52,352 KB
testcase_11 AC 37 ms
51,968 KB
testcase_12 AC 35 ms
51,968 KB
testcase_13 AC 34 ms
52,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

lsC = [int(input()) for i in range(26)]


need = [(3,1),(4,1),(7,1),(11,3),(14,2),(17,1),(22,1)]
ls = [3,4,7,17,22]
ans = 1
for i in ls:
    ans *= lsC[i]
ans *= (lsC[14]//2)*(-(-lsC[14]//2))
if lsC[11] <3:
    print(0)
    exit()
maxl = 0
for i in range(2,lsC[11]):
    v = (i*(i-1))//2 * (lsC[11]-i)
    maxl = max(maxl,v)

ans *= maxl
print(ans)
0