結果

問題 No.1823 Tricolor Dango
ユーザー 👑 H20H20
提出日時 2022-01-28 21:29:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 819 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 100,428 KB
最終ジャッジ日時 2023-08-28 19:11:42
合計ジャッジ時間 4,747 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,228 KB
testcase_01 AC 191 ms
78,508 KB
testcase_02 AC 184 ms
78,352 KB
testcase_03 AC 187 ms
78,268 KB
testcase_04 AC 130 ms
77,476 KB
testcase_05 AC 131 ms
77,420 KB
testcase_06 AC 131 ms
77,488 KB
testcase_07 AC 89 ms
76,712 KB
testcase_08 AC 89 ms
76,500 KB
testcase_09 AC 90 ms
76,552 KB
testcase_10 AC 90 ms
76,648 KB
testcase_11 AC 87 ms
76,320 KB
testcase_12 AC 88 ms
76,432 KB
testcase_13 AC 86 ms
77,448 KB
testcase_14 AC 85 ms
77,324 KB
testcase_15 AC 85 ms
77,520 KB
testcase_16 AC 78 ms
80,528 KB
testcase_17 AC 81 ms
80,028 KB
testcase_18 AC 90 ms
88,236 KB
testcase_19 AC 129 ms
100,428 KB
testcase_20 AC 89 ms
87,972 KB
testcase_21 AC 174 ms
79,712 KB
testcase_22 AC 184 ms
78,168 KB
testcase_23 AC 157 ms
78,688 KB
testcase_24 AC 171 ms
79,584 KB
testcase_25 AC 202 ms
80,280 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)*3<=sum(A):
        print('Yes')
    else:
        print('No')
0