Search found 5 matches

by ras46
Fri Mar 07, 2003 5:50 am
Forum: Volume 104 (10400-10499)
Topic: 10463 - Aztec Knights
Replies: 35
Views: 14504

I found a mistake in my sourcecode.
I got AC after correcting it .. :wink:
by ras46
Fri Mar 07, 2003 2:53 am
Forum: Volume 104 (10400-10499)
Topic: 10463 - Aztec Knights
Replies: 35
Views: 14504

Hi,kmhasan.
I have handled this case , but still WA.

5 5 0 0 1 3
CASE# 1: The knight takes 3 prime moves.

Is my output correct?
by ras46
Thu Mar 06, 2003 1:37 pm
Forum: Volume 104 (10400-10499)
Topic: 10463 - Aztec Knights
Replies: 35
Views: 14504

10463 - Aztec Knights

I got wa many times ..
Is there any tricky input ?
by ras46
Tue Dec 17, 2002 12:41 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 24100

10268

[c]

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZE 1000000

unsigned long split(char *a,unsigned long *b)
{
char *c;
unsigned long i = 0,value;

c = strtok(a," ");

while( c != NULL )
{
value = atoi(c);
b[i++] = value;
c = strtok(NULL," ");
}

return i;
}

int ...
by ras46
Fri Jul 12, 2002 7:51 pm
Forum: Volume 102 (10200-10299)
Topic: 10246 - Asterix and Obelix
Replies: 29
Views: 14673

ftomi wrote:Try the following:
9 9 2
1 10 5 2 3 1 1 20 1
1 2 1
2 3 1
3 6 1
1 4 2
4 5 2
5 6 2
6 7 1
7 8 1
8 9 1
1 6
1 9
0 0 0
My output:
9
29

Is this output correct?
If yes,why I still got a WA?

Go to advanced search