結果

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

ソースコード

diff #

#include <iostream>
using namespace std;
int main(void){
    int t;
    cin >> t;
    for (int i = 0; i < t; i++) {
    	int n;
    	cin >> n;
    	bool f;
    	int count = 0;
    	for (int j = 0 ;j < n; j++) {
    		cin >> f;
    		if (f) count++;
    	}
    	cout << count << endl;
    }
}
0