'commit'
This commit is contained in:
14
TangDou/XiTi/1459_3.cpp
Normal file
14
TangDou/XiTi/1459_3.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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 - c * 50) / 100; b++) {
|
||||
count++;
|
||||
}
|
||||
cout << count << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user