http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=362&sca=99 JUNGOL www.jungol.co.kr #include int R, C, s, e, dr[4] = { 0,0,1,-1 }, dc[4] = { 1,-1,0,0 }, ans; char grid[55][55]; struct P { int r, c, cnt; char type; } que[10000]; void enq(int r, int c, int cnt, char type) { que[e].r = r, que[e].c = c, que[e].cnt = cnt, que[e++].type = type; grid[r][c] = type; } P deq() { return que[s++];..