結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー trineutron
提出日時 2019-05-03 13:01:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 79 ms / 3,000 ms
コード長 233 bytes
コンパイル時間 1,580 ms
コンパイル使用メモリ 159,672 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-31 15:37:23
合計ジャッジ時間 3,704 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    cin >> n;
    long sum = 0;
    for (int i = 0; i < n; i++) {
        long cache;
        cin >> cache;
        sum += cache;
    }
    cout << sum << endl;
}
0