結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー 👑 obakyanobakyan
提出日時 2019-05-16 00:36:33
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 656 ms
コンパイル使用メモリ 70,348 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-12 20:06:37
合計ジャッジ時間 1,934 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,352 KB
testcase_04 AC 1 ms
4,356 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 7 ms
4,352 KB
testcase_08 AC 27 ms
4,372 KB
testcase_09 AC 25 ms
4,376 KB
testcase_10 AC 57 ms
4,352 KB
testcase_11 AC 58 ms
4,352 KB
testcase_12 AC 59 ms
4,348 KB
testcase_13 AC 61 ms
4,352 KB
testcase_14 AC 62 ms
4,352 KB
testcase_15 AC 64 ms
4,352 KB
testcase_16 AC 71 ms
4,352 KB
testcase_17 AC 1 ms
4,348 KB
testcase_18 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

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