|
|
вернуться в форумWA#8 Послано Piyush 5 окт 2022 11:35 #include <bits/stdc++.h> using namespace std; signed main(){ int n; cin>>n; int sum=0; for(int i=0;i<n;i++){ int x; cin>>x; sum+=x; } double cnt1=(double)sum/(double)n; if(cnt1==3){ cout<<"None"; }else if(cnt1==5){ cout<<"Named"; }else if(cnt1>=4.5 && cnt1!=5){ cout<<"High"; }else if(cnt1!=3 && cnt1!=5 && cnt1<4.5){ cout<<"Common"; } } getting a wrong answer on test 8 |
|
|