【链接】h在这里写链接
【题意】
在这里写题意
【题解】
在这里写题解
【错的次数】
0
【反思】
在这了写反思
【代码】
#include <bits/stdc++.h>
using namespace std;
int n, a, b;
int main() {
ios::sync_with_stdio(0), cin.tie(0);
cin >> n >> a >> b;
for (int i = 1, x; i <= n; i++)
cin >> x, a += x;
for (int i = 1, x; i <= n; i++)
cin >> x, b += x;
if (a > b)
cout << 1 << endl;
else
if (a == b)
cout << 0 << endl;
else
cout << 2 << endl;
return 0;
}