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 "Board.h" | |
#include "Postscript.h" | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
Postscript::init(); |
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> | |
class DangerSweeper | |
{ | |
public: | |
DangerSweeper(){}; | |
void set_map(const std::vector<std::vector<size_t>> & map); | |
std::vector<std::vector<size_t>> get_report() { return m_report; }; | |
std::vector<std::vector<size_t>> convolution(const std::vector<std::vector<size_t>> & map, const std::vector<std::vector<size_t>> & mask) const; | |
void detect(); |
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> | |
#include<iostream> | |
#include<algorithm> | |
#include<string> | |
using namespace std; | |
template<typename T> | |
class Point | |
{ |
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 <string> | |
using namespace std; | |
void translated(const long long& input, string& output, bool flag = true); | |
void translated(const long long& input, string& output, bool flag) | |
{ | |
int kuti = input % 100; |
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 <stdio.h> | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <numeric> | |
using namespace std; | |
int main() | |
{ |
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> | |
#include <array> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
#define EACH_TEST_CASE_DATA_NUMBER 10 | |
typedef vector<array<pair<string, int>, EACH_TEST_CASE_DATA_NUMBER>> test_case_struct; | |
typedef vector<vector<string>> result_struct; |
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> | |
#include <iostream> | |
#include <algorithm> | |
#include <string> | |
using namespace std; | |
void put_data(const int &input_data, vector<int> &stack, vector<int> &queue, vector<int> &priority_queue) | |
{ | |
stack.push_back(input_data); |
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 "DataTansfer.h" | |
#include <fstream> | |
#include <iostream> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sstream> | |
using namespace std; | |
void DataTransfer::read_data(string filename) |
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 <string> | |
#include "Checkerboard.h" | |
using namespace std; | |
Piece create_piece(const char c, const size_t ¤t_col, const size_t ¤t_row) | |
{ | |
if (c == 'p') return Piece(eCountry::BLACK, eRank::PAWN, current_col, current_row); | |
if (c == 'n') return Piece(eCountry::BLACK, eRank::KNIGHT, current_col, current_row); |
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 "Dominos.h" | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int test_case_number; | |
cin >> test_case_number; | |
for (int i = 0; i < test_case_number; i++) |
NewerOlder