{"published":"2024-06-11 21:40:40","blog_title":"inamori\u2019s diary","height":"190","title":"AtCoder Beginner Contest 357 E","type":"rich","author_url":"https://blog.hatena.ne.jp/inamori/","version":"1.0","url":"https://inamori.hateblo.jp/entry/2024/06/11/214040","image_url":null,"author_name":"inamori","categories":[],"blog_url":"https://inamori.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2024%2F06%2F11%2F214040\" title=\"AtCoder Beginner Contest 357 E - 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>","provider_name":"Hatena Blog","width":"100%","provider_url":"https://hatena.blog","description":"https://atcoder.jp/contests/abc357/tasks/abc357_e\u6728\u3088\u308a\u30a8\u30c3\u30b8\u304c\u4e00\u3064\u591a\u3044\u306e\u3067\u3001\u30eb\u30fc\u30d7\u304c\u3067\u304d\u307e\u3059\u3002\u9023\u7d50\u6210\u5206\u3054\u3068\u306b\u4e00\u3064\u30eb\u30fc\u30d7\u304c\u3067\u304d\u307e\u3059\u3002\u30eb\u30fc\u30d7\u306b\u542b\u307e\u308c\u306a\u3044\u30ce\u30fc\u30c9\u306f\u30a8\u30c3\u30b8\u3092\u8fbf\u3063\u3066\u3044\u304f\u3068\u30eb\u30fc\u30d7\u306b\u884c\u304d\u7740\u304d\u307e\u3059\u3002 \u306a\u306e\u3067\u3001\u30eb\u30fc\u30d7\u4e0a\u306e\u30ce\u30fc\u30c9\u306f\u30eb\u30fc\u30d7\u306e\u30b5\u30a4\u30ba\u3060\u3051\u5230\u9054\u53ef\u80fd\u306a\u30ce\u30fc\u30c9\u306e\u500b\u6570\u304c\u3042\u308a\u3001\u305d\u308c\u4ee5\u5916\u306e\u30ce\u30fc\u30c9\u306f\u9006\u306b\u8fbf\u3063\u3066\u3044\u304f\u3054\u3068\u306b1\u3060\u3051\u5897\u3048\u3066\u3044\u304d\u307e\u3059\u3002 // Reachability in Functional Graph #![allow(non_snake_case)] use std::collections::{HashSet, HashMap}; use\u2026"}