結果

問題 No.73 helloworld
コンテスト
ユーザー lloyz
提出日時 2022-11-30 00:04:28
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 158 ms / 5,000 ms
コード長 580 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 589 ms
コンパイル使用メモリ 20,824 KB
実行使用メモリ 15,488 KB
最終ジャッジ日時 2026-04-24 01:21:23
合計ジャッジ時間 5,106 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

h, e, l, o, w, r, d = 0, 0, 0, 0, 0, 0, 0
for i in range(26):
    s = chr(ord('a') + i)
    if s == 'h':
        h += int(input())
    elif s == 'e':
        e += int(input())
    elif s == 'l':
        l += int(input())
    elif s == 'o':
        o += int(input())
    elif s == 'w':
        w += int(input())
    elif s == 'r':
        r += int(input())
    elif s == 'd':
        d += int(input())
    else:
        input()
ans = h * e * w * r * d
ans *= ((o + 1) // 2) * (o // 2)
res = 0
for i in range(2, l):
    res = max(res, (i * (i - 1) // 2) * (l - i))
print(ans * res)
0