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

Function main

codes/cpp/Code_5_09_1.cpp:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int main() {
5 // ����
6 long long N, Answer = 0;
7 cin >> N;
8
9 // �x�������̃V�~�����[�V���� �� �����̏o��
10 while (N >= 10000) { N -= 10000; Answer += 1; }
11 while (N >= 5000) { N -= 5000; Answer += 1; }
12 while (N >= 1) { N -= 1000; Answer += 1; }
13 cout << Answer << endl;
14 return 0;
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected