結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー Torin3600
提出日時 2017-05-03 22:48:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 71 ms / 3,000 ms
コード長 200 bytes
コンパイル時間 558 ms
コンパイル使用メモリ 55,676 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 16:05:38
合計ジャッジ時間 2,064 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int input=0;
	long in;
	long sum=0;
	cin >> input;
	for(int i = 0; i < input; i++){
		cin >>in;
		sum+=in;
	}
	cout << sum << endl;
	return 0;
}
0