結果

問題 No.1823 Tricolor Dango
ユーザー tktk_snsntktk_snsn
提出日時 2022-01-28 21:39:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 676 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 29,932 KB
最終ジャッジ日時 2023-08-28 19:25:29
合計ジャッジ時間 3,409 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,800 KB
testcase_01 AC 120 ms
7,776 KB
testcase_02 AC 123 ms
7,780 KB
testcase_03 AC 122 ms
7,776 KB
testcase_04 AC 47 ms
8,180 KB
testcase_05 AC 47 ms
8,164 KB
testcase_06 AC 47 ms
8,204 KB
testcase_07 AC 37 ms
8,576 KB
testcase_08 AC 35 ms
8,624 KB
testcase_09 AC 38 ms
8,576 KB
testcase_10 AC 38 ms
8,668 KB
testcase_11 AC 36 ms
8,636 KB
testcase_12 AC 33 ms
8,648 KB
testcase_13 AC 39 ms
10,824 KB
testcase_14 AC 37 ms
10,804 KB
testcase_15 AC 35 ms
11,236 KB
testcase_16 AC 26 ms
12,724 KB
testcase_17 AC 27 ms
12,036 KB
testcase_18 AC 44 ms
18,684 KB
testcase_19 AC 85 ms
29,932 KB
testcase_20 AC 44 ms
18,448 KB
testcase_21 AC 78 ms
7,864 KB
testcase_22 AC 112 ms
7,804 KB
testcase_23 AC 52 ms
8,308 KB
testcase_24 AC 76 ms
7,780 KB
testcase_25 AC 114 ms
7,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def test(N, A):
    if sum(A) % 3 != 0:
        return False
    return sum(A) // 3 >= max(A)


T = int(input())
for _ in range(T):
    N = int(input())
    A = list(map(int, input().split()))
    if test(N, A):
        print("Yes")
    else:
        print("No")
0