結果
| 問題 | No.73 helloworld |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-01-25 19:06:45 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 435 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 81,092 KB |
| 実行使用メモリ | 67,408 KB |
| 最終ジャッジ日時 | 2026-10-04 15:51:52 |
| 合計ジャッジ時間 | 2,033 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 6 |
ソースコード
import string
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
C = {}
for i in string.ascii_lowercase:
C[i] = int(input())
def calc3(x):
return max((i*(i-1)//2*(x-i) for i in range(0, x+1)))
def calc2(x):
return max((i*(x-i) for i in range(0, x+1)))
print(C['h']*C['e']*calc3(C['l'])*calc2(C['o'])*C['w']*C['r']*C['r'])
if __name__ == '__main__':
main()