www.acmicpc.net/problem/2828 2828번: 사과 담기 게임 상근이는 오락실에서 바구니를 옮기는 오래된 게임을 한다. 스크린은 N칸으로 나누어져 있다. 스크린의 아래쪽에는 M칸을 차지하는 바구니가 있다. (M>N>>M>>count; left = 0; right = M; while(count--) { cin>>location; if(location > right) { temp = location - right; result += temp; right += temp; left += temp; } else if(location