#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <set>
using namespace std;
int main() {
int t;
cin >> t;
while(t--){
int n, x = 0, y = 1e9, num = 0;
cin >> n;
vector<int> a(n), b(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
for(int i = 0; i < n; i++){
cin >> b[i];
}
for(int i = 0; i < n; i++){
int m = a[i] - b[i];
if(m < 0){
num ++;
x -= m;
}
else{
y = min(y, m);
}
}
cout << x << " " << y << " " << num;
if(x <= y && num < 2)cout << "YES\n";
else cout << "NO\n";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8c2V0Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgdDsKICAgIGNpbiA+PiB0OwogICAgd2hpbGUodC0tKXsKICAgICAgICBpbnQgbiwgeCA9IDAsIHkgPSAxZTksIG51bSA9IDA7CiAgICAgICAgY2luID4+IG47CiAgICAgICAgdmVjdG9yPGludD4gYShuKSwgYihuKTsKICAgICAgICBmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKXsKICAgICAgICAgICAgY2luID4+IGFbaV07CiAgICAgICAgfQogICAgICAgIGZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspewogICAgICAgICAgICBjaW4gPj4gYltpXTsKICAgICAgICB9CiAgICAgICAgZm9yKGludCBpID0gMDsgaSA8IG47IGkrKyl7CiAgICAgICAgICAgIGludCBtID0gYVtpXSAtIGJbaV07CiAgICAgICAgICAgIGlmKG0gPCAwKXsKICAgICAgICAgICAgCW51bSArKzsKICAgICAgICAgICAgICAgIHggLT0gbTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlewogICAgICAgICAgICAgICAgeSA9IG1pbih5LCBtKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBjb3V0IDw8IHggPDwgIiAiIDw8IHkgPDwgIiAiIDw8IG51bTsKICAgICAgICBpZih4IDw9IHkgJiYgbnVtIDwgMiljb3V0IDw8ICJZRVNcbiI7CiAgICAgICAgZWxzZSBjb3V0IDw8ICJOT1xuIjsKICAgIH0KfQ==