結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-28 23:22:48 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 101 ms / 2,000 ms |
| + 873µs | |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 83,032 KB |
| 実行使用メモリ | 110,036 KB |
| 最終ジャッジ日時 | 2026-10-09 15:25:31 |
| 合計ジャッジ時間 | 3,750 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
t = int(input())
for _ in range(t):
n = int(input())
A = list(map(int, input().split()))
sumA = sum(A)
maxA = max(A)
if sumA % 3 == 0 and maxA <= sumA // 3:
print("Yes")
else:
print("No")