結果

問題 No.1823 Tricolor Dango
ユーザー nohakai3nohakai3
提出日時 2022-06-25 10:24:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 29,792 KB
最終ジャッジ日時 2023-08-09 00:25:27
合計ジャッジ時間 6,051 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,776 KB
testcase_01 AC 129 ms
7,748 KB
testcase_02 AC 122 ms
7,736 KB
testcase_03 AC 123 ms
7,732 KB
testcase_04 AC 48 ms
8,212 KB
testcase_05 AC 47 ms
8,140 KB
testcase_06 AC 47 ms
7,688 KB
testcase_07 AC 37 ms
8,476 KB
testcase_08 AC 36 ms
8,584 KB
testcase_09 AC 40 ms
8,492 KB
testcase_10 AC 39 ms
8,512 KB
testcase_11 AC 38 ms
8,472 KB
testcase_12 AC 35 ms
8,432 KB
testcase_13 AC 39 ms
10,532 KB
testcase_14 AC 37 ms
10,528 KB
testcase_15 AC 36 ms
11,044 KB
testcase_16 AC 27 ms
12,544 KB
testcase_17 AC 27 ms
12,044 KB
testcase_18 AC 45 ms
18,624 KB
testcase_19 AC 82 ms
29,792 KB
testcase_20 AC 45 ms
18,348 KB
testcase_21 AC 78 ms
7,784 KB
testcase_22 AC 115 ms
7,832 KB
testcase_23 AC 51 ms
7,748 KB
testcase_24 AC 76 ms
7,672 KB
testcase_25 AC 116 ms
7,736 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 sum(A)//3>=max(A):
        print("Yes")
    else:
        print("No")
0