Submission #4068907
Source Code Expand
main(){char a[9];gets(a);if(atoi(a)%4){puts("NO");}else{puts("YES");}}
Submission Info
Submission Time | |
---|---|
Task | A - RGB Cards |
User | Coleball |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 70 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(){char a[9];gets(a);if(atoi(a)%4){puts("NO");}else{puts("YES");}} ^ ./Main.c: In function ‘main’: ./Main.c:1:18: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] main(){char a[9];gets(a);if(atoi(a)%4){puts("NO");}else{puts("YES");}} ^ ./Main.c:1:29: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] main(){char a[9];gets(a);if(atoi(a)%4){puts("NO");}else{puts("YES");}} ^ ./Main.c:1:40: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] main(){char a[9];gets(a);if(atoi(a)%4){puts("NO");}else{puts("YES");}} ^ /tmp/cc8n0J96.o: In function `main': Main.c:(.text.startup+0x18): warning: the `gets' function is dangerous and should not be used.
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | AC | 1 ms | 128 KB |
in2.txt | WA | 1 ms | 128 KB |
in3.txt | WA | 1 ms | 128 KB |
in4.txt | WA | 1 ms | 128 KB |
in5.txt | AC | 1 ms | 128 KB |
s1.txt | AC | 1 ms | 128 KB |
s2.txt | AC | 1 ms | 128 KB |