백준/C++
2025. 3. 8.
[Baekjoon/C++] 21875번 - Innohorse
[백준] Baekjoon Online Judge 문제In Innokingdom there are special horses for chess knights, innohorses. Each innohorse is represented by a pair of integers (x, y), 0≤x≤y. Innohorse moves in the following way: first it moves x cells in one of the four general directions, then turns 90 degrees to the left or to the right, then finally moves y more cells. For instance, an ordinary chess knight horse is..