static int letter (lua_State *L) { int x,y; if(!NetB){ x = lua_toint(L, 1)-1; y = lua_toint(L, 2)-1; switch(lua_type(L,3)){ case LUA_TSTRING: writeg(x,y,(char*)lua_tostring ( L , 3 ) ) ; break; case LUA_TNUMBER: writevalue(x,y,(long)(lua_tonumber(L, 3))); break; default: break; } return 0; } }
int main( int argc, char *argv[] ) { readg(); squeeze(); writeg(); }
int main( int argc, char *argv[] ) { readg(); deempty(); writeg(); }
int main() { int s, len; char num[10]; while (scanf("%d %s",&s, num)==2&&s) { len=strlen(num); for (int i=1; i<=2*s+3; ++i) for (int j=1; j<=len*(s+2); ++j) lc[i][j]=' '; for (int k=0; k<len; k++) { int x=1, y=k*(s+2)+1; if (num[k] == '0') { writea(x, y, s); writeb(x, y, s); writec(x, y, s); writed(x, y, s); writee(x, y, s); writef(x, y, s); } else if (num[k] == '1') { writee(x, y, s); writed(x, y, s); } else if (num[k] == '2') { writeb(x, y, s); writec(x, y, s); writee(x, y, s); writef(x, y, s); writeg(x, y, s); } else if (num[k] == '3') { writef(x, y, s); writee(x, y, s); writeg(x, y, s); writed(x, y, s); writec(x, y, s); } else if (num[k] == '4') { writea(x, y, s); writeg(x, y, s); writee(x, y, s); writed(x, y, s); } else if (num[k] == '5') { writef(x, y, s); writea(x, y, s); writeg(x, y, s); writed(x, y, s); writec(x, y, s); } else if (num[k] == '6') { writef(x, y, s); writea(x, y, s); writeb(x, y, s); writec(x, y, s); writed(x, y, s); writeg(x, y, s); } else if (num[k] == '7') { writef(x, y, s); writee(x, y, s); writed(x, y, s); } else if (num[k] == '8') { writea(x, y, s); writeb(x, y, s); writec(x, y, s); writed(x, y, s); writee(x, y, s); writef(x, y, s); writeg(x, y, s); } else { writef(x, y, s); writea(x, y, s); writeg(x, y, s); writee(x, y, s); writed(x, y, s); writec(x, y, s); } } for (int i=1; i<=2*s+3; i++) { for (int j=1; j<=len*(s+2); j++) { printf("%c",lc[i][j]); if (j%(s+2)==0&&(j<len*(s+2))) printf(" "); } puts(""); } puts(""); } return 0; }