{"author_name":"melty_chocolate","title":"JOI 2018 \u6625\u5408\u5bbf Worst Reporter 3(\u6700\u60aa\u306e\u8a18\u8005 3) \u96e3\u6613\u5ea68","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmelty-chocolate.hateblo.jp%2Fentry%2F2025%2F01%2F09%2F200324\" title=\"JOI 2018 \u6625\u5408\u5bbf Worst Reporter 3(\u6700\u60aa\u306e\u8a18\u8005 3) \u96e3\u6613\u5ea68 - \u7cbe\u9032\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"\u982d\u3053\u3093\u304c\u3089\u304c\u308b \u8003\u3048\u306b\u304f\u3044\u306e\u3067\u3001\u6700\u521d\u8ddd\u96e21\u305a\u3064\u3042\u3051\u3066\u306a\u304f\u3066\u5168\u54e1\u5730\u70b90\u306b\u3044\u308b\u3068\u8003\u3048\u308b\u3068\u3001\u3061\u3087\u3063\u3068\u8003\u3048\u3084\u3059\u304f\u306a\u308b signed main(){ int N,Q;cin >> N >> Q; vector<int>D(N+1); rep(i,N){ cin >> D[i]; D[i]-=1; } vector<int>S(N);//\u5468\u671f rep(i,N){ if(i==0)S[i] = D[i]+1; else S[i] = ((D[i]+S[i-1])/S[i-1])*S[i-1]; } auto g = [&](int t,int i)->int { if(i==-1)return INF; i\u2026","type":"rich","blog_title":"\u7cbe\u9032\u9332","version":"1.0","width":"100%","author_url":"https://blog.hatena.ne.jp/melty_chocolate/","image_url":null,"published":"2025-01-09 20:03:24","provider_name":"Hatena Blog","categories":["\u5fa9\u7fd2"],"provider_url":"https://hatena.blog","url":"https://melty-chocolate.hateblo.jp/entry/2025/01/09/200324","blog_url":"https://melty-chocolate.hateblo.jp/"}