結果

問題 No.1823 Tricolor Dango
ユーザー ああいいああいい
提出日時 2022-01-29 11:44:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 1,290 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 100,480 KB
最終ジャッジ日時 2023-08-30 09:12:18
合計ジャッジ時間 5,363 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,316 KB
testcase_01 AC 194 ms
78,744 KB
testcase_02 AC 193 ms
78,408 KB
testcase_03 AC 191 ms
78,748 KB
testcase_04 AC 136 ms
77,428 KB
testcase_05 AC 139 ms
77,788 KB
testcase_06 AC 140 ms
77,580 KB
testcase_07 AC 97 ms
76,664 KB
testcase_08 AC 95 ms
76,696 KB
testcase_09 AC 96 ms
76,744 KB
testcase_10 AC 95 ms
76,592 KB
testcase_11 AC 94 ms
76,528 KB
testcase_12 AC 94 ms
76,728 KB
testcase_13 AC 94 ms
77,672 KB
testcase_14 AC 94 ms
77,580 KB
testcase_15 AC 92 ms
77,532 KB
testcase_16 AC 85 ms
80,688 KB
testcase_17 AC 88 ms
80,292 KB
testcase_18 AC 96 ms
88,244 KB
testcase_19 AC 130 ms
100,480 KB
testcase_20 AC 96 ms
88,368 KB
testcase_21 AC 179 ms
78,236 KB
testcase_22 AC 190 ms
78,984 KB
testcase_23 AC 165 ms
78,912 KB
testcase_24 AC 177 ms
78,408 KB
testcase_25 AC 189 ms
78,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for _ in range(T):
    N = int(input())
    A = list(map(int,input().split()))
    S = sum(A)
    if S % 3 != 0:
        print('No')
    else:
        M = max(A)
        if M * 3 <= S:
            print('Yes')
        else:
            print('No')
0