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

why i get Wrong answer
Posted by Kadavr45 5 Apr 2018 22:23
var n,i,o,c,p,x:integer;
     s:real;
begin
s:=0;p:=0;
readln(n);
for i:=1 to n do begin
readln(o);
s:=s+o;
end;
s:=s/n;
if o = 3 then begin
inc(c);
writeln('None');
end;
if s=5 then if (c<>1) then begin
     inc(p);
     writeln('Named');end;
if s>=4.5 then if (c<>1)and (p<>1) then begin
inc(x);
writeln('High'); end;
if (c<>1) and (p<>1) and (x<>1) then
writeln('Common');
end.

Edited by author 05.04.2018 22:47