結果

問題 No.1823 Tricolor Dango
ユーザー 8989
提出日時 2022-02-21 01:12:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 100,540 KB
最終ジャッジ日時 2023-09-11 21:13:52
合計ジャッジ時間 6,412 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,052 KB
testcase_01 AC 213 ms
78,372 KB
testcase_02 AC 193 ms
78,152 KB
testcase_03 AC 193 ms
77,864 KB
testcase_04 AC 135 ms
77,588 KB
testcase_05 AC 135 ms
77,456 KB
testcase_06 AC 135 ms
77,392 KB
testcase_07 AC 93 ms
76,620 KB
testcase_08 AC 93 ms
76,496 KB
testcase_09 AC 93 ms
76,300 KB
testcase_10 AC 93 ms
76,352 KB
testcase_11 AC 92 ms
76,300 KB
testcase_12 AC 91 ms
76,544 KB
testcase_13 AC 88 ms
77,312 KB
testcase_14 AC 88 ms
77,460 KB
testcase_15 AC 86 ms
77,356 KB
testcase_16 AC 82 ms
80,108 KB
testcase_17 AC 83 ms
79,876 KB
testcase_18 AC 95 ms
87,988 KB
testcase_19 AC 128 ms
100,540 KB
testcase_20 AC 93 ms
88,020 KB
testcase_21 AC 181 ms
79,692 KB
testcase_22 AC 188 ms
78,320 KB
testcase_23 AC 163 ms
78,656 KB
testcase_24 AC 177 ms
79,640 KB
testcase_25 AC 197 ms
80,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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