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 1545. Hieroglyphs

Runtime error
Posted by Unfeeling 30 Jun 2013 18:14
using System;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            string [] ch= new string [100];
            string c;
            for (int i=0;i<n;i++)
                ch[i]=Console.ReadLine();
            c=Console.ReadLine();
            for (int i=0;i<n;i++)
            {
                if (c==ch[i].Substring(0,1)) Console.WriteLine(ch[i]);
            }
            Console.ReadKey();
        }
    }
}

what's the problem??? help me please
Re: Runtime error
Posted by Serge 12 Jan 2018 02:44
Use comment for this line (or delete this line)

            //Console.ReadKey();