結果

問題 No.73 helloworld
ユーザー H3PO4H3PO4
提出日時 2020-04-24 13:39:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-23 02:28:11
合計ジャッジ時間 1,334 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,752 KB
testcase_01 AC 31 ms
10,752 KB
testcase_02 AC 31 ms
10,752 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 31 ms
10,752 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 31 ms
10,880 KB
testcase_09 AC 35 ms
10,880 KB
testcase_10 AC 32 ms
10,752 KB
testcase_11 AC 30 ms
10,752 KB
testcase_12 AC 30 ms
10,752 KB
testcase_13 AC 31 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

D = {chr(97 + i): int(input()) for i in range(26)}

nC2 = lambda n: n * (n - 1) // 2

h = D['h']
e = D['e']
l = max([0] + [nC2(i) * (D['l'] - i) for i in range(2, D['l'])])
o = max([0] + [i * (D['o'] - i) for i in range(1, D['o'])])
w = D['w']
r = D['r']
d = D['d']
print(h * e * l * o * w * r * d)
0