結果

問題 No.1823 Tricolor Dango
ユーザー ShirotsumeShirotsume
提出日時 2021-12-12 17:58:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 156 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,508 KB
最終ジャッジ日時 2024-04-26 19:28:52
合計ジャッジ時間 3,427 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 152 ms
10,752 KB
testcase_02 AC 156 ms
10,624 KB
testcase_03 AC 149 ms
10,752 KB
testcase_04 AC 66 ms
10,752 KB
testcase_05 AC 67 ms
10,624 KB
testcase_06 AC 66 ms
10,624 KB
testcase_07 AC 56 ms
11,008 KB
testcase_08 AC 53 ms
11,008 KB
testcase_09 AC 59 ms
11,008 KB
testcase_10 AC 56 ms
11,136 KB
testcase_11 AC 55 ms
11,008 KB
testcase_12 AC 52 ms
11,136 KB
testcase_13 AC 55 ms
12,736 KB
testcase_14 AC 56 ms
12,596 KB
testcase_15 AC 53 ms
12,428 KB
testcase_16 AC 41 ms
14,628 KB
testcase_17 AC 41 ms
14,824 KB
testcase_18 AC 58 ms
19,820 KB
testcase_19 AC 100 ms
32,508 KB
testcase_20 AC 59 ms
19,640 KB
testcase_21 AC 98 ms
10,624 KB
testcase_22 AC 138 ms
10,624 KB
testcase_23 AC 66 ms
10,624 KB
testcase_24 AC 92 ms
10,752 KB
testcase_25 AC 136 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n = int(input())
    a = list(map(int,input().split()))
    if sum(a) % 3 == 0 and max(a) <= sum(a) // 3:
        return 'Yes'
    else:
        return 'No'

for _ in range(int(input())):
    print(solve())
0