結果
問題 |
No.1823 Tricolor Dango
|
ユーザー |
![]() |
提出日時 | 2024-12-13 08:57:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 171 ms / 2,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 430 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 101,760 KB |
最終ジャッジ日時 | 2024-12-13 08:57:18 |
合計ジャッジ時間 | 5,353 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
T = int(input()) for _ in range(T): N = int(input()) A = list(map(int, input().split())) S = sum(A) if S % 3 == 0: S //= 3 print("Yes") if S >= max(A) else print("No") else: print("No")