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

Wrong answer #17 (C++)
Posted by Kirill 2 Apr 2015 11:56
#include <iostream>

using namespace std;

int main() {
    int N;
    cin >> N;

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

    return 0;
}

Edited by author 02.04.2015 12:07
Re: Wrong answer #17 (C++)
Posted by TSOGU|ALEX 30 May 2015 00:10
cout << "orde"; wrong
cout << "horde"; ac