結果
| 問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
| ユーザー |
_yoshih_
|
| 提出日時 | 2018-09-18 20:53:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 3,000 ms |
| コード長 | 369 bytes |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 62,848 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 08:05:03 |
| 合計ジャッジ時間 | 1,503 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 |
ソースコード
#include <cstdint>
#include <iostream>
using namespace std;
static void setup()
{
cin.tie(0);
ios::sync_with_stdio(false);
}
int main(int argc, char **argv)
{
setup();
int n;
cin >> n;
int64_t sum = 0;
for (auto i = 0; i < n; ++i) {
int64_t a;
cin >> a;
sum += a;
}
cout << sum << endl;
return 0;
}
_yoshih_