Mosquito.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author cteam095
*/
public class Mosquito {
String inputLine
= br.
readLine();
while (inputLine != null) {
String[] cisla
= inputLine.
split(" ");
int M
= Integer.
parseInt(cisla
[0]); int P
= Integer.
parseInt(cisla
[1]); int L
= Integer.
parseInt(cisla
[2]); int E
= Integer.
parseInt(cisla
[3]); int R
= Integer.
parseInt(cisla
[4]); int S
= Integer.
parseInt(cisla
[5]); int N
= Integer.
parseInt(cisla
[6]);
int temp = L;
L = M * E;
M = P / S;
P = temp / R;
for (int i = 1; i < N; i++) {
temp = L;
L = M * E;
M = P / S;
P = temp / R;
}
inputLine = br.readLine();
}
}
}