Advertisement
Saleh127

CF 246B

Oct 5th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define test int t; cin>>t; for(int cs=1;cs<=t;cs++)
  5. int main()
  6. {
  7. ios_base::sync_with_stdio(0);
  8. cin.tie(0);cout.tie(0);
  9.  
  10.  
  11. ll a,c,d,e,f,i,j,k,l;
  12.  
  13. cin>>a;
  14. e=a;
  15. d=0;
  16. while(e--)
  17. {
  18. cin>>c;
  19. d+=c;
  20. }
  21. if(d%a) cout<<a-1<<endl;
  22. else cout<<a<<endl;
  23. return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement