結果
| 問題 |
No.1823 Tricolor Dango
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-14 14:12:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 2,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 82,704 KB |
| 実行使用メモリ | 101,896 KB |
| 最終ジャッジ日時 | 2024-09-20 00:20:18 |
| 合計ジャッジ時間 | 4,477 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')