結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-24 21:40:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 94,836 KB |
| 最終ジャッジ日時 | 2024-07-02 00:42:27 |
| 合計ジャッジ時間 | 16,921 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 TLE * 3 -- * 7 |
ソースコード
for _ in range(int(input())):
N = int(input())
A = list(map(int, input().split()))
iO = (sum(A) % 3 == 0)
for a in A:
iO &= (a <= sum(A) // 3)
print("Yes" if iO else "No")