Instantly share code, notes, and snippets.

View 403.cpp
#include "Board.h"
#include "Postscript.h"
#include <iostream>
using namespace std;
int main()
{
Postscript::init();
View 10189.cpp
#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();
View 681.cpp
#include<vector>
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
template<typename T>
class Point
{
View 10101.cpp
#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;
View 591.cpp
#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
using namespace std;
int main()
{
View 12015.cpp
#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;
View 11995.cpp
#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);
View DataTansfer.cpp
#include "DataTansfer.h"
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <sstream>
using namespace std;
void DataTransfer::read_data(string filename)
View 10284.cpp
#include <iostream>
#include <string>
#include "Checkerboard.h"
using namespace std;
Piece create_piece(const char c, const size_t &current_col, const size_t &current_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);
View 11518.cpp
#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++)