{"blog_url":"https://logfiles.hatenablog.com/","author_name":"moistx","published":"2014-08-17 15:34:26","url":"https://logfiles.hatenablog.com/entry/20140817/1408257266","type":"rich","version":"1.0","image_url":null,"description":"\u89e3\u6cd5 \u5148\u306bstring\u306e\u968e\u5c64\u69cb\u9020\u3092vector\u5316\u3059\u308b\u3068\u6271\u3044\u3084\u3059\u304f\u306a\u308b\u3002 class RelativePath { public: vector<string> make(string str) { int N = str.size(); for(int i=0; i<N; i++) { if(str[i] == '/') { str[i] = ' '; } } stringstream ss(str); vector<string> ret; ret.push_back(\"ROOT\"); while(ss >> str) ret.push_back(str); return ret; } st\u2026","author_url":"https://blog.hatena.ne.jp/moistx/","height":"190","width":"100%","title":"SRM405 Div1Easy RelativePath","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140817%2F1408257266\" title=\"SRM405 Div1Easy RelativePath - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["SRM"],"provider_url":"https://hatena.blog","blog_title":"Logfiles","provider_name":"Hatena Blog"}