#include <iostream>
using namespace std;
int main() {
int n,count=0;
cin >> n;
for (int i = 0; i <= n/5; i++) {
count += (n - i * 5) / 2+1;
}
cout << count << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int n,count=0;
cin >> n;
for (int i = 0; i <= n/5; i++) {
count += (n - i * 5) / 2+1;
}
cout << count << endl;
return 0;
}
本文标题:零钱兑换
本文链接:https://www.haomeiwen.com/subject/erxpuqtx.html
网友评论