This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ar = [[x,y,z] for x in xlist for y in ylist for z in zlist if x + y + z != n] | |
print(ar) | |
#Es la misma sentencia que la de abajo | |
for x in xlist: | |
for y in ylist: | |
for z in zlist: | |
if (x+y+z != n): | |
print([x,y,z]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list(map(int,sys.stdin.readlinne().strip().split(''))) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#En la siguiente linea se lee completaamente una entrada (Linea de entrada) y se hace split por defecto en los espacios en blanco luego | |
#cada elemento es mapeado como enteero y se guarada en una lista, | |
arr = map(int, raw_input().split()) | |
#En el siguiente caso el split asignara a N el primer elemto encontrado y a M el segundo | |
N , M = map(int, raw_input().split()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mergeSort(alist): | |
print("Splitting ",alist) | |
#Si la lista es superior a 1 se saldra no hay mas divisiones | |
if len(alist)>1: | |
#Divide en 2 la longitud de la lista y toma la parte entera | |
mid = len(alist)//2 | |
#parte izquierda de la lista toma desde el inicio de la lista hasta la mitad que determino antes | |
lefthalf = alist[:mid] | |
#toma desde la mitad que determino antes y divide hasta el final de la lista |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package logica; | |
public class CalculoIntegral extends CursoRefuerzo { | |
private String actividades; | |
public CalculoIntegral() { | |
//Logica para acceder a los cursos | |
actividades = "Sumas de Riemann - Integrales indefinidas - Longitud de curvas - " |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer