結果
| 問題 | No.73 helloworld |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-21 22:25:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 543 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-29 02:28:15 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
start = ord('a')
end = ord('z')
counts = dict()
for c in range(start, end + 1):
n = int(input())
counts[chr(c)] = n
h = counts['h']
e = counts['e']
l = counts['l']
o = counts['o']
w = counts['w']
r = counts['r']
d = counts['d']
if h < 1 or e < 1 or l < 3 or o < 2 or w < 1 or r < 1 or d < 1:
print(0)
else:
max_pattern = 0
for i in range(2, l):
pattern = i * (i - 1) * (l - i) // 2
if pattern > max_pattern:
max_pattern = pattern
print(max_pattern * (o//2) * (o - o//2) * h * e * w * r * d)