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 "callejones.h" | |
int N; | |
int E[1002][1002]; | |
void eulerianPath(int node){ | |
for(int i = 0; i < N; i++) | |
if(E[node][i]){ | |
E[node][i] = E[i][node] = 0; | |
eulerianPath(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 <bits/stdc++.h> | |
#define op_ ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
const int INF = (1 << 30); | |
struct Nodo{ | |
int lazy; | |
int izq, der; | |
int disponibles; |
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> | |
#define optimizar_io ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
int t, n, m; | |
int a, b; | |
int A[100002]; | |
int ST[400002]; |
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 <stdio.h> | |
#include <algorithm> | |
using namespace std; | |
int n, m, lim, ret; | |
int X[6], Y[6], T[6]; | |
int M[10][10]; | |
int mapa[10][10]; |
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 <vector> | |
#include <algorithm> | |
#define optimizar_io ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
int n, m, r, a, b; | |
int I[10002]; | |
vector<int> E[10002], T[10002]; | |
bool vis[10002]; |
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 <vector> | |
#include <algorithm> | |
#define optimizar_io ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
int n, m; | |
int a, b; | |
int vis[10002], color; | |
int SCC[10002], O[10002], r; |
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 n, m; | |
int k, A[100002]; | |
struct node{ | |
int hijos[2]; | |
int words; |
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> | |
#define optimizar_io ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
int n, d; | |
int A[100002]; | |
int main(){ | |
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> | |
#include <vector> | |
#define optimizar_io ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
int n, r, c, p; | |
vector<int> E[102]; | |
int R[102], B[102], S[102], Br[102]; | |
int DP[102][102], vis[102][102]; |
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> | |
#define mod 5000000 | |
#define optimizar_io ios_base::sync_with_stdio(0);cin.tie(0); | |
using namespace std; | |
int n, k, m; | |
int BIT[100002], last[100002]; | |
int A[100002], B[100002]; | |
int DP[52][100002], vis[100002]; |
NewerOlder