Submission #1092462
Source Code Expand
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int f = 0; for (int i = 0; i < n; i++) { long a = scanner.nextLong(); if(a % 2 != 0){ f++; } } if(f % 2 == 0){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Addition |
User | javcof |
Language | Java8 (OpenJDK 1.8.0) |
Score | 300 |
Code Size | 384 Byte |
Status | AC |
Exec Time | 522 ms |
Memory | 32744 KB |
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 | 520 ms | 30616 KB |
in10.txt | AC | 449 ms | 30324 KB |
in11.txt | AC | 123 ms | 9676 KB |
in12.txt | AC | 125 ms | 9676 KB |
in2.txt | AC | 473 ms | 31108 KB |
in3.txt | AC | 520 ms | 30724 KB |
in4.txt | AC | 501 ms | 30196 KB |
in5.txt | AC | 457 ms | 30448 KB |
in6.txt | AC | 522 ms | 32376 KB |
in7.txt | AC | 510 ms | 32744 KB |
in8.txt | AC | 510 ms | 30596 KB |
in9.txt | AC | 522 ms | 31016 KB |
sample1.txt | AC | 124 ms | 9552 KB |
sample2.txt | AC | 124 ms | 9684 KB |