結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2020-09-12 11:14:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 76 ms / 3,000 ms |
コード長 | 513 bytes |
コンパイル時間 | 958 ms |
コンパイル使用メモリ | 89,584 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 11:35:01 |
合計ジャッジ時間 | 3,116 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#define _USE_MATH_DEFINES #include<cstdio> #include<cstdlib> #include<cstring> #include<sstream> #include<utility> #include<map> #include<climits> #include<vector> #include<queue> #include<algorithm> #include<set> #include<stack> #include<functional> #include<cmath> #include<iostream> using namespace std; typedef long long ll; typedef pair<int,int>P; const ll MOD=1e9+7; const int INF = 1000000000; int main() { int N; ll r=0; cin>>N; for(int i=0;i<N;i++) { ll t; cin>>t; r+=t; } cout<<r<<endl; }