
[ 문제 ] 상근이는 오락실에서 바구니를 옮기는 오래된 게임을 한다. 스크린은 N칸으로 나누어져 있다. 스크린의 아래쪽에는 M칸을 차지하는 바구니가 있다. (M end) { while (true) { if (num == start || num == end) break; start++; end++; count++; } } else if (num != start && num != end && num < start) { while (true) { if (num == start || num == end) break; start--; end--; count++; } } } sw.Write(count); sw.Flush(); sw.Close(); sr.Close(); 2. 다른 사람 참고 코드 StreamReade..