<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>SRM</anon>
  </categories>
  <description>解法 先にstringの階層構造をvector化すると扱いやすくなる。 class RelativePath { public: vector&lt;string&gt; make(string str) { int N = str.size(); for(int i=0; i&lt;N; i++) { if(str[i] == '/') { str[i] = ' '; } } stringstream ss(str); vector&lt;string&gt; ret; ret.push_back(&quot;ROOT&quot;); while(ss &gt;&gt; str) ret.push_back(str); return ret; } st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140817%2F1408257266&quot; title=&quot;SRM405 Div1Easy RelativePath - Logfiles&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-08-17 15:34:26</published>
  <title>SRM405 Div1Easy RelativePath</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140817/1408257266</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
