Time Limit: 1000MS
Memory Limit: 10000K
Left Right XXXX XXXXX ←1 XXX XXXXXXX XXXXX XXXX XX XXXXXX . . . . . . XXXX XXXX XXX XXXXX ←N ↑ ↑ 1 25In each row of the image, there can be zero or more space characters separating the left surface from the right surface. There will never be more than a single blank region in any row. For each image given, you are to determine the total ``void" that will exist after the left surface has been brought into contact with the right surface. The ``void" is the total count of the spaces that remains between the left and right surfaces after theyhave been brought into contact. The two surfaces are brought into contact by displacing them strictly horizontally towards each other until a rightmost "X" of the left surface of some row is immediately to the left of the leftmost "X" of the right surface of that row. There is no rotation or twisting of these two surfaces as they are brought into contact; they remain rigid, and only move horizontally. Note: The original image may show the two surfaces already in contact, in which case no displacement enters into the contact roughness estimation.
4 XXXX XXXXX XXX XXXXXXX XXXXX XXXX XX XXXXXX 2 XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 1 XXXXXXXXX XX 0