Source Code
#include <iostream>
using namespace std;


int main() {
int n; 
double a[n]; 
double b[n];
static long double t; 
static long double tt; 
cin>>n;
for(int i=0; i<n;i++){ 
  cin>>a[i]; 
  t+=a[i]; 

}
for( int j=0; j<n; j++){ 
  cin>> b[j]; 
  tt+=b[j]; 
}
cout<< t-tt; 

}
Copy
A Game of Darts LaYaN
GNU G++17
3 ms
924 KB
Wrong Answer