{"published":"2013-04-07 03:12:51","width":"100%","author_name":"sucrose","provider_url":"https://hatena.blog","blog_url":"https://sucrose.hatenablog.com/","type":"rich","provider_name":"Hatena Blog","blog_title":"\u552f\u7269\u662f\u771f @Scaled_Wurm","title":"TopCoder SRM 575 Div 2 \u25cb\u25cb- 1070->1104","categories":["topcoder","\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"image_url":null,"height":"190","version":"1.0","url":"https://sucrose.hatenablog.com/entry/2013/04/07/031251","author_url":"https://blog.hatena.ne.jp/sucrose/","description":"221th, +1/-1 challenge 250 \u914d\u5217\u4e2d\u306e\u4efb\u610f\u306e2\u7b87\u6240\u3092\u5165\u308c\u66ff\u3048\u305f\u6642\u306b\u3067\u304d\u308b\u914d\u5217\u306e\u7570\u306a\u308a\u6570\u3002 \u6587\u5b57\u5217\u5316\u3057\u3066set\u306b\u5165\u308c\u3066\u6570\u3048\u305f\u3060\u3051\u3002 import java.util.HashSet; public class TheSwapsDivTwo { public int find(int[] sequence) { HashSet<String> set = new HashSet<String>(); int L = sequence.length; for(int i = 0; i < L; i++) { for(int j = i + 1; j < L; j++) { S\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsucrose.hatenablog.com%2Fentry%2F2013%2F04%2F07%2F031251\" title=\"TopCoder SRM 575 Div 2 \u25cb\u25cb- 1070-&gt;1104 - \u552f\u7269\u662f\u771f @Scaled_Wurm\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}