結果
問題 | No.73 helloworld |
ユーザー |
👑 |
提出日時 | 2021-11-24 00:01:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 623 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 63,616 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-25 21:51:44 |
合計ジャッジ時間 | 1,147 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <iostream>using namespace std;long long a[26];int main(){for(int i = 0; 26 > i; i++){cin>>a[i];}//cout << a[3] << " " << a[4] << " " << a[7] << " " << a[17] << " " << a[22] << " " << a[14] << " " << a[11] << endl;//cout << a[3]*a[4]*a[7]*a[17]*a[22]*(a[14]/2)*(a[14]/2+a[14]%2) << " " <<(a[11]/3) << " " << (a[11]/3+(a[11]%3?1:0)) << " " << (a[11]/3+(a[11]%3==2?1:0)) << endl;long long ans = a[3]*a[4]*a[7]*a[17]*a[22]*(a[14]/2)*(a[14]/2+a[14]%2);long long mx = 0;for(int i = 1; a[11]-2 >= i; i++){//a[11]-i,imx = max(mx,i*(a[11]-i)*(a[11]-i-1)/2);}cout << ans*mx << endl;}