Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*******************************************************************************\
- |*********S*** ****** ************* ************* ************** * ******|
- |*********** ******** ************ ************ *********** ** ******|
- |********* ********** *********** *** *********** * ********* *** ******|
- |******** *********** *I******** **** ********** *** ***** ***** ******|
- |******** *********** ********* ****** ********* ***** ** ****** ******|
- |********** ********* ******** ***A**** ******** ******* ******** ******|
- |*********** ******** ******* ********** ******* ***************** ******|
- |********** ********* ****** ************ ****** ***************** ******|
- |******** *********** ***** ************** ***** ********M******** ******|
- |***** ************** **** **************** **** ***************** ******|
- |*******************************************************************************|
- |**************BSMRSTU********************************CSE***********************|
- \*******************************************************************************/
- #include <bits/stdc++.h>
- #define ll long long
- #define li long int
- #define fl float
- #define fd double
- #define anda NULL
- #define B break
- #define C continue
- #define sf scanf
- #define pf printf
- #define in freopen("in.txt", "r", stdin)
- #define asort(v) sort(v.begin(), v.end())
- #define dsort(v) sort(v.begin(), v.end(), [](int a, int b){return a > b;})
- #define gcd(a,b) __gcd(a,b)
- #define lcm(a,b) a*b/gcd(a,b)
- #define byebye return 0
- using namespace std;
- int main(int argc, char const *argv[])
- {
- //in;
- int n;
- sf("%d",&n);
- char name[11];
- int b,a,b2,a2,b3,a3;
- while(n--)
- {
- sf("%s",name);
- sf("%d%d",&b,&a);
- if (b>=2400)
- {
- if (a>b)
- {
- pf("YES");
- byebye;
- }
- }
- }
- pf("NO");
- byebye;
- }
Advertisement
Add Comment
Please, Sign In to add comment