Source code for submission s736

Go to diff to previous submission

Mosquito.java

  1. import java.util.LinkedList;
  2. import java.util.List;
  3. import java.util.Scanner;
  4.  
  5. /**
  6.  *
  7.  * @author student
  8.  */
  9. public class Main {
  10.  
  11. /**
  12.   * @param args the command line arguments
  13.   */
  14. public static void main(String[] args) {
  15. Scanner sc = new Scanner(System.in);
  16. String res = sc.nextLine();
  17. List<Integer> result = new LinkedList<Integer>();
  18. String[] ress = res.split(" ");
  19. int pom, m, p, l, e, r, s, n;
  20. while (!"".equals(res)) {
  21. m = Integer.parseInt(ress[0]);
  22. p = Integer.parseInt(ress[1]);
  23. l = Integer.parseInt(ress[2]);
  24. e = Integer.parseInt(ress[3]);
  25. r = Integer.parseInt(ress[4]);
  26. s = Integer.parseInt(ress[5]);
  27. n = Integer.parseInt(ress[6]);
  28.  
  29. for (int i = 0; i < n; i++) {
  30. pom = m;
  31. m = Math.round(p / s);
  32. p = Math.round(l / r);
  33. l = pom * e;
  34.  
  35. }
  36. res = sc.nextLine();
  37. result.add(m);
  38. }
  39. for (Integer string : result) {
  40. System.out.println(string);
  41. }
  42.  
  43.  
  44. }
  45. }
  46.  

Diff to submission s732

Mosquito.java

--- c4.s732.cteam124.mosquito.java.0.Mosquito.java
+++ c4.s736.cteam124.mosquito.java.0.Mosquito.java
@@ -7,5 +7,5 @@
  * @author student
  */
-public class Mosquito {
+public class Main {
 
     /**