{"blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110830%2F1314718640\" title=\"JOI2011\u672c\u90785\u756a - a_kawashiro\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://a-kawashiro.hatenablog.com/entry/20110830/1314718640","author_name":"a_kawashiro","published":"2011-08-30 00:37:20","image_url":null,"height":"190","title":"JOI2011\u672c\u90785\u756a","provider_url":"https://hatena.blog","width":"100%","provider_name":"Hatena Blog","version":"1.0","type":"rich","description":"k\u306b\u3064\u3044\u3066\u4e8c\u5206\u63a2\u7d22\u3057\u305f\u5f8c\u3001\u305d\u306e\u5224\u5b9a\u3092\u9811\u5f35\u3063\u3066O(n)\u3067\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b\u3002 #include <stdio.h> #include <utility> #include <set> #include <algorithm> #include <vector> #define MAX_V 1000100 using namespace std; int n; int ai[MAX_V],can[MAX_V],bi2ai[MAX_V]; pair<int,int> bi[MAX_V]; int ok(int k) { if(k==0) return 1; double sumA=0; for(int\u2026","blog_url":"https://a-kawashiro.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","categories":[]}