|
|
вернуться в форумWrong answer in Java 1.7 test12 import java.util.Scanner; public class AcmTimusRu { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); if (39 + 2 * a > a + 2 * b) { System.out.println(2*a+39); } else { System.out.println(2*b+40); } } } Re: Wrong answer in Java 1.7 test12 Послано IPRIT 5 авг 2014 21:39 Not a + 2 * b. You must use 40 + 2 * b. |
|
|