Submission #1092556
Source Code Expand
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int c = 0;
for (int i = 0; i < N; i++) {
int A = sc.nextInt();
if (A % 2 == 1) {
c++;
}
}
if (c % 2 == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Addition |
| User | we2287659 |
| Language | Java8 (OpenJDK 1.8.0) |
| Score | 300 |
| Code Size | 378 Byte |
| Status | AC |
| Exec Time | 529 ms |
| Memory | 32320 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample1.txt, sample2.txt |
| All | sample1.txt, sample2.txt, in1.txt, in10.txt, in11.txt, in12.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| in1.txt | AC | 518 ms | 31552 KiB |
| in10.txt | AC | 495 ms | 30996 KiB |
| in11.txt | AC | 127 ms | 9804 KiB |
| in12.txt | AC | 127 ms | 9680 KiB |
| in2.txt | AC | 529 ms | 30660 KiB |
| in3.txt | AC | 508 ms | 32320 KiB |
| in4.txt | AC | 517 ms | 32128 KiB |
| in5.txt | AC | 488 ms | 30576 KiB |
| in6.txt | AC | 521 ms | 30588 KiB |
| in7.txt | AC | 515 ms | 32020 KiB |
| in8.txt | AC | 504 ms | 30824 KiB |
| in9.txt | AC | 504 ms | 31060 KiB |
| sample1.txt | AC | 128 ms | 9680 KiB |
| sample2.txt | AC | 132 ms | 9672 KiB |