Minggu, 25 Desember 2016

UVA 11498 - Division of Nlogonia Solution

Problem Statement: Division of Nlogonia

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