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 1330. Intervals

C# and TL#20 => maybe your input is too slow
Posted by Leonid (SLenik) Andrievskiy 28 May 2011 15:39
I recommend you to use the simplest input you have.
1. For a line with one number just use

int.Parse(Console.ReadLine())

2. For a line with two numbers use the simplest parser

string query = Console.ReadLine();
int separator = query.IndexOf(' ');
int a = int.Parse(query.Substring(0, separator)) - 1,
b = int.Parse(query.Substring(separator + 1)) - 1;

Otherwise you 'll get TL.

P.S. Does anybody know a faster input?