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
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
ll vet[1000010], x, sm; | |
int t,n,j; | |
bool ok; | |
int main(){ |
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
#include <bits/stdc++.h> | |
using namespace std; | |
const int MAX = 1e5 + 10; | |
pair <int, pair <int,int> > p[MAX]; | |
int id[MAX], vertices, arestas, testes, ans; | |
int root(int x){ | |
while(id[x] != x){ |
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
#include <bits/stdc++.h> | |
using namespace std; | |
struct ret { | |
double x1,y1,x2,y2; | |
}; | |
ret vet[20]; | |
char c; | |
int i,sz; |
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
#include <bits/stdc++.h> | |
#define ff first | |
#define ss second | |
using namespace std; | |
typedef pair<int, int> pii; | |
vector <pii> adj[256]; | |
map <string, int> mapa; | |
int G[256][256], cont, dist[256]; |
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
#include <bits/stdc++.h> | |
#define ff first | |
#define ss second | |
using namespace std; | |
typedef pair<int, int> pii; | |
vector <pii> adj[256]; | |
map <string, int> mapa; | |
int G[256][256], cont, dist[256]; |
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
#include <cstdio> | |
using namespace std; | |
int main() { | |
char ant, S[35]; | |
int n; | |
scanf("%d", &n); |
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
#include <cstdio> | |
#include <vector> | |
#include <queue> | |
using namespace std; | |
int main() | |
{ | |
int m, n, i, j, a, b, cont = 0, z; | |
scanf("%d%d", &n, &m); | |
vector<int> v [n+1]; | |
int imperio[n+1]; |
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
#include <bits/stdc++.h> | |
#define ff first | |
#define ss second | |
using namespace std; | |
typedef pair <double, double> pdd; | |
typedef pair <pdd, pdd> ppd; | |
typedef pair <ppd, char> fig; | |
fig arr[16]; |
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
#include <bits/stdc++.h> | |
using namespace std; | |
int G[128][128]; | |
void fw(int n){ | |
for(int k = 1; k <= n; ++k) | |
for(int i = 1; i <= n; ++i) | |
for(int j = 1; j <= n; ++j) |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define MAXN 1010 | |
pair <int,int> pi[MAXN]; | |
int dp[MAXN][3610]; | |
int n; | |
int solve(int atual, int tempo){ | |
if(atual >= n)return 0; |
OlderNewer