結果

問題 No.1406 Test
ユーザー ardggy
提出日時 2021-02-26 22:19:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-02 15:09:16
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    if N == 1:
        print(101)
        return

    A = map(int, input().split(" "))
    z = 0
    for x in range(0, 101):
        s = sum([*A, x])
        if s // N == s / N:
            z += 1

    print(z)

if __name__ == '__main__':
    main()
0