Search found 46 matches

by gr81
Mon Jan 07, 2013 6:04 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 24816

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

got AC, i forgot if ( n < 4 )...would not get processed...
by gr81
Mon Jan 07, 2013 12:27 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 24816

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

getting WA, please have a look at my code...at http://ideone.com/dR8w5y
by gr81
Fri Jan 04, 2013 8:00 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 29401

Re: 371 - Ackermann Functions... Why WA????

thanks for clarification, but issue was something else...got AC.
by gr81
Thu Jan 03, 2013 5:02 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 29401

Re: 371 - Ackermann Functions... Why WA????

I am getting TLE...in above test case.
by gr81
Thu Jan 03, 2013 5:01 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 29401

Re: 371 - Ackermann Functions... Why WA????

did some one test this test case
3 2147483647

how long it will take.....
by gr81
Thu Dec 20, 2012 7:22 am
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 44614

Re: 11340 - Newspaper

thanks brian...that's was kewl..
by gr81
Wed Dec 19, 2012 8:20 am
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 44614

Re: 11340 - Newspaper

if i don't have any cost for spaces, I think it will not affect the total cost.
in case publisher is charging for spaces too, how would I specify the cost of spaces..like we are doing it for other char.

A 100
, 10
<-------IS THERE ANY SYNTAX FOR THAT.

Could you please explain more....
by gr81
Tue Dec 18, 2012 7:47 pm
Forum: Volume 114 (11400-11499)
Topic: 11448 - Who said crisis?
Replies: 13
Views: 5271

Re: 11448 - Who Said Crisis?

thanks, with previous code I failed one test case...i got AC. I don't know ABC of java....
by gr81
Sat Dec 15, 2012 7:37 pm
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 44614

Re: 11340 - Newspaper

got WA in this, my code is at http://ideone.com/GETlkg.
by gr81
Sat Dec 15, 2012 7:23 pm
Forum: Volume 114 (11400-11499)
Topic: 11448 - Who said crisis?
Replies: 13
Views: 5271

Re: 11448 - Who Said Crisis?

Hi Brian,

I have modified code at http://ideone.com/66lkOP, and it passes all the input. kindly suggest.
by gr81
Tue Dec 11, 2012 7:08 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37738

Re: 11059 - Maximum Product

thanks brian, is there any O(n) solution for that, can we solve this problem using modified Kadane algorithm...
by gr81
Mon Dec 10, 2012 12:44 pm
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37738

Re: 11059 - Maximum Product

what would be the output for the following test case.

2
-1 -2

6
2 5 -1 2 -3 0

do i need to consider the -ve number, if I go with problem statement, output for 1st test case should be 0 and for 2nd test case should 10, but UVA toolkit gives different output. please suggest.
by gr81
Wed Dec 05, 2012 9:11 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37893

Re: 10062 - Tell Me the Frequencies!

Code: Select all


Removed.

by gr81
Fri Nov 30, 2012 9:32 am
Forum: Volume 114 (11400-11499)
Topic: 11448 - Who said crisis?
Replies: 13
Views: 5271

Re: 11448 - Who Said Crisis?

Thanks Brian, I will have to modify the code for considering -ve number too...I will try that..
by gr81
Thu Nov 22, 2012 8:58 pm
Forum: Volume 114 (11400-11499)
Topic: 11448 - Who said crisis?
Replies: 13
Views: 5271

Re: 11448 - Who Said Crisis?

please help...does this problem solves the -ve number.I am ignoring the -ve integers in input. here is my input. 21 00002 09 009 002 900 200 0 0 10 3 1000 9 1000 999 4 9 0 8 5 2 1000 20000 999 997 16555 17000 10000 1 1 100000 2000000000000000000000000000000000000000000000000 100000000000000000000000...

Go to advanced search