結果

問題 No.73 helloworld
ユーザー CleyLCleyL
提出日時 2021-11-24 00:01:26
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 623 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 65,292 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-08 04:36:37
合計ジャッジ時間 1,401 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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,i
    mx = max(mx,i*(a[11]-i)*(a[11]-i-1)/2);
  }
  cout << ans*mx << endl;
}
0