# Clarification request: Encoding

## Clarification request: Encoding

The solution for

`1 2 1 1 1 0`

is

121
11

How would this be encoded?

1. (1 2 1) (1 1)
2. (1 2 1) (1) (1)

From the problem description I would expect it to be #1. But I came across a problem here that uses #2.

`(235,139,151)(127,12)(163)(125,79,31)(110,48)(46,14,19)(211)(9,5)(4,20)(13)(10,3)(23)(165,16)(149)`

In this case (46, 14, 19) and (211) are on the same row. Can someone verify please?

Just want to be sure.

Thanks.

5 posts / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,
Yes, for the problem you indicated "1 2 1 1 1", it would be encloded as indicated in # 1: (1 2 1) (1 1).

In your 2nd problem description, can you indicate the tiling picture and the dimensions of the rectangle tile?

Thanks
-Rama

My output is #1

dimensions: 525 x 525

(235 139 151)(127 12)(163)(125 79 31)(110 48)(46 14 19 211)(9 5)(4 20)(13)(10 3)(23)(165 16)(149)

Quoting

My output is #1

dimensions: 525 x 525

(235 139 151)(127 12)(163)(125 79 31)(110 48)(46 14 19 211)(9 5)(4 20)(13)(10 3)(23)(165 16)(149)

Thanks Rama, ,

Here's the visual representation (click image to enlarge):

Cool...Thanks

-Rama