-1 учтен, но не выполнено условие
package com.javarush.task.task04.task0442;
/*
Суммирование
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader i = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(i.readLine());
int b = Integer.parseInt(i.readLine());
int c = Integer.parseInt(i.readLine());
int c1 = Integer.parseInt(i.readLine());
int c3 = Integer.parseInt(i.readLine());
int[] a1 = new int[]{a, b, c, c1, c3};
Arrays.sort(a1);
int summ = 0;
for (int n=0; n<a1.length; n++) {
{ a1[n] = -1;
summ = a+b+c+c1+c3;}
}
System.out.println(summ);
//напишите тут ваш код
}
}