結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-14 14:12:41 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 115 ms / 2,000 ms |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 85,240 KB |
| 実行使用メモリ | 107,712 KB |
| 最終ジャッジ日時 | 2026-04-08 12:41:10 |
| 合計ジャッジ時間 | 4,186 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
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')