Untitled

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main(){ int N, i,j,a=0,b=0; cin>>N; int A[100], B[100]; for(i=0; i<N ; i++){ cin>>A[i]; } for(j=0; j<N; j++){ cin>>B[j]; } for(int x=0; x<N; x++){ a=A[x]+a; a==a; } for(int x=0; x<N; x++){ b=B[x]+b; b==b; } cout<<(a*N)+(b*N); }
Editor Settings
Theme
Key bindings
Full width
Lines