結果

問題 No.1823 Tricolor Dango
ユーザー SidewaysOwlSidewaysOwl
提出日時 2022-01-28 21:40:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 192 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 1,031 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 100,596 KB
最終ジャッジ日時 2023-08-28 19:29:02
合計ジャッジ時間 5,826 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,108 KB
testcase_01 AC 188 ms
79,932 KB
testcase_02 AC 187 ms
78,584 KB
testcase_03 AC 187 ms
79,976 KB
testcase_04 AC 128 ms
77,564 KB
testcase_05 AC 130 ms
77,668 KB
testcase_06 AC 131 ms
77,664 KB
testcase_07 AC 90 ms
76,616 KB
testcase_08 AC 89 ms
76,584 KB
testcase_09 AC 91 ms
76,528 KB
testcase_10 AC 91 ms
76,868 KB
testcase_11 AC 90 ms
76,496 KB
testcase_12 AC 89 ms
76,556 KB
testcase_13 AC 87 ms
77,696 KB
testcase_14 AC 87 ms
77,712 KB
testcase_15 AC 86 ms
77,500 KB
testcase_16 AC 82 ms
80,412 KB
testcase_17 AC 83 ms
80,116 KB
testcase_18 AC 92 ms
88,376 KB
testcase_19 AC 123 ms
100,596 KB
testcase_20 AC 90 ms
88,236 KB
testcase_21 AC 176 ms
79,956 KB
testcase_22 AC 192 ms
78,268 KB
testcase_23 AC 160 ms
78,740 KB
testcase_24 AC 173 ms
79,944 KB
testcase_25 AC 188 ms
79,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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