// 2022 IUSB Programming Competition // Round 1 Problem 5 // Triangles // Solution by Liguo Yu import java.util.Scanner; public class round1_p5 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int m = input.nextInt(); int[] a = new int[m]; for(int i=0; i a[k] && a[i] + a[k] > a[j] && a[j] + a[k] > a[i]) { result = result + 1; } } } } return result; } }