結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2020-09-07 15:15:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 1,514 ms |
コンパイル使用メモリ | 165,376 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-29 10:46:50 |
合計ジャッジ時間 | 2,245 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> #define forn(i,a,b) for(int i=a; i<=b; i++) using namespace std; void solve(){ long long int n,a,ans=0; cin>>n; forn(i,1,n) cin>>a, ans+=a; cout<<ans<<endl; } int main(){ ios::sync_with_stdio(0); cin.tie(0); int t=1; // cin>>t; while(t--){ solve(); } }