結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2022-01-02 21:20:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 80 ms / 3,000 ms |
コード長 | 414 bytes |
コンパイル時間 | 1,845 ms |
コンパイル使用メモリ | 192,508 KB |
最終ジャッジ日時 | 2025-01-27 08:35:03 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> #include <vector> #include <iostream> #include <map> #include <string> #include <cmath> #include <algorithm> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using P = pair<int, int>; int main() { int N; cin >> N; ll A; ll sum = 0; rep(i,N) { cin >> A; sum += A; } cout << sum << endl; }