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
#ifndef TURTLE_H_INCLUDED | |
#define TURTLE_H_INCLUDED | |
#include <winbgim.h> | |
#include <cmath> | |
class Turtle { | |
double x, y, ang; | |
static const int WIDTH = 800, HEIGH = 800; | |
static const double PI = 3.14159265359; | |
public: |
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
Clase { | |
}; | |
int main() { | |
int *arreglo = new int[10]; | |
delete []arreglo; | |
Clase *objeto = new Clase; | |
delete objeto; |
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 MAXN 1005 | |
using namespace std; | |
typedef pair<int, int> pii; | |
int P[MAXN]; | |
int pi[MAXN]; | |
pii A[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
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>MainWindow</class> | |
<widget class="QMainWindow" name="MainWindow"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>400</width> | |
<height>300</height> |
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 <cstdio> | |
#include <vector> | |
#include <cstring> | |
#include <algorithm> | |
#define MAXN 3000004 | |
using namespace std; | |
vector<int> adj[MAXN]; | |
int orden[MAXN], size[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 <cstdio> | |
#include <bits/stl_algobase.h> | |
#define MAXN 1005 | |
using std::min; | |
const int INF = 1<<30, MASK = (1 << 10) - 1, START = MAXN*MAXN*4; | |
int n, m; | |
char S[MAXN][MAXN]; | |
int D[MAXN][MAXN][4]; |
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 <unistd.h> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
for (int i = 0; i <= 100; i++) { | |
usleep(10000); | |
cout << "["; | |
for (int j = 0; j < i; j++) |
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 <cmath> | |
#include <vector> | |
#include <iostream> | |
#include <queue> | |
#include <cstring> | |
#include <algorithm> | |
using namespace std; | |
typedef long long LL; |
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 <cstring> | |
#include <algorithm> | |
#include <bitset> | |
#define MAXN 301 | |
#define MAXT 300001 | |
using namespace std; |
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 <cstdio> | |
#include <vector> | |
#include <cmath> | |
#include <algorithm> | |
#include <cstring> | |
using namespace std; | |
typedef double ldoub; |