import java.util.Scanner;
public class if1 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
if (a == 0) System.out.println("zero");
else System.out.println("nonzero");
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
130 ms |
13808 KB |
Output is correct |
2 |
Correct |
130 ms |
13844 KB |
Output is correct |
3 |
Correct |
124 ms |
13852 KB |
Output is correct |
4 |
Correct |
127 ms |
13676 KB |
Output is correct |
5 |
Correct |
128 ms |
13808 KB |
Output is correct |
6 |
Correct |
131 ms |
13940 KB |
Output is correct |
7 |
Correct |
129 ms |
13560 KB |
Output is correct |
8 |
Correct |
130 ms |
13808 KB |
Output is correct |
9 |
Correct |
129 ms |
13588 KB |
Output is correct |
10 |
Correct |
125 ms |
13488 KB |
Output is correct |