I got some problem from 10704
(1). is the exit always at right side?
(2). when you use BFS, do you use the branch :
1 position to the right, 2 positions to the right, or 3 positions to the right
or
you directly move the block to the bottom?
(3). Is there exist any solution that I need to move ...
Search found 11 matches
- Sun Sep 30, 2007 5:18 am
- Forum: Volume 107 (10700-10799)
- Topic: 10704 - Traffic!
- Replies: 15
- Views: 11617
- Wed Sep 12, 2007 7:45 pm
- Forum: Bugs and suggestions
- Topic: Problem about 11122
- Replies: 3
- Views: 2962
- Wed Sep 12, 2007 5:51 pm
- Forum: Bugs and suggestions
- Topic: Problem about 11122
- Replies: 3
- Views: 2962
Problem about 11122
I don't know what happen to the new judge
I have submitted about 20 times of the problem
every time, I got a runtime error
even i use the following code, i still get runtime error:
i think the following code will not get runtime error, but it still occurs.
#include <stdio.h>
int main()
{
int ...
I have submitted about 20 times of the problem
every time, I got a runtime error
even i use the following code, i still get runtime error:
i think the following code will not get runtime error, but it still occurs.
#include <stdio.h>
int main()
{
int ...
- Sat Sep 08, 2007 7:20 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11124 - Troubles for Modern Days Problemsetters
- Replies: 7
- Views: 5600
can someone give me a better algorithm??
I always got TLE
Is there any more efficient way to generate the number list ?
My algorithm is:
generate the list and sort it by qsort and got TLE
Is there any more efficient way to generate the number list ?
My algorithm is:
generate the list and sort it by qsort and got TLE
- Thu Jul 26, 2007 7:43 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11117 - Little Quilt
- Replies: 1
- Views: 2309
i got WA
that's my input and output, but i got wrong answer with 0.002 seconds
input:
sew ( turn(
sew(B,turn(B))),
turn(sew (turn(B),B))) ;
sew(turn(sew(B,turn(B))),A);
sew(turn (sew(A,turn(A))),
turn(turn(
turn(sew(A,turn( A ) ) ) ) ))
;
sew(A
, B ) ;
turn(B);
A;
B;
turn sew ...
input:
sew ( turn(
sew(B,turn(B))),
turn(sew (turn(B),B))) ;
sew(turn(sew(B,turn(B))),A);
sew(turn (sew(A,turn(A))),
turn(turn(
turn(sew(A,turn( A ) ) ) ) ))
;
sew(A
, B ) ;
turn(B);
A;
B;
turn sew ...
- Thu Jul 26, 2007 7:21 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11117 - Little Quilt
- Replies: 1
- Views: 2309
11117 - Little Quilt
there must be something wrong with the given table
it says:
A and B represent the two primitive quilts. Each primitive quilt corresponds to a matricial arrangement of 2 x 2 characters.
but the table says:
A: it's right
/ /
/+
B: it's wrong
-
-
I think B should be :
--
--

it says:
A and B represent the two primitive quilts. Each primitive quilt corresponds to a matricial arrangement of 2 x 2 characters.
but the table says:
A: it's right
/ /
/+
B: it's wrong
-
-
I think B should be :
--
--
- Sun Mar 25, 2007 6:08 pm
- Forum: Volume 2 (200-299)
- Topic: 246 - 10-20-30
- Replies: 3
- Views: 4018
246 - 10-20-30
i got WA, but the run time is only 0.006 second
why??
this is part of my code of scan file
int pile[8][52];
while(1)
{
scanf("%d", &pile[0][0]);
if(pile[0][0] == 0)
{
break;
}
else
{
for(i=1;i<52;i++)
{
scanf("%d", &pile[0] );
}
........continue
}
}
why??
this is part of my code of scan file
int pile[8][52];
while(1)
{
scanf("%d", &pile[0][0]);
if(pile[0][0] == 0)
{
break;
}
else
{
for(i=1;i<52;i++)
{
scanf("%d", &pile[0] );
}
........continue
}
}
- Tue Feb 27, 2007 7:20 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10318 - Security Panel
- Replies: 2
- Views: 2738
10318 - Security Panel
well...i need a direct answer. i have no idea where i get wrong.
someone who thought he/she is one of the best programmer. help me please
#include <stdio.h>
char light[3][3];
int light_button[9], grid[5][5], step[25], ans[25];
int bound, row, column;
void initialize();
void toggle(int i, int j ...
someone who thought he/she is one of the best programmer. help me please
#include <stdio.h>
char light[3][3];
int light_button[9], grid[5][5], step[25], ans[25];
int bound, row, column;
void initialize();
void toggle(int i, int j ...
- Mon Feb 12, 2007 7:16 pm
- Forum: Volume 3 (300-399)
- Topic: 302 - John's trip
- Replies: 20
- Views: 8722
help 302
i use eulerian circuit to solve this question
but i got a problem
I have some problem when i got a vertex, this vertex has more than two edges, my code will choose the smallest num of vertex to put in the stack, but i think this is wrong
ex. when i got node 2, this node has edge 1, 2, 3, 4, 5. what ...
but i got a problem
I have some problem when i got a vertex, this vertex has more than two edges, my code will choose the smallest num of vertex to put in the stack, but i think this is wrong
ex. when i got node 2, this node has edge 1, 2, 3, 4, 5. what ...
- Wed Feb 07, 2007 4:31 pm
- Forum: Volume 2 (200-299)
- Topic: 299 - Train Swapping
- Replies: 81
- Views: 24024
thank you
thank you very much
i got AC
thanks
but i think that it should give me presentation error not wrong answer
i got AC
thanks
but i think that it should give me presentation error not wrong answer
- Thu Jan 25, 2007 1:52 pm
- Forum: Volume 2 (200-299)
- Topic: 299 - Train Swapping
- Replies: 81
- Views: 24024
help 299 WA
this is my source code, i don't know where gets wrong. it always give me WA. somebody help me, please. i have considered the 0<= L <=50.
#include <stdio.h>
int train[50] = {0};
int bubble_sort(int length);
void swap(int *a, int*b);
int main()
{
int i, j, L;
int N, optimal;
scanf("%d", &N ...
#include <stdio.h>
int train[50] = {0};
int bubble_sort(int length);
void swap(int *a, int*b);
int main()
{
int i, j, L;
int N, optimal;
scanf("%d", &N ...