Submission #180089
Source Code Expand
import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.PriorityQueue; import java.util.Scanner; public class Main { static int n; static int[] A; public Main() { // TODO 自動生成されたコンストラクター・スタブ } /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ read(); solve(); } private static void solve() { int ans = 0; for(int i = 0; i<n; i++){ if(A[i] % 2 == 0 || A[i] % 3 == 2){ ans++; } } System.out.println(ans); } private static void read(){ Scanner scan = new Scanner(new InputStreamReader(System.in)); n = scan.nextInt(); for(int i = 0; i<n; i++){ A[i] = scan.nextInt(); } scan.close(); } }
Submission Info
Submission Time | |
---|---|
Task | B - 花占い |
User | keitaro9ml |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 883 Byte |
Status | RE |
Exec Time | 866 ms |
Memory | 23348 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_112358.txt, test_1379137913.txt, test_1414213562.txt, test_1732151817.txt, test_2.txt, test_2236167977.txt, test_2645751311.txt, test_3.txt, test_3141592653.txt, test_4.txt, test_5.txt, test_6.txt, test_6666666666.txt, test_7.txt, test_73.txt, test_8.txt, test_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | RE | 734 ms | 23348 KB |
sample_02.txt | RE | 721 ms | 23212 KB |
test_1.txt | RE | 646 ms | 23208 KB |
test_112358.txt | RE | 651 ms | 23220 KB |
test_1379137913.txt | RE | 714 ms | 23344 KB |
test_1414213562.txt | RE | 688 ms | 23088 KB |
test_1732151817.txt | RE | 605 ms | 23220 KB |
test_2.txt | RE | 648 ms | 23220 KB |
test_2236167977.txt | RE | 653 ms | 23168 KB |
test_2645751311.txt | RE | 618 ms | 23224 KB |
test_3.txt | RE | 594 ms | 23092 KB |
test_3141592653.txt | RE | 649 ms | 23216 KB |
test_4.txt | RE | 651 ms | 23344 KB |
test_5.txt | RE | 692 ms | 23216 KB |
test_6.txt | RE | 709 ms | 23212 KB |
test_6666666666.txt | RE | 815 ms | 23216 KB |
test_7.txt | RE | 866 ms | 23212 KB |
test_73.txt | RE | 802 ms | 23216 KB |
test_8.txt | RE | 682 ms | 23216 KB |
test_9.txt | RE | 664 ms | 23220 KB |