Search found 6 matches

by refatsardar
Fri Jan 16, 2015 2:26 pm
Forum: Volume 101 (10100-10199)
Topic: 10171 - Meeting Prof. Miguel...
Replies: 68
Views: 23992

Re: 10171 - Meeting Prof. Miguel...

@Brianfry sir, Is these valid input? I got this input from your given sample input output. 3 Y U X Y 5 M B A Y 10 Y B X Y 10 X A 2 Y U A B 10 Y U A B 100 A B For first test case, Young_energy[X][Y] = 5 ,Young_energy[X][Y] = 10 there are different cost for direct path of X to Y. Little bit confused t...
by refatsardar
Tue Aug 26, 2014 3:52 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30403

Re: 488 - Triangle Wave

Code: Select all

Code is deleted.WA code is also working, may be there was problem with copy/paste :D Thanks Lighted
by refatsardar
Sat Aug 09, 2014 10:09 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31063

Re: 401- Palindromes

Thanks brianfry713.got AC :)
by refatsardar
Fri Aug 08, 2014 8:23 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31063

Re: 401- Palindromes

I have passed all test case from forum.But I get always WA. Could you please help me to find out my mistake? Already got 3 WA :( Here is my code: /*UVa 401-Palindromes Time-*/ #include<stdio.h> #include<string.h> const char* GetReverse(char inp[25]) { char str[25]; int i,len=strlen(inp); for(i=0;i<l...
by refatsardar
Mon Jun 09, 2014 8:34 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78642

Re: 10038 - Jolly Jumpers WA

Thnaks lbv,got it your point.
by refatsardar
Sat Jun 07, 2014 10:27 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78642

Re: 10038 - Jolly Jumpers WA

Could you please tell me why 1 1 or 1 2 is a jolly.Since it has only one element so that we will not find any difference,then how to check this condition "the absolute values of the difference between successive elements take on all the values 1 through n-1". I don't understand this things for 1 1 i...

Go to advanced search