結果

問題 No.1823 Tricolor Dango
ユーザー V_MelvilleV_Melville
提出日時 2022-01-29 19:38:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 858 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 29,980 KB
最終ジャッジ日時 2023-08-30 19:22:20
合計ジャッジ時間 4,307 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,760 KB
testcase_01 AC 123 ms
7,844 KB
testcase_02 AC 124 ms
7,896 KB
testcase_03 AC 124 ms
7,784 KB
testcase_04 AC 47 ms
8,184 KB
testcase_05 AC 47 ms
8,348 KB
testcase_06 AC 48 ms
8,236 KB
testcase_07 AC 37 ms
8,624 KB
testcase_08 AC 36 ms
8,620 KB
testcase_09 AC 39 ms
8,532 KB
testcase_10 AC 39 ms
8,572 KB
testcase_11 AC 38 ms
8,580 KB
testcase_12 AC 34 ms
8,344 KB
testcase_13 AC 40 ms
10,676 KB
testcase_14 AC 38 ms
10,620 KB
testcase_15 AC 36 ms
11,104 KB
testcase_16 AC 27 ms
12,648 KB
testcase_17 AC 27 ms
12,128 KB
testcase_18 AC 44 ms
18,716 KB
testcase_19 AC 82 ms
29,980 KB
testcase_20 AC 44 ms
18,420 KB
testcase_21 AC 79 ms
7,844 KB
testcase_22 AC 116 ms
7,956 KB
testcase_23 AC 52 ms
7,844 KB
testcase_24 AC 77 ms
7,836 KB
testcase_25 AC 116 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    s = sum(a)
    mx = max(a)
    print("Yes") if s % 3 == 0 and mx <= s/3 else print("No")
0