結果

問題 No.1823 Tricolor Dango
ユーザー ikomaikoma
提出日時 2022-01-28 23:48:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 87,388 KB
実行使用メモリ 99,784 KB
最終ジャッジ日時 2023-08-28 22:29:27
合計ジャッジ時間 4,829 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,180 KB
testcase_01 AC 129 ms
77,536 KB
testcase_02 AC 131 ms
77,656 KB
testcase_03 AC 130 ms
77,664 KB
testcase_04 AC 102 ms
76,456 KB
testcase_05 AC 101 ms
77,068 KB
testcase_06 AC 101 ms
76,592 KB
testcase_07 AC 90 ms
76,184 KB
testcase_08 AC 89 ms
76,356 KB
testcase_09 AC 91 ms
76,184 KB
testcase_10 AC 90 ms
76,492 KB
testcase_11 AC 90 ms
76,204 KB
testcase_12 AC 89 ms
76,508 KB
testcase_13 AC 89 ms
77,520 KB
testcase_14 AC 87 ms
76,832 KB
testcase_15 AC 86 ms
76,492 KB
testcase_16 AC 82 ms
79,704 KB
testcase_17 AC 84 ms
79,508 KB
testcase_18 AC 93 ms
87,268 KB
testcase_19 AC 129 ms
99,784 KB
testcase_20 AC 92 ms
87,348 KB
testcase_21 AC 118 ms
77,888 KB
testcase_22 AC 125 ms
77,300 KB
testcase_23 AC 112 ms
77,284 KB
testcase_24 AC 122 ms
78,056 KB
testcase_25 AC 127 ms
77,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

T=int(input())

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