結果

問題 No.8100 始業式
ユーザー gyozasukisuki
提出日時 2023-03-31 21:56:35
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 577 bytes
コンパイル時間 1,682 ms
コンパイル使用メモリ 190,512 KB
最終ジャッジ日時 2025-02-11 20:21:05
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,l,r) for(int i=(l); i<(r); i++)
#define INF ((1LL<<62)-(1LL<<31)) 
using namespace std;
using ll = long long;
using inv = vector<int>;
using stv = vector<string>;
using GraphI = vector<inv>;
using position = pair<int,int>;

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int T;
    cin >> T;

    rep(j,0,T){

        int N;
        cin >> N;
        
        int ans = 0;
        rep(i,0,N){
            int a;
            cin >> a;
            if(a == 0)ans++;
        } 
        cout << ans << "\n";
    }



}
0