結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2022-09-06 16:06:02 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 73 ms / 2,000 ms |
| + 19µs | |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 35,836 KB |
| 最終ジャッジ日時 | 2026-09-27 15:53:10 |
| 合計ジャッジ時間 | 4,971 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
from collections import defaultdict
from pickletools import read_decimalnl_long
import sys
readline=sys.stdin.readline
write=sys.stdout.write
import itertools
T=int(readline())
for t in range(T):
N=int(readline())
A=list(map(int,readline().split()))
ans="Yes"
if sum(A)%3:
ans="No"
if max(A)>sum(A)//3:
ans="No"
print(ans)
vwxyz