結果

問題 No.1081 和の和
ユーザー mudbdb
提出日時 2020-06-19 21:55:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 63,104 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-03 14:24:53
合計ジャッジ時間 977 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main() {
    int n;
    int a[100];
    cin >> n;
    int i,j;
    for (i=0; i<n; i++) cin >> a[i];
    for (i=0; i<n-1; i++) for (j=0; j<n; j++) a[i] += a[i+1];
    cout << a[0];
    return 0;
}
0