Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //thanks God For Every Thing!
- //contest link:
- #include<bits/stdc++.h>
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <algorithm>
- #include <cmath>
- #include <cstdio>
- /*
- */
- #define pi acose(-1)
- #define flush cin.ignore(numeric_limits<streamsize>::max(),'\n');
- #define fasterio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
- #define NL printf("\n")
- #define fin freopen("int.txt","r",stdin);
- #define fout freopen("out.txt","w",stdout);
- using namespace std;
- typedef long long int ll;
- typedef double dl;
- // ---------------------- slove---------------------------//
- int main()
- {
- //fin
- //fout
- int n;
- scanf("%d",&n);
- int a, b;
- int sum=0, s1=0, s2=0;
- while(n--)
- {
- scanf("%d %d",&a, &b);
- s1=s1+a;
- s2=s2+b;
- }
- if(s1<=s2){
- printf("Yes\n");
- }
- else
- {
- printf("No\n");
- }
- }
- //author anikaksh;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement