{"published":"2007-10-05 11:10:13","url":"https://gomi-box.hatenablog.com/entry/20071005/1194055813","blog_title":"\u6bdb\u306e\u306f\u3048\u305f\u3088\u3046\u306a\u3082\u306e","type":"rich","width":"100%","author_name":"gomi-box","height":"190","description":"#! /user/local/bin/python def compare_int(a,b): return b - a flag=0 number=[0] for line in open ('../data_d.txt','r'): if flag==0: line.split(\" \") n = int(line[0]) k= int(line[2]) flag = 1 else: if int(line)!=0: number.append(int(line)) number.sort(compare_int) print number[k-1]","categories":["Univ.","Python"],"title":"k\u756a\u76ee\u306b\u5927\u304d\u3044\u6570\uff08Python\u306e\u5834\u5408\uff09","provider_name":"Hatena Blog","image_url":null,"provider_url":"https://hatena.blog","blog_url":"https://gomi-box.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomi-box.hatenablog.com%2Fentry%2F20071005%2F1194055813\" title=\"k\u756a\u76ee\u306b\u5927\u304d\u3044\u6570\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>","version":"1.0","author_url":"https://blog.hatena.ne.jp/gomi-box/"}