In our studio we design high quality polygonal 3d models for CNC machines or 3d printers according to your preferences.
Vendor: 3d-279026
Category: lecterns
Reminder!
Order delivery time is 5-7 working days after payment
The link is sent to your email or messenger
0034 import java.util.Scanner; public class Lecterns { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] heights = new int[n]; for (int i = 0; i < n; i++) { heights[i] = scanner.nextInt(); } int count = 0; for (int i = 0; i < n; i++) { int currentHeight = heights[i]; for (int j = 0; j < n; j++) { if (heights[j] >= currentHeight) { count++; } } } System.out.println(count); } }
for CNC and 3D printers.