@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 ...
Search found 6 matches
- Fri Jan 16, 2015 2:26 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10171 - Meeting Prof. Miguel...
- Replies: 68
- Views: 35206
- Tue Aug 26, 2014 3:52 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 64648
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
- Sat Aug 09, 2014 10:09 pm
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 58227
Re: 401- Palindromes
Thanks brianfry713.got AC 

- Fri Aug 08, 2014 8:23 am
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 58227
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 ...
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 ...
- Mon Jun 09, 2014 8:34 am
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 152919
Re: 10038 - Jolly Jumpers WA
Thnaks lbv,got it your point.
- Sat Jun 07, 2014 10:27 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 152919
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 don't understand this things for 1 1 ...