Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.049 s | 15 KBi |
#2 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.076 s | 12 KBi |
#3 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.075 s | 15 KBi |
#4 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.077 s | 16 KBi |
#5 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.051 s | 15 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.071 s | 14 KBi |
#7 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.074 s | 14 KBi |
#8 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.08 s | 13 KBi |
#9 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.077 s | 12 KBi |
#10 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main |
0.084 s | 15 KBi |
class CalculoArreglo { public static void main(String[] args) { java.util.Scanner inp = new java.util.Scanner(System.in); int n = inp.nextInt(); int numbers[] = new int[n]; for(int i = 0; i < n; i++) { numbers[i] = inp.nextInt(); } int queries = inp.nextInt(); for(int i = 0; i < queries; i++) { int x = inp.nextInt(); int contador = 0; for(int j = 0; j < n; j++) { if(numbers[j] > x) contador++; } System.out.println(contador + "\n"); } } }