結果

問題 No.1823 Tricolor Dango
ユーザー ryusukeryusuke
提出日時 2022-01-28 23:23:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 100,380 KB
最終ジャッジ日時 2023-08-28 21:59:26
合計ジャッジ時間 5,046 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,160 KB
testcase_01 AC 194 ms
78,432 KB
testcase_02 AC 193 ms
78,268 KB
testcase_03 AC 193 ms
78,168 KB
testcase_04 AC 134 ms
77,332 KB
testcase_05 AC 133 ms
77,528 KB
testcase_06 AC 136 ms
77,584 KB
testcase_07 AC 92 ms
76,564 KB
testcase_08 AC 92 ms
76,540 KB
testcase_09 AC 93 ms
76,544 KB
testcase_10 AC 93 ms
76,532 KB
testcase_11 AC 93 ms
76,360 KB
testcase_12 AC 91 ms
76,364 KB
testcase_13 AC 88 ms
77,328 KB
testcase_14 AC 90 ms
77,384 KB
testcase_15 AC 88 ms
77,320 KB
testcase_16 AC 84 ms
80,244 KB
testcase_17 AC 85 ms
80,140 KB
testcase_18 AC 92 ms
88,100 KB
testcase_19 AC 128 ms
100,380 KB
testcase_20 AC 91 ms
88,276 KB
testcase_21 AC 178 ms
79,784 KB
testcase_22 AC 194 ms
79,832 KB
testcase_23 AC 163 ms
78,404 KB
testcase_24 AC 177 ms
79,764 KB
testcase_25 AC 191 ms
79,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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