QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#830069#9739. 盒子wikiWA 2ms3688kbC++14403b2024-12-24 15:53:462024-12-24 15:53:47

Judging History

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

  • [2024-12-24 15:53:47]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3688kb
  • [2024-12-24 15:53:46]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
string s;
int h,z0,a,b,c,d,q;

int main()
{
    cin>>h>>z0>>a>>b>>c>>d;
    cin>>q;
    while(q--)
    {
    	int x,y,z;
    	cin>>x>>y>>z;
    	if(z<=z0+h && z>=z0)
    	{
    		if(x>=min(a,c) && x<=max(a,c))
    		{
    			if(y>=min(b,d) && y<=max(b,d)) {cout<<"Yes\n";continue;}
    		}
    	}
    	cout<<"No\n";
    }
	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3624kb

input:

1 1 -1 -1 1 1
3
-1 -1 1
0 0 2
1 2 2

output:

Yes
Yes
No

result:

ok 3 token(s): yes count is 2, no count is 1

Test #2:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

0 0 0 0 0 0
1
0 0 0

output:

Yes

result:

ok YES

Test #3:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

350432 492023 -396022 -414507 -384948 -709370
1000
-130226 -670854 277087
566180 93150 527328
-204228 -72535 242125
-614762 564337 -801184
223424 -916504 -284025
749863 555219 232927
-127805 10830 871265
510696 -444465 52713
313445 -731187 -723316
-917838 537750 294727
532132 -19501 346654
-632699 -...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
...

result:

ok 1000 token(s): yes count is 0, no count is 1000

Test #4:

score: -100
Wrong Answer
time: 2ms
memory: 3640kb

input:

228503 520839 -998939 648838 301020 -634344
1000
-51454 763171 -95843
-188171 -950717 -549267
-820616 222672 830557
294338 -499633 -837648
641515 624958 954660
958085 -348021 600965
-342912 7553 357975
882334 976349 300816
-773525 667743 -455881
-281685 -62054 -906946
437055 985148 92827
-556692 -76...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No...

result:

wrong answer expected YES, found NO [7th token]