##
__Make them equal !__

Link to the question : MKEQUAL

###
__HINTS :__

Very simple problem. Pen paper work. Try out with any n numbers such tha sum of n numbers is not divisible ny n and again with n numbers such that this time its divisible. You will definitely get the logic.

###
__SOURCE CODE :__

```
```

`#include<iostream>`

`using namespace std;`

`int main()`

`{`

`int t;`

`cin>>t;`

`while(t--)`

`{`

`int n;`

`cin>>n;`

`int a[n],i;`

`long long int s=0;`

`for(i=0;i<n;i++)`

`{`

`cin>>a[i];`

`s=s+a[i];`

`}`

`if(s%n==0)`

`cout<<n<<endl;`

`else`

`cout<<n-1<<endl;`

`}`

`return 0;`

`}`

## 0 comments:

## Post a Comment