結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー Ryuki87241978
提出日時 2022-01-02 21:19:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 414 bytes
コンパイル時間 2,014 ms
コンパイル使用メモリ 192,200 KB
最終ジャッジ日時 2025-01-27 08:34:53
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <map>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using P = pair<int, int>;

int main() {
    
    int N;
    cin >> N;
    ll A;
    ll sum = 0;
    rep(i,N) {
        cin >> A;
        sum += A;
    }
    cout << sum << endl;
    
}
0