結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
ikoma
|
| 提出日時 | 2022-01-28 23:48:59 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 63 ms / 2,000 ms |
| + 931µs | |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 81,372 KB |
| 実行使用メモリ | 108,728 KB |
| 最終ジャッジ日時 | 2026-10-09 15:46:05 |
| 合計ジャッジ時間 | 3,871 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for t in range(T):
n=int(input())
A=list(map(int,input().split()))
Asum = sum(A)
print("Yes" if Asum%3==0 and max(A)<=Asum//3 else "No")
ikoma