Source code for submission s560

mosquito.c

  1. #include <stdio.h>
  2.  
  3. int M,P,L,E,R,S,N,P1,L1,M1;
  4.  
  5. int main() {
  6. while (scanf("%d%d%d%d%d%d%d",&M,&P,&L,&E,&R,&S,&N) == 7) {
  7. while (N-->0) {
  8. L1 = E*M;
  9. P1 = L/R;
  10. M1 = P/S;
  11. L = L1;
  12. M = M1;
  13. P = P1;
  14. };
  15. printf("%d\n",M);
  16. };
  17. return 0;
  18. }
  19.