Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
int main()
{
int testCase;
cin >> testCase;
for (int testCount = 0; testCount < testCase; testCount++)
{
int wallNumbers = 0, highJumpCount = 0, lowJumpCount = 0, preWallIndex = 0, postWallIndex = 0;
@bunnyadad
bunnyadad / 775.cpp
Last active May 31, 2017 11:01
Presentation error
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <list>
#include <set>
using namespace std;
class DictionaryMapping
@bunnyadad
bunnyadad / 10242.cpp
Created June 13, 2017 11:49
fourth_point
#include <iostream>
#include <vector>
#include <iomanip>
#include <set>
using namespace std;
class Point
{
public:
#include <iostream>
#include <vector>
#include <string>
using namespace std;
enum Orientations
{
L,
R,
F,
#include <iostream>
#include <vector>
#include <string>
#include <regex>
#include <memory>
using namespace std;
class Tree
{
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
void crypt_analysis(const string &input, vector<pair<char, int>> &crypt_map)
{
for (auto &it : input)
{
#include <iostream>
#include <map>
#include <string>
#include <bitset>
#include <vector>
using namespace std;
vector<int> play_music(string song)
{
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Matrix
{
public:
Matrix(int row):m_row(row), m_size(row*row)
{
#include <iostream>
#include <string>
#include <map>
using namespace std;
static string TriangleWave(size_t type)
{
static const map<size_t, string> table
{
{ 1, "1" },
#include <iostream>
#include <string>
using namespace std;
int main()
{
static const char soundex_table[] = { '\0', '1', '2', '3', '\0', '1', '2', '\0', '\0', '2', '2', '4', '5', '5', '\0', '1', '2', '6', '2', '3', '\0', '1', '\0', '2', '\0', '2' };
string input;
while (cin >> input)
{