0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-28 08:36:28 +00:00
OI-codes/CodeForces/1615/A/A.cpp

22 lines
314 B
C++
Raw Normal View History

#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;
}