結果
| 問題 |
No.73 helloworld
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-04 23:24:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 387 bytes |
| コンパイル時間 | 2,057 ms |
| コンパイル使用メモリ | 191,664 KB |
| 最終ジャッジ日時 | 2025-01-07 10:42:48 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int cnt[26];
for (int i=0;i<26;i++)cin>>cnt[i];
int a='a';
int l=0;
for (int i=2; i<cnt['l'-a];i++) l=max(l, i*(i-1)/2*(cnt['l'-a]-i));
int o=cnt['o'-a]/2*(cnt['o'-a]-cnt['o'-a]/2);
cout << (ll)cnt['h'-a]*cnt['e'-a]*l*o*cnt['w'-a]*cnt['r'-a]*cnt['d'-a] << endl;
return 0;
}