結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ku_senjan
提出日時 2023-06-03 17:09:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 1,813 ms
コンパイル使用メモリ 165,392 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-29 03:09:39
合計ジャッジ時間 3,788 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int N;
ll ans;

int main(){
  cin >> N;
  for(int i=0; i<N; i++){
    ll a; cin >> a;
    ans += a;
  }

  cout << ans << endl;
}
0