結果

問題 No.1823 Tricolor Dango
ユーザー DrDrpilotDrDrpilot
提出日時 2022-01-31 21:57:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 29,920 KB
最終ジャッジ日時 2023-09-02 02:25:19
合計ジャッジ時間 3,001 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,940 KB
testcase_01 AC 120 ms
7,848 KB
testcase_02 AC 115 ms
7,776 KB
testcase_03 AC 121 ms
7,848 KB
testcase_04 AC 45 ms
8,348 KB
testcase_05 AC 46 ms
8,308 KB
testcase_06 AC 46 ms
8,308 KB
testcase_07 AC 35 ms
8,536 KB
testcase_08 AC 33 ms
8,584 KB
testcase_09 AC 38 ms
8,572 KB
testcase_10 AC 37 ms
8,540 KB
testcase_11 AC 36 ms
8,544 KB
testcase_12 AC 33 ms
8,512 KB
testcase_13 AC 38 ms
10,860 KB
testcase_14 AC 36 ms
10,844 KB
testcase_15 AC 34 ms
11,192 KB
testcase_16 AC 25 ms
12,784 KB
testcase_17 AC 26 ms
12,204 KB
testcase_18 AC 43 ms
18,684 KB
testcase_19 AC 79 ms
29,920 KB
testcase_20 AC 43 ms
18,400 KB
testcase_21 AC 72 ms
7,860 KB
testcase_22 AC 105 ms
7,956 KB
testcase_23 AC 49 ms
8,348 KB
testcase_24 AC 70 ms
7,860 KB
testcase_25 AC 110 ms
7,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t=int(input())
for _ in range(t):
    n=int(input())
    a=list(map(int,input().split()))
    if sum(a)%3!=0:
        print('No')
    else:
        if sum(a)//3<max(a):
            print('No')
        else:
            print('Yes')
0