#' stdio.h' 포함
인트메인 (void)
{
Int count, fen 1, fen2, fen5, money
Int 반복, ri;
Scanf("%d ",& 다시 읽기);
For (ri =1; Ri<= 다시 읽기; Ri++){
Scanf("%d ",& 돈);
Count = 0;;
For (fen5 = 돈/5; Fen5 & gt= 1; Fen5-){
For (fen2 = 돈/2; Fen2 & gt= 1; Fen2-){
For (fen 1 = 돈; Fen1> = 1; Fen 1-){
If (fen1+2 * fen2+5 * fen5 = = money) {
Printf("fen5:%d, fen2:%d, fen 1:%d, total:%d\n ",fen5, fen
Count++;+; }
}}}}
Printf("count = %d\n ",개수);
}
}