MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / check_numpoints

Function check_numpoints

codes/cpp/Code_5_05_2.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6long long Answer = (1LL << 62); // ���蓾�Ȃ��l�ɐݒ�
7
8int check_numpoints(int lx, int rx, int ly, int ry) {
9 int cnt = 0;
10 for (int i = 1; i <= N; i++) {
11 // �_ (X[i], Y[i]) �������`�Ɋ܂܂�Ă��邩�ǂ����𔻒肷��
12 if (lx <= X[i] && X[i] <= rx && ly <= Y[i] && Y[i] <= ry) cnt++;
13 }
14 return cnt;
15}
16
17int main() {
18 // ����

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected