반례입니다.
2 1 1 1 2
정답 After 2 jumps the flea lands at (3, 5). 출력 The flea cannot escape from black squares.
4318번 - A flea on a chessboard
반례입니다.
2 1 1 1 2
정답 After 2 jumps the flea lands at (3, 5). 출력 The flea cannot escape from black squares.
s번 만으로 판단할 수 없었네요.
감사합니다.
댓글을 작성하려면 로그인해야 합니다.
berrydelicious 1년 전
S 범위밖에 없고 x, y는 음이 아닌 정수, dx, dy는 0보다 크다는 조건밖에 없네요.
대회 답이란 것도 찾아봤는데 int 쓰고 저랑 다른 점은 200만 번 반복했다는 거밖에 없었어요.