結果
| 問題 | No.3613 Legendary Bread Maker |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-06 18:15:35 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| + 286µs | |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 1,074 ms |
| コンパイル使用メモリ | 208,444 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-06 18:15:38 |
| 合計ジャッジ時間 | 2,702 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 3 |
| 小課題1 | 10 % | AC * 5 |
| 小課題2 | 40 % | AC * 13 |
| 小課題3 | 50 % | AC * 23 |
| 合計 | 2 * 100% = 200 点 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int N; cin >> N;
long long sum = 0,answer = 0;
while(N--){
int a; cin >> a;
answer += sum*a,sum += a;
}
cout << answer << endl;
}