結果

問題 No.73 helloworld
ユーザー 👑 colognecologne
提出日時 2022-01-25 19:07:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 435 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 80,316 KB
最終ジャッジ日時 2023-08-22 14:20:02
合計ジャッジ時間 3,227 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
80,244 KB
testcase_01 AC 146 ms
80,308 KB
testcase_02 AC 147 ms
80,300 KB
testcase_03 AC 147 ms
80,208 KB
testcase_04 AC 148 ms
80,140 KB
testcase_05 AC 147 ms
80,224 KB
testcase_06 AC 146 ms
80,016 KB
testcase_07 AC 144 ms
80,276 KB
testcase_08 AC 147 ms
80,260 KB
testcase_09 AC 146 ms
80,316 KB
testcase_10 AC 146 ms
80,236 KB
testcase_11 AC 146 ms
80,196 KB
testcase_12 AC 146 ms
80,228 KB
testcase_13 AC 147 ms
80,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import string
import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    C = {}
    for i in string.ascii_lowercase:
        C[i] = int(input())

    def calc3(x):
        return max((i*(i-1)//2*(x-i) for i in range(0, x+1)))

    def calc2(x):
        return max((i*(x-i) for i in range(0, x+1)))

    print(C['h']*C['e']*calc3(C['l'])*calc2(C['o'])*C['w']*C['r']*C['d'])


if __name__ == '__main__':
    main()
0