ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2056. Scholarship

Visual C++ Accepted
Posted by mNT 25 Jul 2018 00:46
#include <iostream>

using namespace std;



int main(){
int a,b = 0,c = 0,d = 0;
int ocenki[20];
cin » a;

for (int i = 1; i <= a; i++) cin » ocenki[i];
for (int i = 1; i <= a; i++){
if (ocenki[i] == 5){
b++;
}
else if (ocenki[i] == 4){
c++;
}
else if (ocenki[i] == 3){
d++;
}
}
if (d > 0){
cout « "None" « endl;
}
else if (b == a){
cout « "Named" « endl;
}
else if (c > b){
cout « "Common" « endl;
}
else if (c = b){
cout « "High" « endl;
}
return 0;
}
Re: Visual C++ Accepted
Posted by △@|\|11L 17 Nov 2020 15:23
No accepted