{"author_name":"moistx","blog_title":"Logfiles","categories":["UVa"],"version":"1.0","provider_url":"https://hatena.blog","published":"2014-09-11 05:35:10","provider_name":"Hatena Blog","url":"https://logfiles.hatenablog.com/entry/20140911/1410467710","author_url":"https://blog.hatena.ne.jp/moistx/","image_url":null,"description":"\u89e3\u6cd5 \u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\u306e\u4ea4\u63db\u56de\u6570\uff08\u53cd\u8ee2\u6570\uff09\u3092\u6c42\u3081\u308b\u3002 \u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\u3057\u3066\u6c42\u3081\u308b\u304b\u3001\u3042\u308b\u3044\u306fBIT\u3059\u308b\u304b\u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u3059\u308b\u304b\u3059\u308c\u3070\u3088\u3044\u3002 \u4ee5\u4e0b\u306f BIT \u306e\u30b3\u30fc\u30c9\u3002 #include <bits/stdc++.h> using namespace std; #define REP(i,a,b) for(int i=a;i<b;i++) #define rep(i,n) REP(i,0,n) typedef long long ll; class BIT { private: vector<int> bit; int size; public: BIT(int n) : size(n) { bit.res\u2026","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140911%2F1410467710\" title=\"UVa299 Train Swapping - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://logfiles.hatenablog.com/","width":"100%","title":"UVa299 Train Swapping","type":"rich"}