我们团队准备出一道交互题,类似P10735 [NOISG2019 Prelim] Square or Rectangle? 看了交互题教程,不会多次调用函数,求助
#include "testlib.h"
#include<bits/stdc++.h>
using namespace std;
extern "C" int what_is_my_side(int N, int Q);
static int T;
static int N, Q, X1, X2, Y1, Y2, q;
extern "C" bool inside_shape(int X, int Y) {
q++;
if (q > Q) {
quitf(_wa, "Wrong Answer. Used too many queries.\n");
exit(0);
}
if (X <= 0 || X > N || Y <= 0 || Y > N) {
quitf(_wa, "Wrong Answer. Query parameters out of range.\n");
exit(0);
}
return (X >= X1 && X <= X2 && Y >= Y1 && Y <= Y2);
}
signed main()
{
cin>>X1>>Y1>>X2>>Y2;
}