Source Code
#include <iostream>
using namespace std;
#include <string.h>

int main() 
{
int n;
cin>>n;

int a[n],b[n];
int total=0;


for(int i=0;i<n;i++){
	cin>>a[i];
	
	
	
	total+=a[i];
}
for(int i=0;i<n;i++){
	cin>>b[i];
	

	total-=b[i];
}

cout<<total;

}
Copy
A Game of Darts omarmkht
GNU G++17
0 ms
492 KB
Wrong Answer