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
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); | |
}) |
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 <algorithm> | |
#include <stdio.h> | |
#include <string.h> | |
#include <vector> | |
using namespace std; | |
enum ChessBoardState | |
{ | |
Free, |
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 <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) | |
{ |
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 <map> | |
#include <stdio.h> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
vector<int> TeamQueue; | |
map<int, int> TeamIDMappingTable; |
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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <map> | |
#include <set> | |
#include <stack> | |
#include <string> | |
using namespace std; |
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 "gtest/gtest.h" | |
#include "MockBudgetRepo.h" | |
#include "Accounting.h" | |
using namespace std; | |
using namespace ::testing; | |
class AccoutingTestCase : public testing::Test | |
{ | |
protected: |
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 <algorithm> | |
#include <iostream> | |
#include <map> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
vector<pair<string, string>> ananagramTable; | |
map<string, bool> relativeAnanagram; |
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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <regex> | |
#include <set> | |
#include <stdio.h> | |
#include <string> | |
using namespace std; |
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 <algorithm> | |
#include <stdio.h> | |
#include <vector> | |
using namespace std; | |
void inputRegions(int quantityOfRegions, vector<int> ®ions) | |
{ | |
regions.resize(quantityOfRegions, 0); | |
for (auto i = 0; i < quantityOfRegions; i++) |
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 <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); |
NewerOlder