結果

問題 No.1823 Tricolor Dango
ユーザー 330Xs330Xs
提出日時 2022-01-30 11:41:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 258 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 100,736 KB
最終ジャッジ日時 2023-09-02 01:30:50
合計ジャッジ時間 4,905 ms
ジャッジサーバーID
(参考情報)
judge11 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,428 KB
testcase_01 AC 258 ms
78,904 KB
testcase_02 AC 187 ms
78,144 KB
testcase_03 AC 186 ms
79,008 KB
testcase_04 AC 129 ms
77,732 KB
testcase_05 AC 131 ms
77,432 KB
testcase_06 AC 131 ms
77,636 KB
testcase_07 AC 88 ms
76,652 KB
testcase_08 AC 89 ms
76,652 KB
testcase_09 AC 95 ms
76,648 KB
testcase_10 AC 91 ms
76,624 KB
testcase_11 AC 92 ms
76,560 KB
testcase_12 AC 88 ms
76,712 KB
testcase_13 AC 86 ms
77,816 KB
testcase_14 AC 87 ms
77,752 KB
testcase_15 AC 85 ms
77,456 KB
testcase_16 AC 80 ms
80,432 KB
testcase_17 AC 82 ms
80,232 KB
testcase_18 AC 89 ms
88,220 KB
testcase_19 AC 127 ms
100,736 KB
testcase_20 AC 88 ms
88,112 KB
testcase_21 AC 166 ms
78,300 KB
testcase_22 AC 181 ms
78,932 KB
testcase_23 AC 153 ms
79,156 KB
testcase_24 AC 164 ms
78,408 KB
testcase_25 AC 181 ms
78,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for _ in range(n):
    l = int(input())
    a = list(map(int,input().split()))
    a_sum = sum(a)
    if(a_sum % 3 != 0):
        print('No')
    else:    
        syou = a_sum // 3
        if(max(a) > syou):
            print('No')
        else:
            print('Yes')
0