結果
| 問題 |
No.8100 始業式
|
| コンテスト | |
| ユーザー |
prin_kemkem
|
| 提出日時 | 2023-04-01 02:42:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 2,000 ms |
| コード長 | 604 bytes |
| コンパイル時間 | 445 ms |
| コンパイル使用メモリ | 81,656 KB |
| 実行使用メモリ | 77,576 KB |
| 最終ジャッジ日時 | 2024-09-23 04:18:40 |
| 合計ジャッジ時間 | 1,062 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
from collections import defaultdict, deque, Counter
import copy
from itertools import combinations, permutations, product, accumulate
from heapq import heapify, heappop, heappush
import math
import bisect
import sys
# sys.setrecursionlimit(700000)
input = lambda: sys.stdin.readline().rstrip('\n')
inf = float('inf')
mod1 = 10**9+7
mod2 = 998244353
def ceil_div(x, y): return -(-x//y)
#################################################
T = int(input())
for _ in range(T):
N = int(input())
F = list(map(int, input().split()))
ac = F.count(0)
wa = ac+1 if ac+1 <= N else ac-1
print(wa)
prin_kemkem