/ 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 Accepted 1ms 380.0 KiB
#5 Accepted 2ms 748.0 KiB
#6 Wrong Answer 1ms 488.0 KiB
#7 Wrong Answer 1ms 540.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int maxi_x(0), maxi_y(0);
    while (n--)
    {
        int x, u;
        cin >> x >> u;
        maxi_x = max(maxi_x, x);
        maxi_y = max(maxi_y, u);
    }
    int l, k;
    cin >> l >> k;
    if (l > maxi_x || k > maxi_y)
    {
        cout << "NO";
    }
    else
    {
        cout << "YES";
    }
}

Information

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