結果
| 問題 |
No.73 helloworld
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-29 23:38:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 5,000 ms |
| コード長 | 342 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-16 03:06:44 |
| 合計ジャッジ時間 | 1,322 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
*C, = map(int,read().split())
h,e,l,l,o,w,o,r,l,d = [C[ord(x) - ord('a')] for x in 'helloworld']
x = h * e * w * r * d
x *= max(x * (l-x) * (l-x-1) // 2 for x in range(l+1))
x *= max(x * (o-x) for x in range(o+1))
print(x)
maspy