#5366: jkljk6


lsfengjingxing (lsfengjingxing)

學校 : 上海市娄山中学
編號 : 18793
來源 : [103.220.77.6]
最後登入時間 :
2021-07-02 10:45:59
d980. 11479 - Is this the easiest problem? -- UVa11479 | From: [115.173.237.7] | 發表日期 : 2011-07-14 15:39

var
  n,i : longint;
  a,b,c : int64;
begin
    readln(n);
    for i :=1 to n do begin
      readln(a,b,c);
      if (a+b<=c) or (a+c<=b) or (b+c<=a) then writeln('Case ',i,': Invalid')
                                          else
        if (a=b) and (b=c) and (a=c) then writeln('Case ',i,': Equilateral')
                                     else if (a=b) or (b=c) or (a=c) then
                                             writeln('Case ',i,': Isosceles')
                                                                     else
                                                                   writeln('Case ',i,': Scalene');
    end;
end.  
ZeroJudge Forum