2017-04-15 21:24:44 -06:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-04-16 14:40:25 -06:00
|
|
|
#define MASK 0x7F
|
|
|
|
|
2017-04-15 21:24:44 -06:00
|
|
|
int main()
|
|
|
|
{
|
2017-04-16 14:40:25 -06:00
|
|
|
int i, j, k, line;
|
2017-04-15 21:58:58 -06:00
|
|
|
char screen[24][40];
|
2017-04-15 21:24:44 -06:00
|
|
|
|
2017-04-16 14:02:54 -06:00
|
|
|
// clear screen (just in case partial dump)
|
2017-04-16 10:38:06 -06:00
|
|
|
for (i = 0; i < 24; i++)
|
|
|
|
for (j = 0; j < 40; j++)
|
2017-04-16 13:16:36 -06:00
|
|
|
screen[i][j] = ' ';
|
2017-04-15 21:24:44 -06:00
|
|
|
|
2017-04-16 10:38:06 -06:00
|
|
|
for (i = 0; i < 24; i++) {
|
2017-04-16 13:57:04 -06:00
|
|
|
line = 8 * (i % 3) + i / 3;
|
2017-04-16 10:38:06 -06:00
|
|
|
for (j = 0; j < 40; j++)
|
2017-04-16 14:40:25 -06:00
|
|
|
screen[line][j] = getchar() & MASK;
|
2017-04-16 13:57:04 -06:00
|
|
|
if (i % 3 == 2)
|
2017-04-16 10:38:06 -06:00
|
|
|
for (k = 0; k < 8; k++)
|
2017-04-15 21:56:58 -06:00
|
|
|
getchar();
|
2017-04-15 21:24:44 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// dump to stdout
|
2017-04-16 10:38:06 -06:00
|
|
|
for (i = 0; i < 24; i++) {
|
|
|
|
for (j = 0; j < 40; j++)
|
2017-04-15 21:24:44 -06:00
|
|
|
putchar(screen[i][j]);
|
|
|
|
printf("\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|