You are not logged in. Please login at to post your questions!


decreasing runtime

hii guys,

just wanted to know is there any other way other than BufferedReader or Scanner to make java program faster if yes will it make any difference in codechef submission and what time difference are we looking at here...!

say it takes 2 input per iteration and iteratation goes upto very large number around 1000000.

asked 07 Jul '13, 09:54

zargus's gravatar image

accept rate: 0%

For one problem LECANDY, I tried to submit using BufferedReader, it gave me "TLE".

When I used Scanner, it gave correct answer, although the time taken in case of Scanner was of 0.46 sec, which was more than TIME limit specified in question, is there some issue with compiler or am I missing something ?


answered 15 Sep, 14:49

akki0214's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 07 Jul '13, 09:54

question was seen: 736 times

last updated: 07 Jul '13, 09:54