A. Dima and Friends【1000 / 思维】
作者:互联网
https://codeforces.com/problemset/problem/272/A
#include<bits/stdc++.h>
using namespace std;
int a[105],n,sum;
int main(void)
{
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i],sum+=a[i];
int cnt=0;
for(int i=1;i<=5;i++)
{
if((sum+i)%(n+1)!=1) cnt++;
}
cout<<cnt<<endl;
}
标签:cnt,Dima,cout,int,sum,272,Friends,1000 来源: https://blog.csdn.net/bettle_king/article/details/120911525