結果

問題 No.8100 始業式
ユーザー titia
提出日時 2023-04-01 01:01:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-23 03:09:48
合計ジャッジ時間 634 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

T=int(input())
for tests in range(T):
    N=int(input())
    A=list(map(int,input().split()))

    ANS=[N-sum(A),N-sum(A)+1]

    for i in range(N+1):
        if i in ANS:
            continue
        else:
            print(i)
            break
        
0