結果

問題 No.1823 Tricolor Dango
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-01-29 20:42:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 29,840 KB
最終ジャッジ日時 2023-08-30 20:07:03
合計ジャッジ時間 3,610 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,968 KB
testcase_01 AC 117 ms
7,788 KB
testcase_02 AC 117 ms
7,848 KB
testcase_03 AC 117 ms
7,852 KB
testcase_04 AC 46 ms
7,848 KB
testcase_05 AC 46 ms
8,132 KB
testcase_06 AC 46 ms
8,192 KB
testcase_07 AC 37 ms
8,460 KB
testcase_08 AC 35 ms
8,508 KB
testcase_09 AC 39 ms
8,576 KB
testcase_10 AC 38 ms
8,596 KB
testcase_11 AC 37 ms
8,412 KB
testcase_12 AC 34 ms
8,576 KB
testcase_13 AC 39 ms
10,308 KB
testcase_14 AC 38 ms
10,216 KB
testcase_15 AC 36 ms
10,100 KB
testcase_16 AC 28 ms
12,600 KB
testcase_17 AC 28 ms
12,072 KB
testcase_18 AC 45 ms
18,792 KB
testcase_19 AC 83 ms
29,840 KB
testcase_20 AC 44 ms
18,468 KB
testcase_21 AC 76 ms
7,784 KB
testcase_22 AC 110 ms
7,788 KB
testcase_23 AC 50 ms
8,240 KB
testcase_24 AC 73 ms
7,808 KB
testcase_25 AC 112 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def answer():
    N = int(input())
    A = list(map(int,input().split()))
    if sum(A)%3 != 0:
        print("No")
        return
    
    if max(A) <= (sum(A)+2)//3:
        print("Yes")
    else:
        print("No")
for _ in range(int(input())):
    answer()
0