結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ken8aisa
提出日時 2021-06-12 11:50:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 31 ms / 3,000 ms
コード長 438 bytes
コンパイル時間 1,553 ms
コンパイル使用メモリ 166,440 KB
実行使用メモリ 7,244 KB
最終ジャッジ日時 2024-12-16 05:08:28
合計ジャッジ時間 3,289 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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