結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー BwambocosBwambocos
提出日時 2019-01-25 21:40:12
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 1,430 ms
コンパイル使用メモリ 167,200 KB
実行使用メモリ 6,916 KB
最終ジャッジ日時 2023-10-14 09:53:44
合計ジャッジ時間 3,006 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 2 ms
4,352 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 6 ms
4,348 KB
testcase_08 AC 25 ms
4,348 KB
testcase_09 AC 22 ms
4,352 KB
testcase_10 AC 53 ms
6,332 KB
testcase_11 AC 54 ms
6,300 KB
testcase_12 AC 55 ms
6,512 KB
testcase_13 AC 54 ms
6,456 KB
testcase_14 AC 56 ms
6,412 KB
testcase_15 AC 60 ms
6,320 KB
testcase_16 AC 67 ms
6,916 KB
testcase_17 AC 1 ms
4,352 KB
testcase_18 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
#define in std::cin
#define out std::cout
#define rep(i,N) for(LL i=0;i<N;++i)
typedef long long int LL;

int main()
{
	LL N;
	in >> N;
	std::vector<LL>A(N);
	rep(i, N) in >> A[i];

	LL ans = 0;
	rep(i, N) ans += A[i];

	out << ans << std::endl;
}
0