結果

問題 No.73 helloworld
コンテスト
ユーザー 👑 cologne
提出日時 2022-01-25 19:06:45
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 435 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 74 ms
コンパイル使用メモリ 81,092 KB
実行使用メモリ 67,408 KB
最終ジャッジ日時 2026-10-04 15:51:52
合計ジャッジ時間 2,033 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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