{"published":"2018-03-10 23:02:29","image_url":null,"width":"100%","blog_title":"Arantium Maestum","categories":["Python","\u87fb\u672c"],"description":"\u87fb\u672c\u304b\u3089\u3002 n\u500b\u306e\u4f5c\u696d\u304c\u3042\u308b\u3002 \u5404\u4f5c\u696d\u306f\u958b\u59cb\u6642\u3068\u7d42\u4e86\u6642\u304c\u6c7a\u307e\u3063\u3066\u304a\u308a\u3001\u540c\u6642\u306b\u4e8c\u3064\u306e\u4f5c\u696d\u3092\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002 \u4f5c\u696d\u3092\u3069\u3046\u9078\u3079\u3070\u3001\u5b8c\u4e86\u3057\u305f\u4f5c\u696d\u6570\u3092\u6700\u5927\u5316\u3067\u304d\u308b\u304b\u3002 \u304b\u306a\u308a\u6709\u540d\u306a\u8caa\u6b32\u6cd5\u306e\u554f\u984c\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u958b\u59cb\u6642\u3084\u9577\u3055\u3067\u306f\u306a\u304f\u3001\u7d42\u4e86\u6642\u3092\u57fa\u6e96\u306b\u9078\u3093\u3067\u3044\u304f\u3053\u3068\u3002 def solve(tasks): tasks = sorted(tasks, key=lambda x:x[1]) res = [] cur_time = -1 for task in tasks: if task[0] > cur_time: res.append(task) cur_time = task[1] return res \u3042\u308b\u2026","height":"190","type":"rich","provider_name":"Hatena Blog","url":"https://zehnpaard.hatenablog.com/entry/2018/03/10/230229","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2018%2F03%2F10%2F230229\" title=\"\u533a\u9593\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u554f\u984c - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"zehnpaard","blog_url":"https://zehnpaard.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/zehnpaard/","title":"\u533a\u9593\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u554f\u984c","provider_url":"https://hatena.blog"}