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

Function shou_mondai

codes/cpp/Code_5_06_1.cpp:7–12  ·  view source on GitHub ↗

����� t �������֐�

Source from the content-addressed store, hash-verified

5
6// ����� t �������֐�
7bool shou_mondai(int t) {
8 int cl = (A + t - 1) / t; // A��t �̏����_�ȉ��؂�グ
9 int cr = B / t; // B��t �̏����_�ȉ��؂�̂�
10 if (cr - cl >= 1) return true;
11 return false;
12}
13
14int main() {
15 cin >> A >> B;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected