s,i,j,k,m,n:integer;
begin
read(n);
s:=n mod 16;
r:='hong';
w:='bai';
g:='qing';
y:='huang';
if s=1 then writeln(r)else
if s=2 then writeln(w)else
if s=3 then writeln(g)else
if s=4 then writeln(y)else
if s=5 then writeln(w)else
if s=6 then writeln(g)else
if s=7 then writeln(y)else
if s=8 then writeln(r)else
if s=9 then writeln(g)else
if s=10 then writeln(y)else
if s=11 then writeln(r)else
if s=12 then writeln(w)else
if s=13 then writeln(y)else
if s=14 then writeln(r)else
if s=15 then writeln(w)
else if (s=0) then writeln(g);
if (s=1)or(s=2)or(s=3)or(s=4) then write(r,' ',w,' ',g,' ',y) else
if (s=5)or(s=6)or(s=7)or(s=8) then write(w,' ',g,' ',y,' ',r) else
if (s=9)or(s=10)or(s=11)or(s=12) then write(g,' ',y,' ',r,' ',w)
else if (s=13)or(s=14)or(s=15)or(s=0) then write(y,' ',r,' ',w,' ',g);
readln;
readln;
end.
只过了4个点
种菊 P122[/quote]
看题,n<maxlongint,所以n应该是:longint