This file contains hidden or 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
| /* | |
| 100 1 | |
| 60 | |
| 5 | |
| 70 40 | |
| 75 40 | |
| 80 40 | |
| 80 50 | |
| 70 60 | |
| */ |
This file contains hidden or 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
| #include <stdio.h> | |
| #define MAX_ELEMENTS 1000001 | |
| struct node{ | |
| int parent; | |
| int rank; | |
| int size; | |
| }; | |
| node elements[MAX_ELEMENTS]; |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <assert.h> | |
| #define MAX_ELEMENTS 1000001 | |
| struct node{ | |
| int parent; | |
| int rank; | |
| int size; | |
| }; |
This file contains hidden or 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
| import time | |
| class Pagina: | |
| idPagina = 0 | |
| idMarco = 0 | |
| enMemoria = 0 | |
| uAcceso = 0.0 | |
| def imprime(self): | |
| print("Pagina") | |
| print("idPagina: " + str(self.idPagina)) | |
| print("idMarco: " + str(self.idMarco)) |
This file contains hidden or 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
| ;======================================================================================== | |
| ; SECCION DE VARIABLES GLOBALES | |
| ;======================================================================================== | |
| (defparameter *datos* ()) ; Lista de datos | |
| (defparameter *tablaDis* (make-hash-table :test #'equal)) ; Tabla hash de distancias | |
| (defparameter *distancia* ()) ; Funcion de distancia entre elementos | |
| (defparameter *patrones* ()) | |
| (defparameter *numpatrones* 0) | |
| (defparameter *numrasgos* 6) | |
| (defparameter *B0-conexos* ()) ; Lista de grupos B0-conexos |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| long long int mcd(long long int a,long long int b){ | |
| if(b == 0) return a; | |
| return mcd(b,a%b); | |
| } | |
| int main() | |
| { | |
| long long int a,b; |
This file contains hidden or 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
| #include <iostream> | |
| #include <algorithm> | |
| using namespace std; | |
| int numeros[200000]; | |
| int n; | |
| struct punto{ | |
| int x,y; | |
| }; | |
| punto puntos[10000]; |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| int numeros[100000]; | |
| int n; | |
| int main() | |
| { | |
| cin >> n; | |
| for(int i=0;i<n;i++){ | |
| cin >> numeros[i]; |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| int numeros[100000]; | |
| int n; | |
| int main() | |
| { | |
| cin >> n; | |
| for(int i = 0; i<n;i++){ | |
| cin >> numeros[i]; |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| int numeros[100000]; | |
| int n; | |
| int nInt; | |
| int main() | |
| { | |
| cin >> n; | |
| int i =0; |
NewerOlder