This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
int n, m;
int a[1005], b[1005];
int r[2005];
int main(){
scanf("%d %d",&n,&m);
for(int i=0; i<=n; i++){
scanf("%d",&a[i]);
}
for(int i=0; i<=m; i++){
scanf("%d",&b[i]);
}
for(int i=0; i<=n; i++){
for(int j=0; j<=m; j++){
r[i+j] += a[i] * b[j];
}
}
int ret = 0;
for(int i=0; i<=n+m; i++){
ret ^= r[i];
}
printf("%d",ret);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |