mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
A - Closing The Gap
https://codeforces.com/contest/1615/submission/140454599
This commit is contained in:
parent
3d1f4438b6
commit
2784afa33b
21
CodeForces/1615/A/A.cpp
Normal file
21
CodeForces/1615/A/A.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user