이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int main(){
int N, M;
scanf("%d %d", &N, &M);
int *a = (int *)malloc(sizeof(int) * (N + 1));
int *b = (int *)malloc(sizeof(int) * (M + 1));
for (int i = 0; i <= N; i++)
scanf("%d", &a[i]);
for (int i = 0; i <= M; i++)
scanf("%d", &b[i]);
int *c = (int *)calloc(N + M + 1, sizeof(int));
for (int i = 0; i <= N; i++){
for (int j = 0; j <= M; j++){
c[i + j] += a[i] * b[j];
}
}
int r = c[0];
for (int i = 1; i <= N + M; i++)
r ^= c[i];
printf("%d", r);
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |