Source code for submission s614

mosquito.cpp

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