Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.006 s | 6 KBi |
#2 |
Incorrecto
|
0.006 s | 7 KBi |
#3 |
Correcto
|
0.007 s | 6 KBi |
#4 |
Correcto
|
0.006 s | 6 KBi |
#5 |
Correcto
|
0.005 s | 9 KBi |
#6 |
Incorrecto
|
0.006 s | 28 KBi |
#7 |
Incorrecto
|
0.009 s | 7 KBi |
#8 |
Correcto
|
0.01 s | 30 KBi |
#9 |
Incorrecto
|
0.009 s | 6 KBi |
#10 |
Incorrecto
|
0.011 s | 6 KBi |
package main import "fmt" func main() { var n, cases, comp int fmt.Scanf("%d", &n) array := make([]int, n) for i := 0; i < n; i++ { fmt.Scanf("%d", &array[i]) } fmt.Scanf("%d", &cases) for i := 0; i < n; i++ { fmt.Scanf("%d", &comp) response := 0 for j := 0; j < n; j++ { if array[i] > comp { response +=1 } } fmt.Println(response) } }