{"published":"2017-01-17 01:29:14","blog_title":"0w1","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh0rnet.hatenablog.com%2Fentry%2F2017%2F01%2F17%2FCFR_264_C__Choosing_Balls_%2528_DP_%2529\" title=\"CFR 264 C. Choosing Balls ( DP ) - 0w1\" 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://h0rnet.hatenablog.com/entry/2017/01/17/CFR_264_C__Choosing_Balls_%28_DP_%29","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/h0rnet/","categories":["Codeforces","DP"],"height":"190","width":"100%","type":"rich","description":"Problem - C - Codeforces\u984c\u610f\uff1a \u6709 N \u500b\u7403\u6392\u4e00\u6392\uff0c\u7528\u50f9\u503c V[ i ] \u548c\u984f\u8272 C[ i ] \u63cf\u8ff0\u3002\u63a5\u8457 Q \u7b46\u8a62\u554f\uff0c\u7d66\u4f60 A, B\uff0c\u8981\u6c42\u4e00\u500b\u5e8f\u5217\u7684\u6700\u5927\u6b61\u6a02\u503c\u3002\u5e8f\u5217\u5fc5\u9808\u662f\u5347\u5e8f\u7684\u4e0b\u6a19\uff0c\u6b61\u6a02\u503c\u5f97\u8a08\u7b97\u65b9\u6cd5\u70ba\uff1a\u82e5\u5e8f\u5217\u4e2d\u67d0\u500b\u4e0b\u6a19 i \u4e0d\u70ba\u5e8f\u5217\u6700\u5c0f\u503c\uff0c\u4e14\u524d\u9762\u4e00\u500b\u4e0b\u6a19 i - 1 \u7684\u984f\u8272 C[ i - 1 ] \u548c C[ i ] \u76f8\u540c\uff0c\u90a3\u9ebc\u8a72\u5143\u7d20\u7684\u8ca2\u737b\u70ba V[ i ] * B ; \u5426\u5247\u8a72\u5143\u7d20\u7684\u8ca2\u737b\u70ba V[ i ] * A\u3002\u8cc7\u6599\u898f\u6a21\uff1a The first line contains two integers n and q (1 \u2264 n \u2264 1e5; 1 \u2264 q \u2264 500). The\u2026","image_url":null,"provider_url":"https://hatena.blog","author_name":"h0rnet","blog_url":"https://h0rnet.hatenablog.com/","title":"CFR 264 C. Choosing Balls ( DP )"}