結果

問題 No.1823 Tricolor Dango
ユーザー pluto77pluto77
提出日時 2022-01-31 16:08:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 461 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 100,452 KB
最終ジャッジ日時 2023-09-02 02:14:55
合計ジャッジ時間 5,197 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,308 KB
testcase_01 AC 190 ms
78,784 KB
testcase_02 AC 183 ms
78,596 KB
testcase_03 AC 184 ms
78,516 KB
testcase_04 AC 128 ms
77,716 KB
testcase_05 AC 129 ms
77,636 KB
testcase_06 AC 127 ms
77,916 KB
testcase_07 AC 89 ms
76,716 KB
testcase_08 AC 88 ms
77,020 KB
testcase_09 AC 88 ms
76,656 KB
testcase_10 AC 89 ms
76,704 KB
testcase_11 AC 88 ms
76,576 KB
testcase_12 AC 86 ms
76,572 KB
testcase_13 AC 84 ms
77,724 KB
testcase_14 AC 84 ms
77,620 KB
testcase_15 AC 82 ms
77,716 KB
testcase_16 AC 78 ms
80,304 KB
testcase_17 AC 79 ms
80,384 KB
testcase_18 AC 88 ms
88,428 KB
testcase_19 AC 121 ms
100,452 KB
testcase_20 AC 88 ms
88,420 KB
testcase_21 AC 168 ms
79,920 KB
testcase_22 AC 180 ms
78,628 KB
testcase_23 AC 156 ms
78,908 KB
testcase_24 AC 167 ms
79,860 KB
testcase_25 AC 191 ms
80,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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