{"published":"2023-04-12 21:48:59","type":"rich","author_name":"inamori","image_url":null,"width":"100%","provider_url":"https://hatena.blog","categories":[],"blog_url":"https://inamori.hateblo.jp/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2023%2F04%2F12%2F214859\" title=\"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u6570\u5b66 043 - 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>","height":"190","title":"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u6570\u5b66 043","url":"https://inamori.hateblo.jp/entry/2023/04/12/214859","author_url":"https://blog.hatena.ne.jp/inamori/","version":"1.0","blog_title":"inamori\u2019s diary","description":"https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_am\u9023\u7d50\u6210\u5206\u306b\u5206\u3051\u308b\u30b3\u30fc\u30c9\u3068\u3060\u3044\u305f\u3044\u540c\u3058\u3067\u3059\u3002 \u30b0\u30e9\u30d5\u306e\u96a3\u63a5\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u306e\u306b\u3001get_mut\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u306d\u3002 // Depth First Search #![allow(non_snake_case)] use std::collections::{HashSet, HashMap}; //////////////////// library //////////////////// fn read<T: std::str::FromStr>\u2026"}