Search found 6 matches

by nhrahi
Fri Jan 07, 2011 8:36 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38321

Re: 10226 - Hardwood Species

can anyone please help me with what's wrong with my code????? i just cant get it working,it is always missing the first item.i think i am having troubles with the input,please help me with a hint on what's wrong. #include<iostream> #include<map> #include<string> #include<cstring> #include<cstdio> #i...
by nhrahi
Fri Dec 17, 2010 3:27 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 31818

Re: 482 Permutation Arrays

thanx asif,got AC :D
by nhrahi
Sun Dec 12, 2010 8:10 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 31818

Re: 482 Permutation Arrays

Can anybody please please help me with my code?i am getting wrong answer again and again but i cant find it.Just at least give me a hint about what is wrong here.thank you in advacne.

Code: Select all


got AC

by nhrahi
Mon Nov 09, 2009 9:49 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 9200

Re: 10222 - Decode the Mad Man

"2, e , d , c and just replace them with `(tlide), q , a, z . You don't have to consider any other character from left." hey,everyone. This question seems to confuse everybody.So,thanx to Ali Arman bhai who has removed all the questions.I just want to make a small addition that we dont need to have ...
by nhrahi
Fri Sep 11, 2009 1:02 am
Forum: Volume 108 (10800-10899)
Topic: 10812 - Beat the Spread!
Replies: 35
Views: 18016

10812-Beat the Spread

can any1 help me please ,with what is wrong about my code.here is my code- #include<stdio.h> int main() { int i,x,s,d,sum,min; while(scanf("%d",&x)==1) { for(i=0;i<x;i++) { scanf("%d",&s); scanf("%d",&d); sum=(s+d); min=(s-d); if(s>d || s==d ) { if((sum%2==0) && (min%2==0)) { printf("%d\n",(s+d)/2);...
by nhrahi
Tue Aug 25, 2009 7:47 pm
Forum: Volume 108 (10800-10899)
Topic: 10812 - Beat the Spread!
Replies: 35
Views: 18016

Beat the spread -getting WA

can any1 help me with what is wrong about my code.here is my code- #include<stdio.h> int main() { int i,x,s,d,sum,min; while(scanf("%d",&x)==1) { for(i=0;i<x;i++) { scanf("%d",&s); scanf("%d",&d); sum=(s+d); min=(s-d); if(s>d || s==d ) { if((sum%2==0) && (min%2==0)) { printf("%d\n",(s+d)/2); printf(...

Go to advanced search