結果

問題 No.73 helloworld
ユーザー roarisroaris
提出日時 2019-12-22 19:19:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,596 KB
最終ジャッジ日時 2023-10-12 16:21:13
合計ジャッジ時間 2,233 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 69 ms
71,152 KB
testcase_02 AC 70 ms
71,124 KB
testcase_03 AC 74 ms
71,292 KB
testcase_04 AC 70 ms
71,376 KB
testcase_05 AC 69 ms
71,088 KB
testcase_06 AC 71 ms
71,292 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 70 ms
71,120 KB
testcase_12 AC 71 ms
71,296 KB
testcase_13 AC 72 ms
71,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

C = [int(input()) for _ in range(26)]
alpha = 'abcdefghijklmnopqrstuvwxyz'
idx = {}
c = 0

for alpha_i in alpha:
    idx[alpha_i] = c
    c += 1

h = C[idx['h']]
e = C[idx['e']]
l = C[idx['l']]
o = C[idx['o']]
w = C[idx['w']]
r = C[idx['r']]
d = C[idx['d']]
ans = h*e*o//2*(o-o//2)*w*r*d
l_max = 0

for i in range(l+1):
    l_max = max(l_max, i*(i-1)//2*(l-i))

ans *= l_max

print(ans)
0