#include <bits/stdc++.h>
using namespace std;
int main()
{
int i, j, x, y;
int c = 0;
for (i = 1; i <= 100 - 2 - 5; i++)
{
x = 100 - i;
for (j = 1; j <= (x - 5) / 2; j++)
{
y = x - j * 2;
if (y % 5 == 0)
{
cout<<i<<" "<<j<<" "<<y/5<<endl;
c++;
} }}
cout << c << endl;}
1025.兑换硬币
最新推荐文章于 2024-01-04 04:00:00 发布