結果

問題 No.1823 Tricolor Dango
ユーザー takumiytakumiy
提出日時 2022-11-30 01:23:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,464 KB
最終ジャッジ日時 2024-04-16 13:41:24
合計ジャッジ時間 3,976 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,624 KB
testcase_01 AC 158 ms
10,624 KB
testcase_02 AC 153 ms
10,624 KB
testcase_03 AC 153 ms
10,496 KB
testcase_04 AC 69 ms
10,752 KB
testcase_05 AC 69 ms
10,624 KB
testcase_06 AC 69 ms
10,752 KB
testcase_07 AC 58 ms
11,008 KB
testcase_08 AC 56 ms
11,008 KB
testcase_09 AC 61 ms
11,136 KB
testcase_10 AC 60 ms
11,136 KB
testcase_11 AC 57 ms
11,136 KB
testcase_12 AC 53 ms
11,008 KB
testcase_13 AC 59 ms
13,112 KB
testcase_14 AC 58 ms
13,524 KB
testcase_15 AC 55 ms
13,400 KB
testcase_16 AC 44 ms
14,632 KB
testcase_17 AC 46 ms
14,824 KB
testcase_18 AC 65 ms
19,944 KB
testcase_19 AC 112 ms
32,464 KB
testcase_20 AC 64 ms
19,860 KB
testcase_21 AC 104 ms
10,624 KB
testcase_22 AC 142 ms
10,624 KB
testcase_23 AC 74 ms
10,752 KB
testcase_24 AC 100 ms
10,752 KB
testcase_25 AC 145 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for _ 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