結果

問題 No.73 helloworld
ユーザー 👑 colognecologne
提出日時 2022-01-25 19:06:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 500 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 65,684 KB
最終ジャッジ日時 2024-05-09 20:04:04
合計ジャッジ時間 2,040 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 57 ms
65,472 KB
testcase_02 AC 57 ms
64,264 KB
testcase_03 AC 53 ms
63,720 KB
testcase_04 AC 55 ms
65,204 KB
testcase_05 WA -
testcase_06 AC 54 ms
64,064 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 56 ms
64,196 KB
testcase_12 AC 54 ms
65,128 KB
testcase_13 AC 55 ms
64,036 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['r'])


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