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 MAXN 2000020 | |
| #define f first | |
| #define ll long long | |
| #define s second | |
| #define ii pair <ll, ll> | |
| using namespace std; | |
| ll pena[MAXN]; | |
| ii fle[MAXN]; |
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 MAXN 200000 | |
| #define debug_arr(arr, n) cerr << #arr << " = "; for (int i=0;i<n;i++) cout << arr[i] << " \n"[i == n-1] | |
| using namespace std; | |
| string frase, grande, pequena; | |
| int n, m, back[MAXN]; | |
| vector < vector <int> > dp; |
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 ll long long | |
| #define mp make_pair | |
| #define ii pair <int, int> | |
| #define f first | |
| #define s second | |
| #define INF 1e9 | |
| #define MOD 1000000007 | |
| #define pb push_back | |
| #define MAXN 100010 |
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
| /** | |
| * @author Gabriel Alves Tavares | |
| */ | |
| public class Facade { | |
| private Sistema sistema; | |
| /** | |
| * Inicializa o sistema de controle principal do programa | |
| * @param caixa valor inicial do caixa |
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
| /** | |
| * Classe que representa o aluno, guardando suas suas informações básicas: nome, curso e matrícula. | |
| * | |
| * @author Gabriel Tavares | |
| */ | |
| public class Aluno { | |
| private String matricula; | |
| private String nome; | |
| private String curso; |
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 MAXN 100010 | |
| #define LOGMAXN 21 | |
| #define ii pair <int, int> | |
| using namespace std; | |
| int parent[MAXN][LOGMAXN], pai[MAXN], nodes; | |
| long long int custo[MAXN]; | |
| vector <ii> grafo[MAXN]; | |
| int flag[MAXN], level[MAXN]; |
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 ii pair <int, int> | |
| #define iii pair <int, ii> | |
| #define mp make_pair | |
| #define LOGMAXN 15 | |
| #define MAXN 20000 | |
| using namespace std; | |
| vector <iii> edges; | |
| vector <ii> grafo[MAXN]; |
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
| # Your snippets | |
| # | |
| # Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
| # expand the prefix into a larger code block with templated values. | |
| # | |
| # You can create a new snippet in this file by typing "snip" and then hitting | |
| # tab. | |
| # | |
| # An example CoffeeScript snippet to expand log to console.log: | |
| # |
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
| public class Agenda { | |
| private Contato[] contatos = new Contato[100]; | |
| /** | |
| * Cria um objeto Contato com os paramêtros dados e o armazena no array de | |
| * contatos | |
| * | |
| * @param nome nome do contato | |
| * @param sobrenome sobrenome do contato |
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
| /** | |
| * Saúde física e mental do aluno. | |
| * | |
| * @author Gabriel Alves Tavares | |
| */ | |
| public class Saude { | |
| private String saudeMental; | |
| private String saudeFisica; |