結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2022-01-28 21:24:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 2,000 ms |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 85,344 KB |
| 実行使用メモリ | 105,880 KB |
| 最終ジャッジ日時 | 2026-06-03 21:08:47 |
| 合計ジャッジ時間 | 3,020 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
import sys
input=sys.stdin.readline
write=sys.stdout.write
T=int(input())
Ans=[0]*T
for t in range(T):
N=int(input())
A=list(map(int,input().split()))
S=sum(A)
if S%3!=0:
continue
if max(A)<=S//3:
Ans[t]=1
write("\n".join(map(lambda x:"Yes" if x else "No",Ans)))
Kazun