This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

14
TangDou/XiTi/1459_3.cpp Normal file
View 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;
}