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 1785. Lost in Localization

wa21
Posted by Misha 20 Aug 2013 11:59
if a in [1..4] then write('few');
   if a in [5..9] then write('several');
   if a in [10..19] then write('pack');
   if a in [20..49] then write('lots');
   if a in [50..99] then write('horde');
   if a in [100..249] then write('throng');
   if a in [250..499] then write('swarm');
   if a in [500..999] then write('zounds');
   if a > 999 then write('legion');
Re: wa21
Posted by ViRioN 16 Jan 2014 20:05
Got same problem and my program is identical, have you found what the issue is ?
Re: wa21
Posted by lylihongyu 14 Feb 2014 12:37
new line
Re: wa21
Posted by Mescheryakov_Kirill 27 Mar 2014 12:42
Try through a "case"

case of a
1..4:write('few');
5..9:write('several');
...
1000 2000..:write('legion');
end;
end.