結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ken8aisa
提出日時 2021-06-12 11:49:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 1,399 ms
コンパイル使用メモリ 166,320 KB
実行使用メモリ 7,456 KB
最終ジャッジ日時 2024-12-16 05:07:01
合計ジャッジ時間 2,400 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define int long long 
#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i >= b; i--)
#define ALL(x) std::begin(x), std::end(x)
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	constexpr char endl = '\n';

	int N; cin >> N;
	ll A[N];
	rep(i,0,N) cin >> A[i];
	ll tot = 0;
	rep(i,0,N) tot += A[i];
	cout << tot << endl;
	
}
0