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
// USACO 2021 January Contest, Silver | |
// Problem 3. Spaced Out | |
#include "bits/stdc++.h" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; |
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
//USACO 2020 December Contest, Silver | |
//Problem 1. Cowntagion | |
#include "bits/stdc++.h" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; |
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" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; | |
typedef vector<int> vi; | |
typedef vector<vi> vvi; |
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
// USACO 2020 December Contest, Silver | |
// Problem 2. Rectangular Pasture | |
#include "bits/stdc++.h" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; |
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" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; | |
typedef vector<int> vi; | |
typedef vector<vi> vvi; | |
typedef vector<ll> vl; |
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
// USACO 2016 January Contest, Silver | |
// Problem 3. Build Gates - using ad hoc solution | |
#include "bits/stdc++.h" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; |
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
// USACO 2016 January Contest, Silver | |
// Problem 3. Build Gates | |
#include "bits/stdc++.h" | |
#include <fstream> | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; |
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
// USACO 2017 US Open Contest, Silver | |
// Problem 3. Where's Bessie? | |
#include "bits/stdc++.h" | |
#include <fstream> | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; |
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
// Where - unfinished | |
#include "bits/stdc++.h" | |
#include <fstream> | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; | |
typedef vector<int> vi; |
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
//Perimeter - calculate result during floodfill | |
#include "bits/stdc++.h" | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
typedef pair<string, string> pss; | |
typedef vector<int> vi; |
NewerOlder