|
|
back to boardproblem name : scholarship(2056) why wrong ans test case # ?? Plzzz help my code: #include<bits/stdc++.h> using namespace std; int main() { int a[12],n,i; //int n,i; float res,sum=0; cin>>n; for(i=0; i<n; i++) { cin>>a[i]; sum+=a[i]; } res=(float)sum/n; if(res==5) printf("Named\n"); else if(res>=4.5&&res<5) printf("High\n"); else if(res>3&&res<4.5) printf("Common\n"); else printf("None\n"); return 0; } |
|
|