結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー evawenis
提出日時 2020-03-18 13:15:31
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 2,806 ms
コンパイル使用メモリ 192,676 KB
最終ジャッジ日時 2025-01-09 07:38:46
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int n;
	int64_t a=0,tmp;
	cin>>n;
	for(int i=0;i<n;++i){
		cin>>tmp;
		a+=tmp;
	}
	cout<<a<<"\n"s;
}
0