結果

問題 No.1823 Tricolor Dango
ユーザー harapecoharapeco
提出日時 2022-03-14 14:12:41
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 160 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 630 ms
コンパイル使用メモリ 81,604 KB
実行使用メモリ 101,352 KB
最終ジャッジ日時 2023-10-20 04:36:37
合計ジャッジ時間 5,196 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,380 KB
testcase_01 AC 160 ms
77,008 KB
testcase_02 AC 160 ms
77,016 KB
testcase_03 AC 154 ms
77,016 KB
testcase_04 AC 99 ms
75,932 KB
testcase_05 AC 101 ms
75,928 KB
testcase_06 AC 99 ms
75,932 KB
testcase_07 AC 59 ms
75,036 KB
testcase_08 AC 58 ms
75,052 KB
testcase_09 AC 60 ms
75,052 KB
testcase_10 AC 59 ms
75,040 KB
testcase_11 AC 58 ms
75,024 KB
testcase_12 AC 59 ms
75,064 KB
testcase_13 AC 57 ms
76,072 KB
testcase_14 AC 56 ms
75,996 KB
testcase_15 AC 54 ms
75,724 KB
testcase_16 AC 48 ms
68,040 KB
testcase_17 AC 48 ms
68,024 KB
testcase_18 AC 56 ms
78,092 KB
testcase_19 AC 94 ms
101,352 KB
testcase_20 AC 56 ms
78,064 KB
testcase_21 AC 141 ms
76,752 KB
testcase_22 AC 154 ms
76,752 KB
testcase_23 AC 128 ms
76,864 KB
testcase_24 AC 140 ms
76,752 KB
testcase_25 AC 160 ms
77,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())

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