Main.java
//package Mosquito;
import java.util.Scanner;
/* ----- MOSQUITO MULTIPLICATION ----- */
public class Main {
static Scanner sc
= new Scanner
(System.
in); public static void main
(String[] args
) { int M, P, L, E, R, S, N;
int i, eggs;
while(sc.hasNext()){
M = sc.nextInt(); //moskyti
P = sc.nextInt(); //kokony
L = sc.nextInt(); //larvy
E = sc.nextInt(); //vejce
R = sc.nextInt(); //preziti larev
S = sc.nextInt(); //preziti kokonu
N = sc.nextInt(); //pocet tydnu
sc.nextLine();
for(i = 0; i < N; i++){
eggs = M*E;
M = P/S;
P = L/R;
L = eggs;
}
}
}
}