結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2018-07-24 05:01:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 3,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 446 ms |
コンパイル使用メモリ | 64,132 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 16:10:39 |
合計ジャッジ時間 | 1,796 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <iostream> #define rep(i, n) for(int i=0; i<(int)(n); ++i) using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); int n; ll a, ans(0ll); cin >> n; rep(i, n) { cin >> a; ans += a; } cout << ans << "\n"; return 0; }