/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Wrong Answer 54ms 816.0 KiB
#3 Wrong Answer 68ms 776.0 KiB

Code

#include<bits/stdc++.h>
#define ll long long int
#define endl '\n'
#define print(v) for(auto data : v) cout << data << " "; cout << endl;
using namespace std;
ll n, m;
bool is_valid(int ci, int cj)
{
    return !(ci < 0 || ci >= n || cj < 0 || cj >= m);
}
void solve()
{
    cin >> n >> m;
    ll x, y, p, q; cin >> x >> y >> p >> q;
    if(is_valid(x, y) && is_valid(p, q)) cout << "Yes" << endl;
    else cout << "No" << endl;
}
int main()
{
    ios_base::sync_with_stdio(false); cin.tie(NULL);

    int t; cin >> t;
    //int t = 1;
    while(t--) solve();

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1115 Destination
Contest
LU IUJPC : Sylhet Division 2024, Mock Round
Language
C++17 (G++ 13.2.0)
Submit At
2024-12-07 10:39:48
Judged At
2024-12-07 10:39:48
Judged By
Score
10
Total Time
68ms
Peak Memory
816.0 KiB