Максимальный колхоз, но работает. А вот проверку не проходит.
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
String c = reader.readLine();
int x = Integer.parseInt(a);
int y = Integer.parseInt(b);
int z = Integer.parseInt(c);
int one, two, three;
if ((x<y)&&(x<z)){
one = x;
}else{
if ((y<x)&&(y<z)){
one = y;
}else{
one = z;
}
}
if ((x>y)&&(x>z)){
three = x;
}else{
if ((y>x)&&(y>z)){
three = y;
}else{
three = z;
}
}
if (((x>y)&&(x<z))||((x<y)&&(x>z))){
two = x;
}else{
if (((y>x)&&(y<z))||((y<x)&&(y>z))){
two = y;
}else{
two = z;
}
}
System.out.println(three + " " + two + " "+ one);
}
}
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
String c = reader.readLine();
int x = Integer.parseInt(a);
int y = Integer.parseInt(b);
int z = Integer.parseInt(c);
int one, two, three;
if ((x<y)&&(x<z)){
one = x;
}else{
if ((y<x)&&(y<z)){
one = y;
}else{
one = z;
}
}
if ((x>y)&&(x>z)){
three = x;
}else{
if ((y>x)&&(y>z)){
three = y;
}else{
three = z;
}
}
if (((x>y)&&(x<z))||((x<y)&&(x>z))){
two = x;
}else{
if (((y>x)&&(y<z))||((y<x)&&(y>z))){
two = y;
}else{
two = z;
}
}
System.out.println(three + " " + two + " "+ one);
}
}