Skip to content

Instantly share code, notes, and snippets.

#include <cstdio>
#include <vector>
void tryDivide(const std::vector<int> &baseList, int &number)
{
const auto endIndex = static_cast<int>(baseList.size()) - 1;
for (auto i = endIndex - 1; i >= 0;)
{
if (number == 1)
{
#include <iostream>
#include <map>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
vector<int> TeamQueue;
map<int, int> TeamIDMappingTable;
#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <set>
#include <stack>
#include <string>
using namespace std;
#include "gtest/gtest.h"
#include "MockBudgetRepo.h"
#include "Accounting.h"
using namespace std;
using namespace ::testing;
class AccoutingTestCase : public testing::Test
{
protected:
@WindAzure
WindAzure / Ananagrams.cpp
Created November 12, 2019 15:44
UVa 156
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
vector<pair<string, string>> ananagramTable;
map<string, bool> relativeAnanagram;
#include <algorithm>
#include <iostream>
#include <iterator>
#include <regex>
#include <set>
#include <stdio.h>
#include <string>
using namespace std;
@WindAzure
WindAzure / Flooded!.cpp
Created October 28, 2019 16:15
UVa 815
#include <algorithm>
#include <stdio.h>
#include <vector>
using namespace std;
void inputRegions(int quantityOfRegions, vector<int> &regions)
{
regions.resize(quantityOfRegions, 0);
for (auto i = 0; i < quantityOfRegions; i++)
@WindAzure
WindAzure / Data Mining.cpp
Last active October 28, 2019 16:15
UVa 1591
#include <limits>
#include <stdio.h>
int main()
{
auto N = 0, Sp = 0, Sq = 0;
while (~scanf("%d%d%d", &N, &Sp, &Sq))
{
auto baseLengthOfP = static_cast<long long>(Sp) * (N - 1);
auto baseLengthOfQ = static_cast<long long>(Sq) * (N - 1);
#include <queue>
#include <stdio.h>
#include <vector>
using namespace std;
constexpr auto AWAKE = 1;
constexpr auto SLEEP = 0;
struct Student
@WindAzure
WindAzure / install.qs
Created June 4, 2019 15:38
Silent Install script for Qt installer.
function Controller() {
gui.setSilent(true);
installer.autoRejectMessageBoxes();
installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
installer.setMessageBoxAutomaticAnswer("installationErrorWithRetry", QMessageBox.Ignore);
installer.installationFinished.connect(function() {
console.log("install finished");
gui.clickButton(buttons.NextButton);
})