This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int maxn = 5e5 + 5;
int n, a[maxn], b[maxn];
vector<int> g;
signed main()
{
// freopen("test.inp" , "r" , stdin);
// freopen("test.out" , "w" , stdout);
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int A = 0, B = 0;
cin >> n;
for(int i=1 ; i<=n ; ++i){
cin >> a[i] >> b[i];
A += a[i];
B += b[i];
}
if(A < B){
cout << 0;
}
}
/// code by yourlove ///
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |