Its "LivE". I do this simply because I can just comment out that code and
it will work with stdin.
Sample -
try {
System.setIn(newFileInputStream("/Users/akshaya.vishnu/Downloads/A-large-practice.in"
));
} catch (FileNotFoundException e) {}
Scanner in = new Scanner(System.in);
// you can read data using in.nextInt(), in.next() etc.
For testing, if you want to type in console input, you can just comment out
that code. :)
On Sun, May 12, 2013 at 7:26 PM, Vaibhav Tulsyan
<[email protected]>wrote:
> Can you tell me your username please? I'll read from your code.
>
>
> On Sun, May 12, 2013 at 7:14 PM, Akshay Vishnu <[email protected]>wrote:
>
>> I usually redirect input to file directly instead of copy paste. No
>> buffer issues. Use System.setIn(new FileInputStream("path")). Similarly I
>> redirect output using eclipsr run configurations.
>> On May 12, 2013 7:11 PM, "Vaibhav Tulsyan" <[email protected]>
>> wrote:
>>
>>> I got the Small Input correct.
>>> When I paste the large input in my Eclipse console, I get output for the
>>> last 25 cases, number as Case#1: , Case#2, and so on..
>>> even though Last 25 cases should be Case #75: , Case#76: and so on..
>>> ideally..
>>> Any idea what could be the problem?
>>> I am using InputStreamReader and BufferedReader for i/o.
>>>
>>> --
>>> Regards,
>>> Vaibhav Tulsyan.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Code Jam" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Code Jam" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Regards,
> Vaibhav Tulsyan.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.