0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 18:52:02 +00:00

A - Closing The Gap

https://codeforces.com/contest/1615/submission/140454599
This commit is contained in:
Baoshuo Ren 2021-12-24 22:42:48 +08:00
parent 3d1f4438b6
commit 2784afa33b
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

21
CodeForces/1615/A/A.cpp Normal file
View 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;
}