Search found 4 matches

by Nishith csedu 1448
Fri Aug 01, 2008 9:33 pm
Forum: Volume 101 (10100-10199)
Topic: 10170 - The Hotel with Infinite Rooms
Replies: 20
Views: 12177

Re: 10170 - The Hotel with Infinite Rooms

Use long long int.
by Nishith csedu 1448
Fri Aug 01, 2008 9:11 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 44040

Re: 10533 - Digit Primes

Your code takes so many times when the input is 1 999999.
You should use faster and most efficient sieve for this problem.
Just think about it." The sum of the digits of a prime number is prime or not''- it can be checked very simply,think about those primes.
Best of luck !!!!!!!!!!!!!!
by Nishith csedu 1448
Thu Jul 10, 2008 10:06 am
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 29066

Re: 355 - The Bases Are Loaded

Maruf check this input..........

Code: Select all

2 10 0
output:

Code: Select all

0 base 2 = 0 base 10 
Hope you will get acc soon. :D :D
by Nishith csedu 1448
Tue Jul 01, 2008 6:36 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 143555

Re: 10038 - Jolly Jumpers

To daichin85,
You should read the input such a way that the differences between adjacent numbers must cover all the numbers from 1 to n-1.
Good luck!!!!!!!!!!!!

Go to advanced search