pradeepm wrote:Hi!!
I feel this problem is very simple but i keep getting WA. isnt the answer same for 1960-1969,1970-1979,...
please give me some test cases. please help me..

well, biginteger method would not be so fast,
since artimethic using BigInteger is too slow to process such a big number,
thus you cannot use BIGINTEGER method!

Think about logarithms, then problem becomes more simple.

isnt the answer going to be
the 21 values
for the set of years??
if yes then why am i getting WA?otherwise where am i wrong?
is there any boundary condition?

Last edited by Ankur Jaiswal on Fri May 12, 2006 10:49 pm, edited 1 time in total.