Mosquito.java
import java.util.Scanner;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author cteam051
*/
public class Mosquito {
/**
* @param args the command line arguments
*/
public static void main
(String[] args
) { Scanner sc
= new Scanner
(System.
in); int M, P, L, E, R, S, N;
int puppae, larvae, mosqs;
while (sc.hasNextInt()) {
M = sc.nextInt();
P = sc.nextInt();
L = sc.nextInt();
E = sc.nextInt();
R = sc.nextInt();
S = sc.nextInt();
N = sc.nextInt();
puppae = 0;
larvae = 0;
mosqs = 0;
for (int i = 0; i < N; i++) {
larvae = M * E;
puppae = L / R;
mosqs = P / S;
M = mosqs;
P = puppae;
L = larvae;
}
}
}
}
//10 20 40 4 2 2 10
//144 55 8 0 1 9 4
//10 10 10 2 3 2 6
//10 20 40 86 9 9 999