結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー 👑 obakyan
提出日時 2019-05-16 00:36:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 674 ms
コンパイル使用メモリ 72,304 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 18:28:16
合計ジャッジ時間 2,093 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <string>
#include <iostream>
#include <iomanip>
#include <numeric>
#define L64 long long
#define MOD (998244353LL)

int main(void)
{
  L64 n, b;
  b = 0;
  std::cin >> n;
  for (int i = 1; i <= n; i++){
    L64 a; std::cin >> a;
    b += a;
  }
  std::cout << b << std::endl;
}
0