結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2021-06-12 11:48:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 1,792 ms |
コンパイル使用メモリ | 166,656 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-16 05:05:21 |
合計ジャッジ時間 | 2,837 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 9 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; //#define int long long #define rep(i, a, b) for (int i = a; i < b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #define ALL(x) std::begin(x), std::end(x) int main() { cin.tie(0); ios::sync_with_stdio(false); constexpr char endl = '\n'; int N; cin >> N; int A[N]; rep(i,0,N) cin >> A[i]; ll tot = 0; rep(i,0,N) tot += A[i]; cout << tot << endl; }