Skip to content

Instantly share code, notes, and snippets.

@rogerioagjr
Created May 11, 2015 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogerioagjr/0734fcfd49bfa7164c22 to your computer and use it in GitHub Desktop.
Save rogerioagjr/0734fcfd49bfa7164c22 to your computer and use it in GitHub Desktop.
Chuva - Roger Benet
#include<iostream>
using namespace std;
int main() {
int n,i,j;
cin >> n;
int vet[n*n];
int vet2[n*n];
for(i = 0; i < n*n; i++){
cin >> vet[i];
}
j = 0;
for(i = 0; i < n*n; i++){
cin >> vet2[i];
}
for(i = 0; i < n*n; i++){
cout << vet2[i] + vet[i];
j++;
if(j < n)cout << " ";
else {
cout << endl;
j = 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment