結果

問題 No.1823 Tricolor Dango
ユーザー irumo8202irumo8202
提出日時 2022-01-28 22:05:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 102,024 KB
最終ジャッジ日時 2024-06-09 15:10:56
合計ジャッジ時間 3,330 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,396 KB
testcase_01 AC 144 ms
77,536 KB
testcase_02 AC 145 ms
77,324 KB
testcase_03 AC 148 ms
77,720 KB
testcase_04 AC 91 ms
76,412 KB
testcase_05 AC 91 ms
76,356 KB
testcase_06 AC 90 ms
76,308 KB
testcase_07 AC 55 ms
75,520 KB
testcase_08 AC 54 ms
75,300 KB
testcase_09 AC 54 ms
75,368 KB
testcase_10 AC 53 ms
75,488 KB
testcase_11 AC 54 ms
75,532 KB
testcase_12 AC 51 ms
75,128 KB
testcase_13 AC 52 ms
76,696 KB
testcase_14 AC 50 ms
76,580 KB
testcase_15 AC 51 ms
75,892 KB
testcase_16 AC 44 ms
67,744 KB
testcase_17 AC 43 ms
68,144 KB
testcase_18 AC 52 ms
79,416 KB
testcase_19 AC 86 ms
102,024 KB
testcase_20 AC 50 ms
78,648 KB
testcase_21 AC 123 ms
77,320 KB
testcase_22 AC 142 ms
77,304 KB
testcase_23 AC 110 ms
77,776 KB
testcase_24 AC 123 ms
77,536 KB
testcase_25 AC 143 ms
77,356 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