QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#749873#9739. 盒子ZhangYGWA 0ms3632kbC++14466b2024-11-15 11:04:462024-11-15 11:04:47

Judging History

This is the latest submission verdict.

  • [2024-11-15 11:04:47]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3632kb
  • [2024-11-15 11:04:46]
  • Submitted

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;
}

详细

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]