## Submission #490082

# Submission time Handle Problem Language Result Execution time Memory
490082 2021-11-25T13:08:24 Z rainboy Pick (COI18_pick) C
0 / 100
0 ms 204 KB
```#include <stdio.h>

int dx[] = { 1, -1, 0, 0, 1, -1, -1, 1 };
int dy[] = { 0, 0, 1, -1, 1, -1, 1, -1 };

int x, y;

void move(int t) {
printf("%d %d\n", x += dx[t], y += dy[t]);
}

int main() {
static int kk[4];
int t, i;

for (t = 0; t < 4; t++)
scanf("%d", &kk[t]);
printf("%d %d\n", x, y);
if (kk[2] == 0 && kk[3] == 0) {
for (i = 0; i <= kk[0] / 2; i++)
move(0);
move(2);
for (i = 0; i <= kk[0] / 2 - 1; i++)
move(1);
for (i = 0; i <= kk[1] / 2 - 1; i++)
move(2);
move(1);
for (i = 0; i <= kk[1] / 2; i++)
move(3);
} else if (kk[0] == 0 && kk[1] == 0) {
for (i = 0; i <= kk[2] / 2; i++)
move(4);
move(6);
for (i = 0; i <= kk[2] / 2 - 1; i++)
move(5);
for (i = 0; i <= kk[3] / 2 - 1; i++)
move(6);
move(5);
for (i = 0; i <= kk[3] / 2; i++)
move(7);
}
return 0;
}```

### Compilation message

```pick.c: In function 'main':
pick.c:17:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
17 |   scanf("%d", &kk[t]);
|   ^~~~~~~~~~~~~~~~~~~```

#### Subtask #1 0 / 5.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB not a valid stick
2 Halted 0 ms 0 KB -

#### Subtask #2 0 / 5.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB not a valid stick
2 Halted 0 ms 0 KB -

#### Subtask #3 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -

#### Subtask #4 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -

#### Subtask #5 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -

#### Subtask #6 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -

#### Subtask #7 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -

#### Subtask #8 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB not a valid stick
2 Halted 0 ms 0 KB -

#### Subtask #9 0 / 10.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB not a valid stick
2 Halted 0 ms 0 KB -

#### Subtask #10 0 / 20.0

# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB not a valid stick
2 Halted 0 ms 0 KB -