#include int main(void){ int L,M,N,L1,M1,N1; printf("1円硬貨、25円硬貨、100円硬貨はそれぞれ何枚ですか?\n"); scanf("%d%d%d",&L,&M,&N); L1 = L%25; M1 = (M+L/25)%4; N1 = (N+M/4)%10; printf("%d\n",L1+M1+N1); return 0; }