提出 #37795983


ソースコード 拡げる

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define chmax(x,y) x = max(x,y);
#define chmin(x,y) x = min(x,y);
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
const int INF = 1001001001;
const ll LINF = 1001002003004005006ll;
const double PI = acos(-1);



int main() {
    int t;
    cin >> t;
    rep(ti,t) {
        int n;
        cin >> n;
        int ans = 0;
        rep(i,n) {
            int a;
            cin >> a;
            if (a%2 == 1) ans++;
        }
        cout << ans << endl;
    }
    return 0;
}

提出情報

提出日時
問題 B - Multi Test Cases
ユーザ taki0711
言語 C++ (GCC 9.2.1)
得点 200
コード長 709 Byte
結果 AC
実行時間 11 ms
メモリ 3536 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 1
AC × 4
セット名 テストケース
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_random_00.txt, 01_random_01.txt, 02_max_00.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 11 ms 3448 KiB
01_random_00.txt AC 5 ms 3536 KiB
01_random_01.txt AC 5 ms 3388 KiB
02_max_00.txt AC 8 ms 3400 KiB