{"blog_url":"https://nakachan08.hatenablog.com/","blog_title":"\u4e2d\u6751\u7684\u96d1\u8a18","title":"C - HonestOrUnkind2(Python)","provider_url":"https://hatena.blog","height":"190","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"image_url":null,"url":"https://nakachan08.hatenablog.com/entry/2019/12/22/195600","author_url":"https://blog.hatena.ne.jp/nakamura0831/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakachan08.hatenablog.com%2Fentry%2F2019%2F12%2F22%2F195600\" title=\"C - HonestOrUnkind2(Python) - \u4e2d\u6751\u7684\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_name":"Hatena Blog","width":"100%","version":"1.0","description":"\u306f\u3058\u3081\u306b atcoder.jp ABC147\u306eC\u554f\u984c\u3001bit\u5168\u63a2\u7d22\u3092\u4f7f\u3046\u3084\u3064\u3067\u3059\u3002 \u4eca\u56de\u306f\u81ea\u5206\u304c\u7af6\u30d7\u30ed\u3067\u3044\u3064\u3082\u4f7f\u3063\u3066\u3044\u308bC++\u3067\u306a\u304f\u3001 Python\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u5b9f\u88c5 N = int(input()) g = [[-1]*N for i in range(N)] #\u2460i\u756a\u76ee\u306e\u4eba\u304cj\u756a\u76ee\u306e\u4eba\u3092\u6b63\u76f4\u3082\u306e(=1)\u3068\u3044\u3063\u3066\u3044\u308b\u304b\u3001\u4e0d\u89aa\u5207(=0)\u3068\u3044\u3063\u3066\u3044\u308b\u304b\u3001\u306a\u306b\u3082\u3044\u3063\u3066\u306a\u3044(=-1)\u304b for i in range(N): A = int(input()) for j in range(A): a,x = map(int, input().split()) a -= 1 g[i][a] = x\u2026","author_name":"nakamura0831","published":"2019-12-22 19:56:00"}