結果

問題 No.1823 Tricolor Dango
ユーザー 👑 rin204rin204
提出日時 2022-01-28 21:23:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 100,684 KB
最終ジャッジ日時 2023-08-28 19:00:58
合計ジャッジ時間 5,020 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,296 KB
testcase_01 AC 203 ms
78,292 KB
testcase_02 AC 194 ms
78,384 KB
testcase_03 AC 193 ms
78,404 KB
testcase_04 AC 133 ms
77,464 KB
testcase_05 AC 135 ms
77,424 KB
testcase_06 AC 138 ms
77,636 KB
testcase_07 AC 92 ms
76,572 KB
testcase_08 AC 94 ms
76,680 KB
testcase_09 AC 94 ms
76,480 KB
testcase_10 AC 93 ms
76,628 KB
testcase_11 AC 92 ms
76,560 KB
testcase_12 AC 91 ms
76,552 KB
testcase_13 AC 90 ms
77,544 KB
testcase_14 AC 89 ms
77,488 KB
testcase_15 AC 89 ms
77,332 KB
testcase_16 AC 82 ms
80,252 KB
testcase_17 AC 85 ms
80,280 KB
testcase_18 AC 93 ms
88,172 KB
testcase_19 AC 128 ms
100,684 KB
testcase_20 AC 94 ms
88,448 KB
testcase_21 AC 184 ms
80,088 KB
testcase_22 AC 196 ms
78,388 KB
testcase_23 AC 166 ms
78,680 KB
testcase_24 AC 180 ms
79,720 KB
testcase_25 AC 202 ms
80,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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