結果

問題 No.1823 Tricolor Dango
ユーザー dangodango
提出日時 2023-06-24 21:44:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 100,404 KB
最終ジャッジ日時 2023-09-14 17:39:25
合計ジャッジ時間 5,471 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,376 KB
testcase_01 AC 209 ms
78,204 KB
testcase_02 AC 187 ms
78,372 KB
testcase_03 AC 186 ms
78,040 KB
testcase_04 AC 131 ms
77,568 KB
testcase_05 AC 130 ms
77,668 KB
testcase_06 AC 131 ms
77,428 KB
testcase_07 AC 90 ms
76,520 KB
testcase_08 AC 89 ms
76,872 KB
testcase_09 AC 91 ms
76,360 KB
testcase_10 AC 90 ms
76,504 KB
testcase_11 AC 91 ms
76,876 KB
testcase_12 AC 89 ms
76,456 KB
testcase_13 AC 87 ms
77,692 KB
testcase_14 AC 87 ms
77,352 KB
testcase_15 AC 84 ms
77,424 KB
testcase_16 AC 79 ms
80,232 KB
testcase_17 AC 81 ms
80,160 KB
testcase_18 AC 90 ms
88,336 KB
testcase_19 AC 126 ms
100,404 KB
testcase_20 AC 92 ms
88,352 KB
testcase_21 AC 176 ms
78,428 KB
testcase_22 AC 185 ms
78,220 KB
testcase_23 AC 157 ms
78,744 KB
testcase_24 AC 172 ms
79,672 KB
testcase_25 AC 193 ms
79,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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