11117 - Little Quilt

All about problems in Volume 111. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
Mr.south
New poster
Posts: 11
Joined: Thu Jan 25, 2007 1:45 pm

11117 - Little Quilt

Post by Mr.south »

there must be something wrong with the given table :o

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 :
--
--
Mr.south
New poster
Posts: 11
Joined: Thu Jan 25, 2007 1:45 pm

i got WA

Post by Mr.south »

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(A, B ) ;

turn(turn sew(A, B )) ;

turn(turn(turn (sew(A, B ))) ) ;
sew(turn(A),B);






A;

output:
Quilt 1:
||--
||--
--||
--||
Quilt 2:
error
Quilt 3:
\\//
+\/+
+/\+
//\\
Quilt 4:
//--
/+--
Quilt 5:
||
||
Quilt 6:
//
/+
Quilt 7:
--
--
Quilt 8:
\\
+\
||
||
Quilt 9:
--+/
--//
Quilt 10:
||
||
\+
\\
Quilt 11:
\\--
+\--
Quilt 12:
//
/+
Post Reply

Return to “Volume 111 (11100-11199)”