Скажите, пожалуйста, почему моя задача не проходит сдачу?
По логике все верно? или здесь нужно написать точь в точь как задумано сайтом?
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
private static boolean AB;
private static boolean AX;
private static boolean YX;
private static boolean YYY;
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int x = s.nextInt();
AB = (a==b);
AX = (a==x);
YX = (x==b);
YYY = (a==b && a==x);
if (YYY)
{System.out.println(a);
System.out.println(b);
System.out.println(x);
} else if (AX) {
System.out.println(a);
System.out.println(x);}
else if (YX) {
System.out.println(b);
System.out.println(x);
}
else if (AB) {
System.out.println(a);
System.out.println(b);
}
//напишите тут ваш код
}
}package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
private static boolean AB;
private static boolean AX;
private static boolean YX;
private static boolean YYY;
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int x = s.nextInt();
AB = (a==b);
AX = (a==x);
YX = (x==b);
YYY = (a==b && a==x);
if (YYY)
{System.out.println(a);
System.out.println(b);
System.out.println(x);
} else if (AX) {
System.out.println(a);
System.out.println(x);}
else if (YX) {
System.out.println(b);
System.out.println(x);
}
else if (AB) {
System.out.println(a);
System.out.println(b);
}
//напишите тут ваш код
}
}