結果

問題 No.1823 Tricolor Dango
ユーザー irumo8202irumo8202
提出日時 2022-01-28 22:05:35
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 198 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 1,421 ms
コンパイル使用メモリ 86,608 KB
実行使用メモリ 100,372 KB
最終ジャッジ日時 2023-08-28 20:03:25
合計ジャッジ時間 4,704 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,932 KB
testcase_01 AC 188 ms
78,512 KB
testcase_02 AC 187 ms
78,028 KB
testcase_03 AC 198 ms
78,256 KB
testcase_04 AC 132 ms
77,544 KB
testcase_05 AC 130 ms
77,568 KB
testcase_06 AC 130 ms
77,464 KB
testcase_07 AC 89 ms
76,592 KB
testcase_08 AC 87 ms
76,376 KB
testcase_09 AC 90 ms
76,784 KB
testcase_10 AC 88 ms
76,768 KB
testcase_11 AC 88 ms
76,532 KB
testcase_12 AC 89 ms
76,776 KB
testcase_13 AC 86 ms
77,580 KB
testcase_14 AC 87 ms
77,716 KB
testcase_15 AC 85 ms
77,580 KB
testcase_16 AC 82 ms
80,716 KB
testcase_17 AC 80 ms
80,328 KB
testcase_18 AC 91 ms
88,204 KB
testcase_19 AC 123 ms
100,372 KB
testcase_20 AC 90 ms
88,172 KB
testcase_21 AC 165 ms
77,900 KB
testcase_22 AC 184 ms
78,128 KB
testcase_23 AC 153 ms
79,136 KB
testcase_24 AC 163 ms
78,236 KB
testcase_25 AC 186 ms
78,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N = int(input())
    A = list(map(int, input().split()))

    sumA = sum(A)
    x = sumA / 3
    flg = True
    if x != int(x):
        flg = False
    for a in A:
        if a > x:
            flg = False
    print("Yes" if flg else "No")


T = int(input())
for _ in range(T):
    solve()
0