Submission #15068

# Submission time Handle Problem Language Result Execution time Memory
15068 2015-07-11T08:29:02 Z gs14004 씽크스몰 (kriii3_TT) C++14
10 / 30
2 ms 1100 KB
#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
1 Correct 0 ms 1100 KB Output is correct
2 Correct 0 ms 1100 KB Output is correct
3 Correct 0 ms 1100 KB Output is correct
4 Correct 0 ms 1100 KB Output is correct
5 Correct 2 ms 1100 KB Output is correct
6 Correct 0 ms 1100 KB Output is correct
7 Correct 2 ms 1100 KB Output is correct
8 Correct 2 ms 1100 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1100 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -