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.
|
int main()
|
|
{
|
|
int i;
|
|
int j;
|
|
int k;
|
|
int t;
|
|
i=0;j=0;k=0;
|
|
while(i<21)
|
|
{
|
|
while(j<101-i)
|
|
{
|
|
k=100-i-j;
|
|
if(5*i+1*j+k/2==100)
|
|
{
|
|
putint(i);
|
|
putint(j);
|
|
putint(k);
|
|
t=10;
|
|
putch(t);
|
|
}
|
|
j=j+1;
|
|
}
|
|
i=i+1;
|
|
}
|
|
|
|
return 0;
|
|
}
|