В консоль выводит данные согласно задаче, но не засчитывает как верный.
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int buf;
if(b<c){
buf = c;
c = b;
b = buf;
}
if(a<b){
buf = b;
b = a;
a = buf;
}
System.out.print(a + " " + b + " " + c);
}
}