{"published":"2025-01-04 12:55:23","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakeg.hatenadiary.jp%2Fentry%2F2025%2F01%2F04%2F125523\" title=\"ABC292 E - Transitivity \u306eTLE\u89e3 - \u30d9\u30b9\u30d1\u30ea\u30d6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","url":"https://takeg.hatenadiary.jp/entry/2025/01/04/125523","version":"1.0","provider_name":"Hatena Blog","type":"rich","description":"\u6982\u8981 ABC292 E - Transitivity \u306e\u89e3\u6cd5\u3067\u3001\u8fba\u3092\u7ba1\u7406\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3092set\u306b\u3059\u308b\u3068TLE\u3057\u305f\u3002 set\u3092for\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068TLE\u3059\u308b\u3053\u3068\u306f\u3042\u3063\u305f\u304c\u3001count() \u3084 insert() \u306e \u5bfe\u6570\u6642\u9593\u3067TLE\u3057\u305f\u306e\u306f\u521d\u3081\u3066\u3002 \u89e3\u6cd5\u3068\u30b3\u30fc\u30c9 \u300c\u65e2\u5b58\u306e\u8fba(u,v)\u3092\u3059\u3079\u3066deque\u306b\u7a81\u3063\u8fbc\u3080\u3002deque\u304b\u3089\u8fba(u,v)\u3092\u53d6\u308a\u51fa\u3057\u3001\u8fba(v,w)\u306e\u3046\u3061\u307e\u3060(u,w)\u306b\u8fba\u304c\u7121\u3044\u306a\u3089\u3001deque\u306b(u,w)\u3092\u8ffd\u52a0\u3057\u3066\u7b54\u3048\u3092+1\u3059\u308b\u3002deque\u304c\u7a7a\u306b\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3059\u300d\u3068\u3044\u3046\u89e3\u304d\u65b9\u3092\u3057\u305f\u3002 \u8fba\u3092\u7ba1\u7406\u3059\u308b\u30c7\u30fc\u30bf\u3092g[i][j] := i\u304b\u3089j\u3078\u8fba\u304c\u3042\u308b\u3068\u3059\u308b\u3002 \u3053\u3053\u3067\u8fba\u3092\u7ba1\u7406\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u2026","blog_title":"\u30d9\u30b9\u30d1\u30ea\u30d6","height":"190","provider_url":"https://hatena.blog","author_name":"takeg","blog_url":"https://takeg.hatenadiary.jp/","image_url":null,"categories":[],"title":"ABC292 E - Transitivity \u306eTLE\u89e3","author_url":"https://blog.hatena.ne.jp/takeg/"}