結果
問題 | No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用) |
ユーザー |
|
提出日時 | 2017-04-18 18:38:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 31,104 KB |
実行使用メモリ | 7,040 KB |
最終ジャッジ日時 | 2024-07-19 07:46:07 |
合計ジャッジ時間 | 1,085 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <cstdio>using ll = long long;using namespace std;ll a[500000];int main() {int n; scanf("%d", &n);for (int i = 0; i < n; ++ i) scanf("%lld", &a[i]);ll b = 0;for (int i = 0; i < n; ++ i) b += a[i];printf("%lld\n", b);return 0;}