Files
python/TangDou/XiTi/1459_4.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

14 lines
343 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <bits/stdc++.h>
using namespace std;
int main() {
int n, c, count = 0; //a:10的个数,b:20的个数,c:50的个数
cin >> n; //n元钞票
for (c = 0; c <= 2 * n / 100; c++)
//count += 5 * (n - c * 50) / 100 + 1;
count += (n - c * 50) / 20 + 1;
cout << count << endl;
return 0;
}