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 "reader.h" | |
#include "gurobi_c++.h" | |
using namespace std; | |
int main() | |
{ | |
int disciplinas, dias, salas, horarios; | |
vector<vector<int>> disp_salas, pref_horario; |
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 <stdio.h> | |
#include <stdlib.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
/** | |
* @code a função retorna o produto vetorial entre dois vetores | |
* @param vetA vetor de coordenadas em Rˆ3 |
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
function drawSpirograph(ctx,R,r,O) { | |
var x1 = R-O; | |
var y1 = 0; | |
var i = 1; | |
ctx.beginPath(); | |
ctx.moveTo(x1,y1); | |
do { | |
if (i>20000) break; | |
var x2 = (R+r)*Math.cos(i*Math.PI/72) - (r+O)*Math.cos(((R+r)/r)*(i*Math.PI/72)) |
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 <vector> | |
#include <queue> | |
#include <stack> | |
#include <climits> | |
#include <iostream> | |
using namespace std; | |
#define INFINITO INT_MAX |
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 <vector> | |
#include <queue> | |
#include <stack> | |
#include <iostream> | |
#include <climits> | |
using namespace std; | |
template <class PESO> | |
class Graph { |
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 <vector> | |
#include <queue> | |
#include <stack> | |
#include <iostream> | |
#include <climits> | |
using namespace std; | |
template <class PESO> | |
class Graph { |
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> | |
using namespace std; | |
void coinChange(int *coins, int sizeMoedas, int *table, int n){ | |
for(int i=0; i<=n; i++) | |
table[i] = 0; | |
table[0] = 1; |
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 <string> | |
#include <string.h> | |
#include <stdio.h> | |
using namespace std; | |
int memo[1001][1001]; | |
int max(int a, int b){ |
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 <string> | |
#include <string.h> | |
#include <stdio.h> | |
using namespace std; | |
/** | |
* @return a > b | |
*/ |
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 <stdlib.h> | |
#include <stdio.h> | |
#define TRUE 1 | |
void shell_loop(){ |
NewerOlder