fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,c;
  6. for(a=0;a<33;a++)
  7. for(b=0;b<=50;b++)
  8. for(c=0;c<100;c++)
  9. {
  10. if((a+b+c)==100&&(3*a+2*b+0.5*c)==100)
  11. printf("%d%d%d\n",a,b,c);
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
23068
52570
82072
111574
141076
17578
20080