Submission #4654560
Source Code Expand
q;x;y;main(a){for(;a=getchar()-10;)a-53?*(a%6?&x:&y)+=a>66?:-1:q++;x=abs(x)+abs(y);gets(&a);printf("%d\n",a%2?x+q:q>x?q-x&1:x-q);}
Submission Info
Submission Time | |
---|---|
Task | B - ドローン |
User | myun |
Language | C (GCC 5.4.1) |
Score | 101 |
Code Size | 130 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 128 KB |
Compile Error
./Main.c:1:1: warning: data definition has no type or storage class q;x;y;main(a){for(;a=getchar()-10;)a-53?*(a%6?&x:&y)+=a>66?:-1:q++;x=abs(x)+abs(y);gets(&a);printf("%d\n",a%2?x+q:q>x?q-x&1:x-q);} ^ ./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] ./Main.c:1:3: warning: data definition has no type or storage class q;x;y;main(a){for(;a=getchar()-10;)a-53?*(a%6?&x:&y)+=a>66?:-1:q++;x=abs(x)+abs(y);gets(&a);printf("%d\n",a%2?x+q:q>x?q-x&1:x-q);} ^ ./Main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] ./Main.c:1:5: warning: data definition has no type or storage class q;x;y;main(a){for(;a=getchar()-10;)a-53?*(a%6?&x:&y)+=a>66?:-1:q++;x=abs(x)+abs(y);gets(&a);printf("%d\n",a%2?x+q:q>x?q-x&1:x-q);} ^ ./Main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘y’ [-Wimplicit-int] ./Main.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int] q;x;y;main(a){for(;a=getchar()-10;)a-53?*(a%6?&x:&y)+=a>66?:-1:q++;x=abs(x)+abs(y);...
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | 1 / 1 | ||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt, 00_example_04.txt |
Subtask1 | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt, 10_rand_01.txt, 10_rand_02.txt, 10_rand_03.txt, 10_rand_04.txt, 20_no_question_01.txt, 20_no_question_02.txt, 20_no_question_03.txt, 20_no_question_04.txt, 30_max_01.txt, 30_max_02.txt, 30_max_03.txt, 30_max_04.txt, 40_corner_01.txt, 40_corner_02.txt, 40_corner_03.txt, 40_corner_04.txt |
All | 00_example_01.txt, 00_example_02.txt, 00_example_03.txt, 00_example_04.txt, 10_rand_01.txt, 10_rand_02.txt, 10_rand_03.txt, 10_rand_04.txt, 20_no_question_01.txt, 20_no_question_02.txt, 20_no_question_03.txt, 20_no_question_04.txt, 30_max_01.txt, 30_max_02.txt, 30_max_03.txt, 30_max_04.txt, 40_corner_01.txt, 40_corner_02.txt, 40_corner_03.txt, 40_corner_04.txt, 50_hand_01.txt, 50_hand_02.txt, 50_hand_03.txt, 60_rand_01.txt, 60_rand_02.txt, 60_rand_03.txt, 60_rand_04.txt, 70_no_ques_01.txt, 70_no_ques_02.txt, 70_no_ques_03.txt, 70_no_ques_04.txt, 80_max_01.txt, 80_max_02.txt, 80_max_03.txt, 80_max_04.txt, 90_corner_01.txt, 90_corner_02.txt, 90_corner_03.txt, 90_corner_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 1 ms | 128 KB |
00_example_02.txt | AC | 1 ms | 128 KB |
00_example_03.txt | AC | 1 ms | 128 KB |
00_example_04.txt | AC | 1 ms | 128 KB |
10_rand_01.txt | AC | 1 ms | 128 KB |
10_rand_02.txt | AC | 1 ms | 128 KB |
10_rand_03.txt | AC | 1 ms | 128 KB |
10_rand_04.txt | AC | 1 ms | 128 KB |
20_no_question_01.txt | AC | 1 ms | 128 KB |
20_no_question_02.txt | AC | 1 ms | 128 KB |
20_no_question_03.txt | AC | 1 ms | 128 KB |
20_no_question_04.txt | AC | 1 ms | 128 KB |
30_max_01.txt | AC | 2 ms | 128 KB |
30_max_02.txt | AC | 2 ms | 128 KB |
30_max_03.txt | AC | 2 ms | 128 KB |
30_max_04.txt | AC | 2 ms | 128 KB |
40_corner_01.txt | AC | 2 ms | 128 KB |
40_corner_02.txt | AC | 1 ms | 128 KB |
40_corner_03.txt | AC | 1 ms | 128 KB |
40_corner_04.txt | AC | 2 ms | 128 KB |
50_hand_01.txt | AC | 1 ms | 128 KB |
50_hand_02.txt | AC | 1 ms | 128 KB |
50_hand_03.txt | AC | 1 ms | 128 KB |
60_rand_01.txt | AC | 1 ms | 128 KB |
60_rand_02.txt | AC | 1 ms | 128 KB |
60_rand_03.txt | AC | 1 ms | 128 KB |
60_rand_04.txt | AC | 1 ms | 128 KB |
70_no_ques_01.txt | AC | 1 ms | 128 KB |
70_no_ques_02.txt | AC | 1 ms | 128 KB |
70_no_ques_03.txt | AC | 1 ms | 128 KB |
70_no_ques_04.txt | AC | 1 ms | 128 KB |
80_max_01.txt | AC | 2 ms | 128 KB |
80_max_02.txt | AC | 2 ms | 128 KB |
80_max_03.txt | AC | 2 ms | 128 KB |
80_max_04.txt | AC | 2 ms | 128 KB |
90_corner_01.txt | AC | 1 ms | 128 KB |
90_corner_02.txt | AC | 1 ms | 128 KB |
90_corner_03.txt | AC | 2 ms | 128 KB |
90_corner_04.txt | AC | 2 ms | 128 KB |