結果

問題 No.1823 Tricolor Dango
ユーザー ShirotsumeShirotsume
提出日時 2021-11-19 23:03:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 224 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 1,104 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 100,580 KB
最終ジャッジ日時 2023-09-07 16:48:47
合計ジャッジ時間 6,530 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,572 KB
testcase_01 AC 224 ms
78,404 KB
testcase_02 AC 195 ms
78,388 KB
testcase_03 AC 195 ms
78,524 KB
testcase_04 AC 135 ms
77,724 KB
testcase_05 AC 136 ms
77,508 KB
testcase_06 AC 135 ms
77,732 KB
testcase_07 AC 91 ms
76,560 KB
testcase_08 AC 91 ms
76,640 KB
testcase_09 AC 93 ms
76,584 KB
testcase_10 AC 92 ms
76,688 KB
testcase_11 AC 92 ms
76,804 KB
testcase_12 AC 91 ms
76,544 KB
testcase_13 AC 91 ms
77,580 KB
testcase_14 AC 90 ms
77,420 KB
testcase_15 AC 89 ms
77,520 KB
testcase_16 AC 82 ms
80,224 KB
testcase_17 AC 84 ms
80,220 KB
testcase_18 AC 93 ms
88,236 KB
testcase_19 AC 127 ms
100,580 KB
testcase_20 AC 92 ms
88,288 KB
testcase_21 AC 185 ms
80,032 KB
testcase_22 AC 194 ms
78,596 KB
testcase_23 AC 163 ms
78,864 KB
testcase_24 AC 175 ms
79,652 KB
testcase_25 AC 198 ms
80,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n = int(input())
    a = list(map(int,input().split()))
    if sum(a) % 3 == 0 and max(a) <= sum(a) // 3:
        return 'Yes'
    else:
        return 'No'

for _ in range(int(input())):
    print(solve())
0