結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2019-04-01 22:46:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 69 ms / 3,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 754 ms |
コンパイル使用メモリ | 97,116 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 03:44:02 |
合計ジャッジ時間 | 2,036 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <cmath> #include <queue> #include <map> #include <unordered_map> #include <set> #include <functional> #include <iomanip> #include <bitset> #include <cassert> using namespace std; typedef long long ll; void e() { int n; cin >> n; ll ans = 0; for (int i = 0; i < n; i++) { ll a; cin >> a; ans += a; } cout << ans << endl; } int main() { e(); return 0; }