結果
| 問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
| ユーザー |
gedy01221406
|
| 提出日時 | 2019-09-26 02:29:43 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 75 ms / 3,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 536 ms |
| コンパイル使用メモリ | 71,168 KB |
| 最終ジャッジ日時 | 2025-01-07 19:10:39 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 |
ソースコード
#include <iostream>
#include <numeric>
#include <vector>
#include <cstdint>
using namespace std;
int main() {
int i;
cin >> i;
vector<unsigned long long> num(i);
for (int x = 0; x < i; x++) {
cin >> num[x];
}
unsigned long long k=0;
for (int x = 0; x < i; x++) {
k += num[x];
}
cout << k;
return 0;
}
gedy01221406