結果
| 問題 | No.73 helloworld |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2014-11-21 01:11:33 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 5,000 ms |
| コード長 | 532 bytes |
| 記録 | |
| コンパイル時間 | 1,189 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,352 KB |
| 最終ジャッジ日時 | 2026-03-18 02:38:01 |
| 合計ジャッジ時間 | 2,847 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
import math
def nCr(n,r):
ncr = 1
for i in range(1,r+1):
ncr = int(ncr * (n-i+1)/i)
return ncr
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))
matsu7874