Source code for submission s647

mosquito.cpp

  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(int argc, char** argv){
  6. int M, P, L, E, R, S, N, temp;
  7. while(cin >> M >> P >> L >> E >> R >> S >> N) {
  8. for(int i = 0; i < N; i++) {
  9. temp = M;
  10. M = P / S;
  11. P = L / R;
  12. L = temp * E;
  13. }
  14. cout << M << endl;
  15. }
  16.  
  17. return 0;
  18. }
  19.