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++)
View 10018.cpp
#include <string>
#include <iostream>
using namespace std;
bool is_palindrome(const string & s)
{
if (s.length() == 1) return true;
for (size_t i = 0; i < s.length() / 2; i++) if (s[i] != s[s.length() - 1 - i]) return false;
View 706.cpp
#include "gtest\gtest.h"
#include "Segment.h"
#include <iostream>
using namespace std;
void resize_pattern(const vector<char> &pattern, size_t size, vector<string> &result)
{
result.resize(15,"");
result[0] += pattern[0];
View 10260.cpp
#include <map>
#include <iostream>
#include <string>
int main()
{
std::string input;
while (std::getline(std::cin, input))
{
std::map<char, std::pair<std::string, bool>> table =
View 488.cpp
#include <string>
#include <iostream>
int main()
{
std::string peak_table[10] =
{
"",
"1\n\n",
"1\n22\n1\n\n",