I hereby claim:
- I am diego9627 on github.
- I am droque (https://keybase.io/droque) on keybase.
- I have a public key whose fingerprint is 038A 376F 27BD 505C 7C95 7E76 65E4 4D15 7C77 B3A0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
type DQ a = [a] -> [a] | |
pushBack :: a -> DQ a -> DQ a | |
pushBack a dq = (a:).dq | |
pushFront :: a -> DQ a -> DQ a | |
pushFront a dq = dq.(a:) | |
toListDQ :: DQ a -> [a] | |
toListDQ dq = dq [] |
#include<iostream> | |
using namespace std; | |
bool test(int N,int K){ | |
int T; | |
if(!(N%2)){ | |
T= (N)*(N)/2+1; | |
} | |
else{ | |
T= (N+1)*(N)/2; |
#include<iostream> | |
#include<fstream> | |
using namespace std; | |
const int MAXN=50005; | |
int S[MAXN],I[MAXN],loga[MAXN];//loga[k] es el piso del logaritmo de k | |
int Tm[MAXN][17]; | |
int TM[MAXN][17]; | |
inline int maxim(int a,int b){ //Maximo del [a,b] O(1) | |
if(a==b) return TM[a][0]; |
#include<iostream> | |
#include<fstream> | |
#include<algorithm> | |
using namespace std; | |
ifstream fin("wifi.in"); | |
ofstream fout("wifi.out"); | |
int main(){ | |
long long int N,A,B,cows[1001],cost=0; | |
fin >> N >> A >> B; | |
for(int i=0;i<N;i++) fin >> cows[i]; |
#include<iostream> | |
#include<list> | |
#define MAXN 100005 | |
#define MAXM 505 | |
using namespace std; | |
int padre[MAXN],N,M,k=0; | |
bool prohibido[MAXN][MAXM]; | |
int colores[MAXN]; | |
int inorder[MAXN]; | |
list<int> hijos[MAXN]; |
#include<iostream> | |
#include<string> | |
#include<queue> | |
using namespace std; | |
int N; | |
string horario[10],resp; | |
pair<bool,int> borrar(int i){ | |
pair<bool,int> res(false,0); | |
if(!horario[i].empty()){ |
#include<iostream> | |
#include<cstdio> | |
#include<map> | |
using namespace std; | |
int amistades[1000][1000]; | |
int main(){ | |
int N,j,i,P; | |
string nombre,nombre2; | |
map<string,int> enumeracion; | |
map<string,int>::iterator it; |
#include<cstdio> | |
int colores[1000000]; | |
bool iguales[1000000]; | |
long long mcd(long long N,long long M){ | |
if(N==0) return M; | |
else return mcd(M%N,N); | |
} | |
int main(){ |
#include<cstdio> | |
#include<iostream> | |
#include<queue> | |
#define MAX 2147483647 | |
using namespace std; | |
int minimo[1001][1001]; | |
struct coord{ | |
int x; | |
int y; | |
}; |