結果

問題 No.1823 Tricolor Dango
ユーザー syunsukesyunsuke
提出日時 2022-01-29 10:58:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 100,620 KB
最終ジャッジ日時 2023-08-30 08:20:58
合計ジャッジ時間 5,259 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,480 KB
testcase_01 AC 191 ms
78,736 KB
testcase_02 AC 193 ms
78,524 KB
testcase_03 AC 194 ms
78,564 KB
testcase_04 AC 135 ms
77,716 KB
testcase_05 AC 132 ms
77,608 KB
testcase_06 AC 134 ms
77,920 KB
testcase_07 AC 94 ms
76,500 KB
testcase_08 AC 93 ms
76,488 KB
testcase_09 AC 91 ms
76,568 KB
testcase_10 AC 93 ms
76,696 KB
testcase_11 AC 92 ms
76,428 KB
testcase_12 AC 94 ms
76,620 KB
testcase_13 AC 91 ms
77,884 KB
testcase_14 AC 92 ms
77,776 KB
testcase_15 AC 90 ms
77,464 KB
testcase_16 AC 85 ms
80,200 KB
testcase_17 AC 85 ms
80,404 KB
testcase_18 AC 93 ms
88,100 KB
testcase_19 AC 127 ms
100,620 KB
testcase_20 AC 93 ms
88,312 KB
testcase_21 AC 173 ms
78,312 KB
testcase_22 AC 188 ms
78,752 KB
testcase_23 AC 162 ms
78,992 KB
testcase_24 AC 172 ms
78,408 KB
testcase_25 AC 188 ms
78,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for i in range(T):
    N = int(input())
    L = list(map(int,input().split()))
    S = sum(L)
    
    if S%3 != 0:
        print("No")
    elif max(L) > S//3:
        print("No")
    else:
        print("Yes")
0