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

WA #22 why?
Posted by TARASHI {Kutaisi SU3} (Georgia) 8 Mar 2012 01:00
#include <iostream>
using namespace std;

void main()
{
    int n;
    cin >> n;

    if( (n >= 1) && (n <= 4) )    cout << "few";
    if( (n >= 5) && (n <=9 ) )    cout << "several";
    if( (n >= 10) && (n <= 19) )    cout << "pack";
    if( (n >= 20) && (n <= 49) )    cout << "lots";
    if( (n >= 50) && (n <= 99) )    cout << "horde";
    if( (n >= 100) && (n <= 249) )    cout << "throng";
    if( (n >= 250) && (n <= 449) )    cout << "swarm";
    if( (n >= 500) && (n <= 999) )    cout << "zounds";
    if( (n >= 1000) )    cout << "legion";

}
Re: WA #22 why?
Posted by Noob 8 Mar 2012 01:19
Try this test:

461
Re: WA #22 why?
Posted by Andi 30 Dec 2012 03:49
from 250 to 499 !!!!