Wrong Answer
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