{"type":"rich","blog_title":"mayoko\u2019s diary","author_name":"mayokoex","provider_name":"Hatena Blog","image_url":null,"published":"2016-04-02 14:25:25","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F04%2F02%2F142525\" title=\"CROC 2016 - Qualification B. Processing Queries - mayoko\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","description":"\u554f\u984c codeforces.com \u89e3\u6cd5 \u3057\u3083\u304f\u3068\u308a\u3063\u307d\u304f\u3084\u308a\u307e\u3059\u3002 \u533a\u9593 [lp, rp) \u306e\u533a\u9593\u3092\u898b\u3066\u3044\u308b\u6642, t[rp] \u3088\u308a\u524d\u306e\u59cb\u307e\u308b\u4ed5\u4e8b\u306f\u5168\u90e8\u7247\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\u3002\u3067, \u3053\u306e\u6642 queue \u306b\u8a70\u307e\u308c\u305f\u4ed5\u4e8b\u306e\u6570\u304c b \u672a\u6e80\u306a\u3089, rp \u3092\u4ed5\u4e8b\u3068\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4e00\u65b9, \u4ed5\u4e8b\u306e\u6570\u304c b \u4ee5\u4e0a\u306a\u3089, rp \u306e\u4ed5\u4e8b\u306f\u7121\u8996\u3057\u3066\u6b21\u306b\u9032\u307f\u307e\u3059\u3002 const int MAXN = 200200; const ll INF = 1ll<<60; ll t[MAXN], d[MAXN], ans[MAXN]; int main() { cin.tie(0); ios::sync_with_stdio(fals\u2026","title":"CROC 2016 - Qualification B. Processing Queries","height":"190","width":"100%","url":"https://mayokoex.hatenablog.com/entry/2016/04/02/142525","author_url":"https://blog.hatena.ne.jp/mayokoex/","blog_url":"https://mayokoex.hatenablog.com/","categories":["CodeForces"],"provider_url":"https://hatena.blog"}