結果
| 問題 |
No.73 helloworld
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-25 19:07:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 5,000 ms |
| コード長 | 435 bytes |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 82,276 KB |
| 実行使用メモリ | 65,320 KB |
| 最終ジャッジ日時 | 2024-12-17 13:27:50 |
| 合計ジャッジ時間 | 1,606 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
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()