msiamn

681A - Codeforces

Jun 15th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.81 KB | None | 0 0
  1. /*******************************************************************************\
  2. |*********S***   ******  *************  *************  **************  *  ******|
  3. |***********   ********  ************    ************    ***********  **  ******|
  4. |*********   **********  ***********  *** ***********  *  *********  ***  ******|
  5. |********   ***********  *I********  ****  **********  ***  *****  *****  ******|
  6. |********   ***********  *********  ******  *********  *****  **  ******  ******|
  7. |**********   *********  ********  ***A****  ********  *******  ********  ******|
  8. |***********   ********  *******  **********  *******  *****************  ******|
  9. |**********   *********  ******  ************  ******  *****************  ******|
  10. |********   ***********  *****  **************  *****  ********M********  ******|
  11. |*****   **************  ****  ****************  ****  *****************  ******|
  12. |*******************************************************************************|
  13. |**************BSMRSTU********************************CSE***********************|
  14. \*******************************************************************************/
  15. #include <bits/stdc++.h>
  16. #define ll long long
  17. #define li long int
  18. #define fl float
  19. #define fd double
  20. #define anda NULL
  21. #define B break
  22. #define C continue
  23. #define sf scanf
  24. #define pf printf
  25. #define in freopen("in.txt", "r", stdin)
  26. #define asort(v) sort(v.begin(), v.end())
  27. #define dsort(v) sort(v.begin(), v.end(), [](int a, int b){return a > b;})
  28. #define gcd(a,b) __gcd(a,b)
  29. #define lcm(a,b) a*b/gcd(a,b)
  30. #define byebye return 0
  31. using namespace std;
  32. int main(int argc, char const *argv[])
  33. {
  34.     //in;
  35.     int n;
  36.     sf("%d",&n);
  37.     char name[11];
  38.     int b,a,b2,a2,b3,a3;
  39.     while(n--)
  40.     {
  41.         sf("%s",name);
  42.         sf("%d%d",&b,&a);
  43.         if (b>=2400)
  44.         {
  45.             if (a>b)
  46.             {
  47.                 pf("YES");
  48.                 byebye;
  49.             }
  50.         }
  51.     }
  52.     pf("NO");
  53.     byebye;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment