Submission #1690606
Source Code Expand
// // main.c // procon // // Created by L on 2017. 10. 17.. // Copyright © 2017년 L. All rights reserved. // #include <stdio.h> #include <string.h> int main(int argc, const char * argv[]) { // insert code here... int a; int b[100000]; scanf("%d", &a); int i; int count_4 = 0; int count_2 = 0; for (i=0; i<a; i++) { scanf("%d", &b[i]); if (b[i] % 4 == 0) count_4++; else if (b[i] % 2 != 0) count_2++; } if (count_4 == count_2) printf("Yes"); else printf("No"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 4-adjacent |
User | leecha10 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 616 Byte |
Status | WA |
Exec Time | 13 ms |
Memory | 512 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:18:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^ ./Main.c:25:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]); ^
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 0 ms | 128 KB |
0_01.txt | AC | 1 ms | 128 KB |
0_02.txt | WA | 0 ms | 128 KB |
0_03.txt | AC | 1 ms | 128 KB |
0_04.txt | AC | 0 ms | 128 KB |
1_00.txt | AC | 0 ms | 128 KB |
1_01.txt | AC | 0 ms | 128 KB |
1_02.txt | AC | 0 ms | 128 KB |
1_03.txt | WA | 0 ms | 128 KB |
1_04.txt | AC | 0 ms | 128 KB |
1_05.txt | AC | 0 ms | 128 KB |
1_06.txt | AC | 0 ms | 128 KB |
1_07.txt | AC | 13 ms | 512 KB |
1_08.txt | AC | 13 ms | 512 KB |
1_09.txt | WA | 13 ms | 512 KB |
1_10.txt | WA | 13 ms | 512 KB |
1_11.txt | AC | 13 ms | 512 KB |
1_12.txt | AC | 13 ms | 512 KB |
1_13.txt | AC | 13 ms | 512 KB |