Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.024 s | 5 KBi |
#2 |
Correcto
|
0.024 s | 3 KBi |
#3 |
Incorrecto
|
0.01 s | 3 KBi |
#4 |
Correcto
|
0.01 s | 3 KBi |
#5 |
Correcto
|
0.01 s | 3 KBi |
#6 |
Correcto
|
0.023 s | 4 KBi |
#7 |
Correcto
|
0.028 s | 3 KBi |
#8 |
Correcto
|
0.014 s | 3 KBi |
#9 |
Incorrecto
|
0.024 s | 4 KBi |
#10 |
Correcto
|
0.009 s | 3 KBi |
#11 |
Correcto
|
0.012 s | 3 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 9, in <module> col3 =f[2] IndexError: list index out of range |
0.025 s | 3 KBi |
#13 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 9, in <module> col3 =f[2] IndexError: list index out of range |
0.01 s | 3 KBi |
#14 |
Incorrecto
|
0.024 s | 4 KBi |
#15 |
Incorrecto
|
0.011 s | 3 KBi |
#16 |
Incorrecto
|
0.033 s | 3 KBi |
#17 |
Correcto
|
0.012 s | 3 KBi |
#18 |
Incorrecto
|
0.012 s | 3 KBi |
#19 |
Incorrecto
|
0.025 s | 3 KBi |
#20 |
Correcto
|
0.014 s | 3 KBi |
n = int(input()) m = [] p = input() f = [int(x) for x in p.split()] m.append(f) suma = sum(f) col1 = f[0] col2 = f[1] col3 =f[2] n -= 1 while (n): p = input() f = [int(x) for x in p.split()] col1 += f[0] col2 += f[1] col3 += f[2] m.append(f) n -= 1 dig1 = sum((m[0][0],m[1][1],m[2][2])) dig2 = sum((m[0][2],m[1][1],m[2][0])) fil2 = sum(m[1]) fil3 =sum(m[2]) todos = sum((dig1, dig2, col1, col2, col3, fil2, fil3, suma)) if todos != suma*8: print("No") else: print("Yes")