## Search found 100 matches

Sat Jun 30, 2007 1:50 pm
Forum: Volume 105 (10500-10599)
Topic: 10581 - Partitioning for fun and profit
Replies: 15
Views: 8377
got u .

thanks yaar . i am getting bored of these sorts of silly mistakes
Fri Jun 29, 2007 10:11 am
Forum: Volume 105 (10500-10599)
Topic: 10581 - Partitioning for fun and profit
Replies: 15
Views: 8377
Jan , I am confused with ur output for the input : 61 8 52 Your output : 1 1 1 1 1 2 26 28 but i got same as Riyad bhai : 1 1 1 1 1 1 52 3 i could print the total sequences : 1 -> 1 1 1 1 1 1 1 54 2 -> 1 1 1 1 1 1 2 53 3 -> 1 1 1 1 1 1 3 52 4 -> 1 1 1 1 1 1 4 51 5 -> 1 1 1 1 1 1 5 50 6 -> 1 1 1 1 1 ...
Tue May 08, 2007 9:23 am
Forum: Volume 105 (10500-10599)
Topic: 10570 - Meeting with Aliens
Replies: 17
Views: 8860
i tol TLE . I think i am getting the right answer , but i need better algorithm , can anyone help me? here is my code: #include<stdio.h> int a[600]; int a1[600]; int a2[600]; int min(int a,int b) { if(a<b) { return a; } return b; } void rotate(int n) { int temp=a[n-1]; int i; for(i=n-2;i>=0;i--) { a...
Tue Oct 24, 2006 6:41 am
Forum: Volume 106 (10600-10699)
Topic: 10664 - Luggage
Replies: 20
Views: 13941
Would someone plz explain me the algorithm ? What is the algorithm for partitioning an array into two or more parts according to the conditions like one we have here? For parttioning into two parts I can imagine a way ... that is to convert the number to binary representation and then check all poss...
Sat Oct 21, 2006 7:36 pm
Forum: Volume 111 (11100-11199)
Topic: 11103 - WFF 'N PROOF
Replies: 13
Views: 7924
I got WA with this code , but it seems OK to me..... can anyone check it? here is the code #include<stdio.h> #include<string.h> #include<memory.h> #define NULL 0 char s[130]; bool b[130]; bool flag; class node { public: node* left; node* right; char val; node() { left=NULL; right=NULL; val=0; } }; i...
Thu Aug 31, 2006 8:15 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7198
OK.
This type of helps and advices always inspire newbies like me .
Thu Aug 31, 2006 8:11 am
Forum: Volume 106 (10600-10699)
Topic: 10616 - Divisible Group Sums
Replies: 39
Views: 18719
Thanx Jan ! Now I got AC. Now, I understand the behaviour or negative numbers in modular operation. Thanx for ur help. Actually I was a little bit confused when to memoize something which is negative. Here we have a way to change the negative modulus to a positive number comparing it to a equivalent...
Wed Aug 30, 2006 7:12 pm
Forum: Volume 106 (10600-10699)
Topic: 10616 - Divisible Group Sums
Replies: 39
Views: 18719
Hi ! I am getting WA in this problem. My code gives the exact output to the I/O s submitted here in this thread. I am little bit confused about the negative remainder. Can anyone explain me the behaviour of negative number in modular arithmatc? I am pasting here my code. I used DP with memoization. ...
Wed Aug 30, 2006 6:52 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7198
Hey !!
another thing .... i wanna know more about WALL. Whats this? I use Microsoft Visual C++ 6.0 Enterprise Edition . What is Wall? Whare can I get it? Is it more helpful? I work in Windows environment. Does Windows support Wall?
Wed Aug 30, 2006 6:50 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7198
O GOSH !!!!!!!!!!

how silly it is and it wasted hours of mine.Now I got AC.
But why didnt I get anything wrong in VC?
Whatever.... thanx a lot Darko. You have been very helpful.
Wed Aug 30, 2006 10:51 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7198
Sorry Darko !
But I am totally confused ? Are u talking of any type of typing mistake in my output format? I checked it but couldnt find any.

Can u please give some I/O for which my program fails?

with thnx..
Wed Aug 30, 2006 10:34 am
Forum: Volume 109 (10900-10999)
Topic: 10930 - A-Sequence
Replies: 102
Views: 31545
Thnx .
I got accepted.
Actually I was a little bit confused by some of the posts in the other threads
Thank u once again.
Wed Aug 30, 2006 7:36 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7198
passed ur all cautions !
still WA .... now why it is ??

Code: Select all

``````cut after AC
``````
Wed Aug 30, 2006 7:32 am
Forum: Volume 109 (10900-10999)
Topic: 10930 - A-Sequence
Replies: 102
Views: 31545
Hi Darko!
I got ur point ! I have changed my code for equality check but still cnat get rid of WA!
here it is..

Code: Select all

``cut after AC``
Wed Aug 30, 2006 7:25 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 20446
Thnx I just got AC(P.E).
actually I didnt know that type of use of scanf.
Thanx mf