結果

問題 No.73 helloworld
ユーザー matsu7874
提出日時 2014-11-21 00:58:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 527 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2025-01-02 19:47:36
合計ジャッジ時間 1,395 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

def nCr(n,r):
	return int(math.factorial(n) / math.factorial(r) / math.factorial(n-r))

c = []
for i in range(ord('a'), ord('z')+1):
	c.append(int(input()))

y = int(c[ord('o')-ord('a')]/2)

max_hellowolrd = 0
for x in range(1,c[ord('l')-ord('a')]-1):
	max_hellowolrd = max(max_hellowolrd, c[ord('h')-ord('a')] * c[ord('e')-ord('a')] * nCr(c[ord('l')-ord('a')]-x, 2) * (c[ord('o')-ord('a')]-y) * c[ord('w')-ord('a')] * y * c[ord('r')-ord('a')] * x * c[ord('d')-ord('a')])
print(int(max_hellowolrd))
0