結果

問題 No.3100 始業式
ユーザー furafura
提出日時 2023-09-10 14:54:22
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 3,143 ms
コンパイル使用メモリ 241,112 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-10 14:54:27
合計ジャッジ時間 3,655 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i, n) for (int i = 0; i < (n); i++)

using namespace std;

void solve() {
    int n;
    cin >> n;
    int cnt = 0;
    rep (i, n) {
        int a;
        cin >> a;
        cnt += a;
    }
    cout << cnt << "\n";
}

int main() {
    int t;
    cin >> t;
    rep (_, t) {
        solve();
    }
    return 0;
}
0