fork download
  1. #include <stdio.h>
  2. int main(){
  3. //sample input and output:
  4. char name[10];//n0 N n1 C n2 M
  5.  
  6. int nN, nC, nM, temp;
  7. nN=10;
  8. nC=2;
  9. nM=5;
  10.  
  11. scanf("%d",nN);
  12. scanf("%d",nC);
  13. scanf("%d",nM);
  14. temp = abs(nN/nC);
  15.  
  16. temp = temp + abs(temp/nM);
  17.  
  18.  
  19.  
  20. printf("%d",temp);
  21. return 0;
  22. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
6