Submission #865974

#TimeUsernameProblemLanguageResultExecution timeMemory
865974_anhxinloi_Potatoes and fertilizers (LMIO19_bulves)C++17
0 / 100
1 ms2396 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...