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 node{ | |
int v, w; | |
node *l, *r; | |
node(int v_=0){ | |
v = v_; |
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 node{ | |
int v, w, sz, sum; | |
node *l, *r; | |
bool rev; | |
node(int v_=0){ | |
v = sum = v_; |
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 cartas[1010]; | |
int resp[3]; | |
int main() { | |
int n, N, K, c = 0; |
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 <iostream> | |
using namespace std; | |
int main() { | |
long long A, B; | |
cin >> A >> B; | |
cout << (A*B)%10 << "\n"; | |
return 0; | |
} |
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 <iostream> | |
using namespace std; | |
int main() { | |
long long A, B; | |
cin >> A >> B; | |
long long C = (A%10); | |
long long D = (B%10); |
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 <iostream> | |
#include <set> | |
using namespace std; | |
int main(){ | |
set<string> conj; // Declaro o conjunto de pomekons. | |
int N; | |
cin >> N; | |
for(int i=0;i<N;i++){ | |
string a; |
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 a[100100], b[100100], v[100100]; | |
int main() { | |
int n, ans = 0; |
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 <vector> // Biblioteca que contem a estrutura vector | |
using namespace std; | |
int main() { | |
vector<int> v1; // Declaracao de um vector do tipo int | |
vector<double> v2; // Declaracao de um vector do tipo double | |
return 0; | |
} |
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 <vector> // Biblioteca que contem a estrutura vector | |
using namespace std; | |
int main() { | |
vector<int> v; // Declaracao de um vector do tipo int | |
// No inicio o vetor esta vazio | |
v.push_back(1); // Insiro o elemento 1 no final do vetor |
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 <vector> // Biblioteca que contem a estrutura vector | |
using namespace std; | |
int main() { | |
vector<int> v; // Declaracao de um vector do tipo int | |
// No inicio o vetor esta vazio | |
v.push_back(1); // Insiro o elemento 1 no final do vetor |