Submission #15068

#TimeUsernameProblemLanguageResultExecution timeMemory
15068gs14004씽크스몰 (kriii3_TT)C++14
10 / 30
2 ms1100 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...