QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#749873#9739. 盒子ZhangYGWA 0ms3632kbC++14466b2024-11-15 11:04:462024-11-15 11:04:47

Judging History

你现在查看的是最新测评结果

  • [2024-11-15 11:04:47]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3632kb
  • [2024-11-15 11:04:46]
  • 提交

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]