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 inf 1e9 | |
using namespace std; | |
typedef pair<int, int> ii; | |
void djikstra(vector<pair<int, int> > grafo[], int start){ | |
priority_queue<ii, vector<ii>, greater<ii> > PQ; | |
PQ.push(make_pair(0, start)); |
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
from itertools import izip | |
from os import system | |
from time import time | |
system("g++ 1253_Cifra_de_cesar.cpp -o 1253") | |
antes = time() | |
system("./1253 <input >output") | |
depois = time() | |
print "Execution time = {0:.5f}".format(depois - antes) |
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
/** | |
* Representação de um aluno da UFCG que possui contas na cantina, laboratório e | |
* matrículas em disciplinas. Também é registrado o estado da saúde do aluno. | |
* | |
* @author Gabriel Alves Tavares | |
*/ | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.ArrayList; |
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
/** | |
* Loop principal do programa. | |
* @author Gabriel Alves Tavares | |
*/ | |
public class Coisa { | |
/** | |
* 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
/** | |
* Conta de um aluno em uma cantina. | |
* | |
* @author Gabriel Alves Tavares | |
*/ | |
import java.util.ArrayList; | |
public class ContaCantina { |
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
/** | |
* Conta de uma aluno em um labotório. | |
* | |
* @author Gabriel Alves Tavares | |
*/ | |
public class ContaLaboratorio { | |
private String nome; | |
private int espacoConsumido; |
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
/** | |
* Conta de uma aluno em um labotório. | |
* | |
* @author Gabriel Alves Tavares | |
*/ | |
public class Disciplina { | |
private String nome; | |
private int horasTrabalhadas; |
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
/** | |
* Saúde física e mental do aluno. | |
* | |
* @author Gabriel Alves Tavares | |
*/ | |
public class Saude { | |
private String saudeMental; | |
private String saudeFisica; |
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
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 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: | |
# |
OlderNewer