QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#749873 | #9739. 盒子 | ZhangYG | WA | 0ms | 3632kb | C++14 | 466b | 2024-11-15 11:04:46 | 2024-11-15 11:04:47 |
Judging History
answer
#include<bits/stdc++.h>
#include <iostream>
#include <algorithm>
#define ll long long
#define ld long double
using namespace std;
int z0,h,u0,v0,u1,v1;
int t;
void solve()
{
int x,y,z;
cin >> x >> y >> z;
if(x >= u0 && x <= u1 && y >= v0 && y <= v1 && z >= z0 && z <= z0 + h) cout << "yes";
else cout << "no" << "\n";
}
int main()
{
cin >> z0 >> h >> u0 >> v0 >> u1 >> v1;
cin >> t;
while(t--)
{
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3632kb
input:
1 1 -1 -1 1 1 3 -1 -1 1 0 0 2 1 2 2
output:
yesyesno
result:
wrong output format YES or NO expected, but YESYESNO found [1st token]