結果

問題 No.1823 Tricolor Dango
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-01-28 21:39:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 211 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 602 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 100,552 KB
最終ジャッジ日時 2023-08-28 19:25:38
合計ジャッジ時間 5,204 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,324 KB
testcase_01 AC 211 ms
78,520 KB
testcase_02 AC 198 ms
78,716 KB
testcase_03 AC 195 ms
78,372 KB
testcase_04 AC 136 ms
77,328 KB
testcase_05 AC 144 ms
77,448 KB
testcase_06 AC 136 ms
77,656 KB
testcase_07 AC 96 ms
76,716 KB
testcase_08 AC 94 ms
76,696 KB
testcase_09 AC 94 ms
76,624 KB
testcase_10 AC 94 ms
76,572 KB
testcase_11 AC 94 ms
76,568 KB
testcase_12 AC 94 ms
76,484 KB
testcase_13 AC 93 ms
77,660 KB
testcase_14 AC 91 ms
77,548 KB
testcase_15 AC 88 ms
77,596 KB
testcase_16 AC 84 ms
80,312 KB
testcase_17 AC 88 ms
80,160 KB
testcase_18 AC 98 ms
88,404 KB
testcase_19 AC 130 ms
100,552 KB
testcase_20 AC 94 ms
88,232 KB
testcase_21 AC 178 ms
79,872 KB
testcase_22 AC 189 ms
78,588 KB
testcase_23 AC 163 ms
78,960 KB
testcase_24 AC 172 ms
79,516 KB
testcase_25 AC 198 ms
80,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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