結果
| 問題 | No.1823 Tricolor Dango |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-24 21:40:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 85,032 KB |
| 実行使用メモリ | 174,336 KB |
| 最終ジャッジ日時 | 2026-03-23 04:29:31 |
| 合計ジャッジ時間 | 21,734 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 22 TLE * 3 |
ソースコード
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")