// Topcoder SRM 572 DIV 2 1 EasyHomework
import java.util.*;
import java.math.*;
public class EasyHomework {
public static void main(String[] args) {
System.out.println(
//
new EasyHomework().determineSign(
null
));
}
public String determineSign(int[] A) {
int neg = 0;
for (int i = 0; i < A.length; i++) {
if (A[i] == 0)
return "ZERO";
else if (A[i] < 0)
neg++;
}
if (neg % 2 == 0)
return "POSITIVE";
return "NEGATIVE";
}
}
No comments:
Post a Comment