0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 11:11:59 +00:00
OI-codes/CodeForces/1615/A/A.cpp

22 lines
314 B
C++

#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int t, n, x, s;
int main() {
cin >> t;
while (t--) {
s = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> x;
s += x;
}
cout << !!(s % n) << endl;
}
return 0;
}