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 int long long | |
| #define N 110 | |
| #define mod 1000000007 | |
| using namespace std; | |
| int n, k, h, ch[N][N], dp[N][N], fat[N]; | |
| struct node | |
| { |
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
| // Crayfish Scrivener - IOI 2012 | |
| // Complexidade O(N*logN) | |
| // Matheus Leal V :D | |
| #include <bits/stdc++.h> | |
| #define N 1000050 | |
| #define log 22 | |
| using namespace std; | |
| int n, id; |
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
| // Quality of living - IOI 2010 | |
| // Complexidade O (N*M*log(N*M)) | |
| // Matheus Leal V | |
| #include <bits/stdc++.h> | |
| #define f first | |
| #define s second | |
| #define N 3005 | |
| using namespace std; | |
| typedef pair<int, int> pii; |
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
| // Type Printer - IOI ' 08 | |
| // Complexidade O ( N*|S| ) | |
| // Matheus Leal V | |
| #include <bits/stdc++.h> | |
| using namespace std; | |
| struct node | |
| { |
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
| // Ovelhas - Seletiva IOI 2016 | |
| // Complexidade O (N*Log(N)) | |
| // Matheus Leal V | |
| #include <bits/stdc++.h> | |
| #define N 100050 | |
| #define f first | |
| #define s second | |
| 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
| // Bairro - Seletiva IOI 2016 | |
| // Complexidade O (N*log²(N)) | |
| #include <bits/stdc++.h> | |
| #define inf 2000000000 | |
| #define N 200050 | |
| #define f first | |
| #define s second | |
| using namespace std; | |
| typedef pair<int, int> pii; |
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
| //The Big Prize - IOI 2017 Day 2 Problem A (90 Pontos) | |
| //Matheus Leal V | |
| #include <bits/stdc++.h> | |
| #define N 200050 | |
| #define d min(i + 500, n) | |
| #include "prize.h" | |
| using namespace std; | |
| int n, v[N]; |
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
| // Cave - IOI 2013 | |
| // Complexidade O(N²*log(N)) | |
| // Matheus Leal V | |
| #include "cave.h" | |
| #include <bits/stdc++.h> | |
| using namespace std; | |
| int N, idx[5050], tip[5050]; |
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
| // Dreaming - IOI 2013 | |
| // Complexidade O(N*log(N)) | |
| // Matheus Leal V | |
| #include <bits/stdc++.h> | |
| #define int long long | |
| #define N 100050 | |
| #define f first | |
| #define s second | |
| 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 <bits/stdc++.h> | |
| #define N 2000010 | |
| #define inf 2000000000 | |
| #define f first | |
| #define s second | |
| using namespace std; | |
| typedef pair<int, int> pii; | |
| pii best; |