結果

問題 No.73 helloworld
ユーザー matsu7874matsu7874
提出日時 2014-11-21 00:58:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 527 bytes
コンパイル時間 638 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-08-30 22:02:51
合計ジャッジ時間 1,460 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,988 KB
testcase_01 AC 15 ms
8,004 KB
testcase_02 AC 16 ms
7,984 KB
testcase_03 AC 16 ms
7,940 KB
testcase_04 AC 16 ms
8,008 KB
testcase_05 AC 16 ms
7,980 KB
testcase_06 AC 16 ms
8,000 KB
testcase_07 AC 16 ms
7,936 KB
testcase_08 AC 16 ms
7,944 KB
testcase_09 AC 16 ms
7,992 KB
testcase_10 AC 15 ms
7,904 KB
testcase_11 WA -
testcase_12 AC 16 ms
8,016 KB
testcase_13 AC 16 ms
7,940 KB
権限があれば一括ダウンロードができます

ソースコード

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