{"height":"190","author_name":"gomi-box","blog_title":"\u6bdb\u306e\u306f\u3048\u305f\u3088\u3046\u306a\u3082\u306e","provider_url":"https://hatena.blog","url":"https://gomi-box.hatenablog.com/entry/20071006/1194421943","blog_url":"https://gomi-box.hatenablog.com/","image_url":null,"width":"100%","provider_name":"Hatena Blog","published":"2007-10-06 16:52:23","author_url":"https://blog.hatena.ne.jp/gomi-box/","title":"\u91cd\u8907\u3059\u308b\u6570\u5b57\u3092\u8868\u793a\uff08Python\u306e\u5834\u5408\uff09","categories":["Univ.","Python"],"version":"1.0","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomi-box.hatenablog.com%2Fentry%2F20071006%2F1194421943\" title=\"\u91cd\u8907\u3059\u308b\u6570\u5b57\u3092\u8868\u793a\uff08Python\u306e\u5834\u5408\uff09 - \u6bdb\u306e\u306f\u3048\u305f\u3088\u3046\u306a\u3082\u306e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"#! /user/local/bin/python // \u6607\u9806\u306b\u4e26\u3079\u308b def compare_int(a,b): return b - a num=[] // \u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u5165\u529b for line in open ('../data_a.txt','r'): if line == 0: break else: num.append(int(line)) // \u30bd\u30fc\u30c8 num.sort(compare_int) // \u540c\u3058\u3082\u306e\u304c\u3042\u308c\u3070\u8868\u793a for i in range(len(num)): if num[i+1] == 0 : break elif num[i] == num[i+1]: pr\u2026"}