Explanation
Do coordinate checking to solve this problem. (X, Y) coordinate of residence. (N, M) coordinate of division point.
- If X > N and Y > M, output NE.
- if X > N and Y < M, output SE.
- if X < N and Y > M, output NO.
- if X < N and Y < M, output SO.
- else output divisa.
Source Code
Tidak ada komentar:
Posting Komentar