結果
| 問題 | No.73 helloworld |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-02 18:26:07 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 383µs | |
| コード長 | 505 bytes |
| 記録 | |
| コンパイル時間 | 930 ms |
| コンパイル使用メモリ | 190,212 KB |
| 実行使用メモリ | 9,860 KB |
| 最終ジャッジ日時 | 2026-09-29 01:22:53 |
| 合計ジャッジ時間 | 2,214 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
map<char, int> m;
for (int i = 0; i < 26; i++) {
int c; cin >> c;
m['a'+i] = c;
}
ll ans = 1;
ans *= m['h'];
ans *= m['e'];
ans *= m['w'];
ans *= m['r'];
ans *= m['d'];
ans *= m['o']/2;
ans *= m['o']/2+m['o']%2;
int l = 0;
for (int i = 2; i <= m['l']-1; i++) {
l = max(l, i * (i-1)/2 * (m['l']-i));
}
ans *= l;
cout << ans << endl;
}