Mosquito.java
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
*
* @author cteam049
*/
public class Mosquito {
protected int Msouc, Mpred;
protected int Psouc, Ppred;
protected int Lsouc, Lpred;
protected int E;
protected int R;
protected int S;
protected int N;
/**
* @param args the command line arguments
*/
public static void main
(String[] args
) { Mosquito program = new Mosquito();
program.run();
}
protected void run() {
try {
for ( ;; )
{
nacteni();
for (int i = 0; i < N; i++) {
Mpred = Msouc;
Ppred = Psouc;
Lpred = Lsouc;
Lsouc = Mpred * E;
Psouc= Lpred/R;
Msouc = Ppred/S;
}
}
e.printStackTrace();
}
}
Msouc = nextInt();
Psouc = nextInt();
Lsouc = nextInt();
E = nextInt();
R = nextInt();
S = nextInt();
N = nextInt();
}
/* INPUT READING */
while (!st.hasMoreTokens()) {
}
return st.nextToken();
}
return Integer.
parseInt(this.
nextToken()); }
return input.readLine();
}
}