文件目录

#include <iostream>
using namespace std;
int main()
{
    int t;
    cin >> t;
    while (t--)
    {
        int n;
        cin >> n;
        int a[10005] = {};
        int sum[10005] = {};
        for (int i = 1; i <= n; i++)
        {
            scanf("%d", a + i);
            sum[i] = sum[i - 1] + a[i];
        }
        bool f = false;
        for (int i = 1; i <= n; i++)
        {
            if (sum[i] * 2 < sum[n])
                continue;
            if (sum[i] * 2 == sum[n])
                f = true;
            break;
        }
        if (f)
            cout << "Yes\n";
        else
            cout << "No\n";
    }
    return 0;
}