{"image_url":null,"blog_url":"https://blog.hamayanhamayan.com/","provider_url":"https://hatena.blog","author_name":"hamayanhamayan","type":"rich","version":"1.0","url":"https://blog.hamayanhamayan.com/entry/2020/02/09/225241","width":"100%","title":"Many Many Paths [AtCoder Beginner Contest 154 F]","provider_name":"Hatena Blog","published":"2020-02-09 22:52:41","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F02%2F09%2F225241\" title=\"Many Many Paths [AtCoder Beginner Contest 154 F] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" 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","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","description":"https://atcoder.jp/contests/abc154/tasks/abc154_f \u524d\u63d0\u77e5\u8b58 2\u6b21\u5143\u7d2f\u7a4d\u548c\u306e\u8003\u3048\u65b9 mod\u7d20\u6570\u4e0a\u3067\u306e\u4e8c\u9805\u4fc2\u6570 \u89e3\u8aac https://atcoder.jp/contests/abc154/submissions/10005470 \u554f\u308f\u308c\u3066\u3044\u308b\u306e\u306f\u3001\u3042\u308b\u77e9\u5f62\u533a\u9593\u3067\u306e\u7dcf\u548c\u3067\u3042\u308b\u304c\u3001\u5909\u6570\u304c4\u3064\u3082\u3042\u308b\u306e\u306f\u6271\u3044\u306b\u304f\u3044\u3002 2\u6b21\u5143\u7d2f\u7a4d\u548c\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u8003\u3048\u65b9\u3092\u7528\u3044\u3066\u3001\u5909\u6570\u30922\u3064\u306b\u6e1b\u3089\u305d\u3046\u3002 g(r,c) := \u5de6\u4e0b\u304c(0,0)\u3067\u3001\u53f3\u4e0a\u304c(r,c)\u3067\u3042\u308b\u77e9\u5f62\u533a\u9593\u3067\u306ef(r,c)\u306e\u7dcf\u548c \u3053\u308c\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001g(r2, c2) - g(r1 - 1, c2) \u2026"}