TopCoder

SRM144 DIV1 300

#include <vector> #include <string> #include <sstream> using namespace std; class BinaryCode { public: vector<string> decode(string message){ vector<string> dst; vector<int> Q; vector<int> P; int len = 0; len = message.length(); for(int i = 0; i < len; i++) Q.push_back(message[i]-48); for(</int></int></string></string></sstream></string></vector>…