結果
問題 | No.73 helloworld |
ユーザー |
![]() |
提出日時 | 2023-10-14 22:07:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 649 bytes |
コンパイル時間 | 950 ms |
コンパイル使用メモリ | 104,888 KB |
最終ジャッジ日時 | 2025-02-17 07:49:50 |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include<iostream>#include<iomanip>#include<string>#include<algorithm>#include<vector>#include<set>#include<list>#include<queue>#include<math.h>#include<bitset>using ll = long long;using namespace std;int main(){ll d, e, h, maxl = 0, l, o, maxo, r, w, tmp;vector<int> alph(26);for (int i = 0; i < 26; i++) cin >> alph[i];d = alph[3];e = alph[4];h = alph[7];l = alph[11];o = alph[14];r = alph[17];w = alph[22];maxo = o/2 * (o - o/2);for (int i = 2; i < l; i++){tmp = i*(i-1)/2 * (l - i);maxl = max(maxl, tmp);}cout << d*e*h*maxl*maxo*r*w << endl;}