Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#2 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#3 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#4 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#5 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#6 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#7 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#8 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#9 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#10 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#11 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
||
#12 |
Error de compilación
Main.java:24: error: illegal start of expression } ^ Main.java:31: error: illegal start of expression } ^ 2 errors |
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(); int n = sc.nextInt(); int[] array = new int[n]; for(int i=0; i<n; i++){ array[i] = sc.nextInt(); } last_number = array[0]; for(int i=1; i<n; i++){ if(last_number > array[i]){ System.out.println("Desordenado"); return } last_number = array[i]; } System.out.println("Ordenado"); return } }