/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Accepted 1ms 540.0 KiB
#3 Accepted 1ms 540.0 KiB
#4 Wrong Answer 2ms 468.0 KiB
#5 Accepted 1ms 540.0 KiB
#6 Accepted 2ms 480.0 KiB
#7 Accepted 1ms 540.0 KiB
#8 Wrong Answer 1ms 540.0 KiB

Code

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define yes cout << "YES" << "\n";
#define no cout << "NO" << "\n";
#define fri(a,b) for(ll i = a; i<b; i++) 
#define frj(a,b) for(ll j = a; j <b; j++)
#define frk(a,b) for(ll k = a; k <b; k++) 
#define rfri(a,b) for(ll i = a; i>=b; i--)

using namespace std;
int main()
{
    ios_base:: sync_with_stdio(false);
    cin.tie(NULL);

    ll T = 1;
    // cin >> T;
    while(T--)
    {
     ll x,y,n;
     cin >> n;
     cin >> x >> y;
     bool ps = 0;
     while(n--)
     {
        ll x1,y1;
        cin >> x1 >> y1;
        if(((x1>=0 && x>=0)||(x1<=0 && x<=0)) && ((y1>=0 && y>=0)||(y1<=0 && y<=0)))
        {
            if((abs(x1)<=abs(x)) && (abs(y1)<=abs(y))) ps  = 1;
        }
     }
     if(ps) yes
     else no
    }
}

Information

Submit By
Type
Submission
Problem
P1145 Nobita's Love for Shizuka
Contest
LU IUJPC : Sylhet Division 2024
Language
C++17 (G++ 13.2.0)
Submit At
2024-12-09 05:09:50
Judged At
2024-12-09 05:09:50
Judged By
Score
20
Total Time
2ms
Peak Memory
540.0 KiB