結果

問題 No.73 helloworld
ユーザー 👑 rin204rin204
提出日時 2022-01-20 20:48:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 355 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 87,340 KB
実行使用メモリ 71,500 KB
最終ジャッジ日時 2023-08-15 20:39:49
合計ジャッジ時間 2,465 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,464 KB
testcase_01 AC 79 ms
71,292 KB
testcase_02 AC 77 ms
71,500 KB
testcase_03 AC 78 ms
71,144 KB
testcase_04 AC 78 ms
71,380 KB
testcase_05 AC 76 ms
71,320 KB
testcase_06 AC 78 ms
71,308 KB
testcase_07 AC 75 ms
71,276 KB
testcase_08 AC 80 ms
71,276 KB
testcase_09 AC 80 ms
71,320 KB
testcase_10 AC 79 ms
71,376 KB
testcase_11 AC 77 ms
71,060 KB
testcase_12 AC 76 ms
71,296 KB
testcase_13 AC 76 ms
71,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

C = [int(input()) for _ in range(26)]

h = C[ord("h") - 97]
e = C[ord("e") - 97]
l = C[ord("l") - 97]
o = C[ord("o") - 97]
w = C[ord("w") - 97]
r = C[ord("r") - 97]
d = C[ord("d") - 97]

ans = h * e * w * r * d
ans *= (o // 2) * ((o + 1) // 2)
max_ = 0
for i in range(2, l):
    tmp = i * (i - 1) // 2 * (l - i)
    max_ = max(max_, tmp)
print(ans * max_)
0