{"url":"https://inamori.hateblo.jp/entry/2026/05/07/074830","width":"100%","version":"1.0","blog_title":"inamori\u2019s diary","height":"190","author_name":"inamori","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2026%2F05%2F07%2F074830\" title=\"AtCoder Beginner Contest 454 C - inamori\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>","image_url":null,"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/inamori/","type":"rich","categories":[],"published":"2026-05-07 07:48:30","blog_url":"https://inamori.hateblo.jp/","description":"https://atcoder.jp/contests/abc454/tasks/abc454_c\u6709\u5411\u30b0\u30e9\u30d5\u30921\u304b\u3089\u8fbf\u308b\u3060\u3051\u3067\u3059\u304c\u3001R\u3067\u30b0\u30e9\u30d5\u3092\u3075\u3064\u3046\u306b\u4f5c\u308b\u5168\u7136\u6642\u9593\u304c\u8db3\u308a\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u30ce\u30fc\u30c9\u306e\u96a3\u306e\u30ce\u30fc\u30c9\u306e\u914d\u5217\u3092\u30ea\u30b9\u30c8\u306b\u3057\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3068\u6642\u9593\u5185\u306b\u53ce\u307e\u308a\u307e\u3059\u3002 v <- scan(\"stdin\", integer()) N <- v[1] M <- v[2] edges <- v[3:(M*2+2)] # \u30b0\u30e9\u30d5\u3092\u4f5c\u308b # [\u96a3\u306e\u30ce\u30fc\u30c9\u3001\u6b21\u306e\u96a3\u306e\u30ce\u30fc\u30c9\u306eindex. ...] graph <- rep(-1, M*2+N*2) # \u4eca\u306e\u96a3\u306e\u30ce\u30fc\u30c9\u306e\u672b\u5c3e\u306eindex ps <- 1:N*2-1 p \u2026","title":"AtCoder Beginner Contest 454 C"}