結果
| 問題 | 
                            No.8100 始業式
                             | 
                    
| コンテスト | |
| ユーザー | 
                             aguroshou
                         | 
                    
| 提出日時 | 2023-03-31 23:07:34 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 380 bytes | 
| コンパイル時間 | 1,608 ms | 
| コンパイル使用メモリ | 166,308 KB | 
| 実行使用メモリ | 6,816 KB | 
| 最終ジャッジ日時 | 2024-09-23 02:10:11 | 
| 合計ジャッジ時間 | 2,053 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
ソースコード
#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long ll;
int main() {
	ll t, n, f, answer;
	cin >> t;
	for (ll i = 0; i < t; i++)
	{
		cin >> n;
		answer = 0;
		for (ll k = 0; k < n; k++)
		{
			cin >> f;
			if (f == 1)
			{
				answer++;
			}
		}
		cout << answer << endl;
	}
	return 0;
}
            
            
            
        
            
aguroshou