結果
| 問題 |
No.1823 Tricolor Dango
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2022-01-28 21:24:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 303 bytes |
| コンパイル時間 | 443 ms |
| コンパイル使用メモリ | 82,052 KB |
| 実行使用メモリ | 99,840 KB |
| 最終ジャッジ日時 | 2024-12-30 04:35:55 |
| 合計ジャッジ時間 | 3,518 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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