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

C# что не так?
Posted by Skylock 1 Dec 2020 17:15
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp9
{
    class Program
    {
        static void Main(string[] args)
        {
            int a1;
            a1 = Convert.ToInt32(Console.ReadLine());
            if (a1 >= 1 && a1 <= 2000)
            if (a1 >= 1 && a1 <= 4)
            {
                Console.WriteLine("few");
            }
            if (a1 >= 5 && a1 <= 9)
            {
                Console.WriteLine("several");
            }
            if (a1 >= 10 && a1 <= 19)
            {
                Console.WriteLine("pack");
            }
            if (a1 >= 20 && a1 <= 49)
            {
                Console.WriteLine("lots");
            }
            if (a1 >= 50 && a1 <= 99)
            {
                Console.WriteLine("horde");
            }
            if (a1 >= 100 && a1 <= 249)
            {
                Console.WriteLine("thorg");
            }
            if (a1 >= 250 && a1 <= 499)
            {
                Console.WriteLine("swarm");
            }
            if (a1 >= 500 && a1 <= 999)
            {
                Console.WriteLine("zounds");
            }
            if (a1 >= 1000)
            {
                Console.WriteLine("legion");
            }
            return;
        }

    }
}
Re: C# что не так?
Posted by aleonov 1 Dec 2020 19:38
thorg -> throng