0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 06:32:00 +00:00
OI-codes/Codeforces/1615/A/A.cpp
2022-04-01 18:33:24 +08:00

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