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

Function main

codes/cpp/Code_2_04_3.cpp:7–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5long long Answer = 0;
6
7int main() {
8 // ����
9 cin >> N >> S;
10
11 // ���������߂�
12 for (int i = 1; i <= N; i++) {
13 for (int j = 1; j <= N; j++) {
14 if (i + j <= S) Answer += 1;
15 }
16 }
17
18 // �o��
19 cout << Answer << endl;
20 return 0;
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected