結果
問題 | No.73 helloworld |
ユーザー |
![]() |
提出日時 | 2017-07-11 23:46:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 1,477 ms |
コンパイル使用メモリ | 166,032 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 01:37:45 |
合計ジャッジ時間 | 2,066 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <bits/stdc++.h>#define REP(i,n,N) for(int i=(n);i<(int) N;i++)#define p(s) cout<<(s)<<endltypedef long long ll;using namespace std;ll C[30];int main(){REP(i,0,26) cin>>C[i];ll d=C[3];ll e=C[4];ll h=C[7];ll l=C[11];ll o=C[14];ll r=C[17];ll w=C[22];ll ans=d*e*h*r*w;ll mxl = 0, mxo = 0;REP(i,2,l){ll tmp = (i*(i-1)/2) * (l-i);mxl=max(mxl,tmp);}REP(i,1,o){ll tmp = i*(o-i);mxo=max(mxo,tmp);}ans *= mxl*mxo;p(ans);}