Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
88262 bnu_fanmeijie 点和正方形的关系 C++ Accepted 0 MS 244 KB 316 2026-05-09 14:12:02

Tests(1/1):


#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; // 判断点是否在正方形内(包括边界) if (x >= -1 && x <= 1 && y >= -1 && y <= 1) { cout << "yes" << endl; } else { cout << "no" << endl; } return 0; }


Judgement Protocol: