結果

問題 No.1823 Tricolor Dango
ユーザー prussian_coderprussian_coder
提出日時 2022-01-30 13:26:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 100,576 KB
最終ジャッジ日時 2023-09-02 01:32:45
合計ジャッジ時間 5,022 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,316 KB
testcase_01 AC 203 ms
78,860 KB
testcase_02 AC 177 ms
78,596 KB
testcase_03 AC 176 ms
78,408 KB
testcase_04 AC 124 ms
77,780 KB
testcase_05 AC 124 ms
77,556 KB
testcase_06 AC 122 ms
77,556 KB
testcase_07 AC 84 ms
76,656 KB
testcase_08 AC 82 ms
76,924 KB
testcase_09 AC 83 ms
76,696 KB
testcase_10 AC 82 ms
76,952 KB
testcase_11 AC 81 ms
76,684 KB
testcase_12 AC 82 ms
76,900 KB
testcase_13 AC 81 ms
78,140 KB
testcase_14 AC 81 ms
77,908 KB
testcase_15 AC 79 ms
76,932 KB
testcase_16 AC 74 ms
78,768 KB
testcase_17 AC 74 ms
78,736 KB
testcase_18 AC 81 ms
83,804 KB
testcase_19 AC 113 ms
100,576 KB
testcase_20 AC 79 ms
83,932 KB
testcase_21 AC 163 ms
79,892 KB
testcase_22 AC 176 ms
78,884 KB
testcase_23 AC 146 ms
79,376 KB
testcase_24 AC 161 ms
80,224 KB
testcase_25 AC 179 ms
78,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q=int(input())
for _ in range(Q):
    N=int(input())
    A=[int(x) for x in input().split()]
    if sum(A)%3!=0 or max(A)>sum(A)//3:
        print("No")
    else:
        print("Yes")
0