Input
无输入
Output
一个数,表示共有多少种换法
#include <stdio.h>
int main()
{
int one,two,five,ten;
int times=0;
for(one=1;one<100;one++)
for(two=1;two<100/2;two++)
for(five=1;five<100/5;five++)
for(ten=1;ten<100/10;ten++)
if (one+two+five+ten==40 && one+2*two+5*five+10*ten == 100)
times++;
printf("%d", times);
return 0;
}