結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ShimizudesShimizudes
提出日時 2018-07-06 21:52:49
言語 C++11
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 290 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 53,208 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-01 02:56:09
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 WA * 7 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

long long n,sum,a[50000];

int main(void) {
	
	cin>>n;
	
	for(int i=0; i<n; i++)
	{
		cin>>a[i];
		sum += a[i];
	}
	
	cout<<sum<<endl;
	return 0;
}
0