<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nodchip</author_name>
  <author_url>https://blog.hatena.ne.jp/nodchip/</author_url>
  <blog_title>nodchipの日記</blog_title>
  <blog_url>https://nodchip.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>やるだけ 時間の分だけ配列を取って塗りつぶしていく方法と、数直線状で扱う方法がある この解答は後者 int main() { for (int N, M; cin &gt;&gt; N &gt;&gt; M &amp;&amp; (N || M); ) { int r; cin &gt;&gt; r; vector&lt;vector&lt;pair&lt;int, int&gt; &gt; &gt; loginout(M + 1); REP(i, r) { int t, n, m, s; cin &gt;&gt; t &gt;&gt; n &gt;&gt; m &gt;&gt; s; loginout[m].push_back(make_pair(t, 1 - s)); } vector&lt;vector&lt;pair&lt;int, i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnodchip.hatenadiary.org%2Fentry%2F20100605%2F1275724721&quot; title=&quot;PKU 3326 Analyzing Login/Logout Records - nodchipの日記&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>2010-06-05 16:58:41</published>
  <title>PKU 3326 Analyzing Login/Logout Records</title>
  <type>rich</type>
  <url>https://nodchip.hatenadiary.org/entry/20100605/1275724721</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
