C++ 代码
#include<iostream>
using namespace std;
int a,x,y,z,s;
int main()
{
cin>>a;
for (int j=1;j<=a;j++)
{
cin>>x;
s=s+x;
}
for (int j=1;j<=a;j++)
{
cin>>y;
z=z+y;
}
if (s>=z) cout<<"Yes";
else cout<<"No";
}