結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2020-10-05 22:01:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 1,508 ms |
コンパイル使用メモリ | 164,740 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 22:16:49 |
合計ジャッジ時間 | 2,306 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 8 WA * 7 |
ソースコード
#include <bits/stdc++.h> const long long MOD = 1e9+7; using namespace std; #define ll long long #define ar array #define FOR(i,n) for(int i=0;i<n;i++) int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; int ans = 0; FOR(i,n) { int64_t a; cin >> a; ans+=a; } cout << ans << endl; return 0; }