結果

問題 No.3100 始業式
ユーザー 3mEhsfd8aG5jx2t3mEhsfd8aG5jx2t
提出日時 2023-03-31 21:28:40
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 1,891 ms
コンパイル使用メモリ 200,028 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 07:15:58
合計ジャッジ時間 2,316 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;
int main() {
  int T;
  cin >> T;
  REP(_, T) {
    int N;
    cin >> N;
    int ans = 0;
    REP(i, N) {
      int x;
      cin >> x;
      ans += x;
    }
    cout << ans << endl;
  }
}
0