You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include <bits/stdc++.h>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
int n, a, b, c, count = 0; //a:10的个数,b:20的个数,c:50的个数
|
|
|
|
|
cin >> n; //n元钞票
|
|
|
|
|
for (c = 0; c <= 2 * n / 100; c++)
|
|
|
|
|
for (b = 0; b <= 5 * n / 100; b++) {
|
|
|
|
|
if (c * 50 + b * 20 <= n)
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
cout << count << endl;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|