Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int cases, note_count, required_money;
//cases - no of cases
//note_count - no of notes
//required money - money asked by the monster
@YashasSamaga
YashasSamaga / gist:8f264a28cde4b1d6af78865e81790c6e
Last active February 4, 2017 13:11
Char bit pattern to string lookup table
static const char bstring_tlb256[256][9] =
{
"00000000",
"00000001",
"00000010",
"00000011",
"00000100",
"00000101",
"00000110",
"00000111",