{"blog_title":"\u5922\u8ffd\u3044\u4eba","url":"https://touyoubuntu.hatenablog.com/entry/20110906/1315286194","description":"3425 \u69cb\u9020\u4f53\u4f7f\u3063\u3066\u521d\u3081\u3066\u901a\u3057\u305f\u3002 \u3067\u304d\u308b\u554f\u984c\u306e\u306f\u3070\u304c\u5e83\u304c\u3063\u305f\u6c17\u304c\u3059\u308b\u3002 #include <cstdio> #include <map> using namespace std; struct ac { int anum, cost; }; int main() { int N; int q, a, x; map<int, ac> m; scanf(\"%d\",&N); for (int i=0; i<N; i++) { scanf(\"%d%d%d\",&q,&a,&x); if (m.find(q)==m.end()) { if (a == 0) { m[q].cost = 10; } el\u2026","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://touyoubuntu.hatenablog.com/","author_name":"touyou1121","version":"1.0","author_url":"https://blog.hatena.ne.jp/touyou1121/","width":"100%","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"type":"rich","title":"PKU70\u554f\u9054\u6210","height":"190","provider_name":"Hatena Blog","published":"2011-09-06 14:16:34","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftouyoubuntu.hatenablog.com%2Fentry%2F20110906%2F1315286194\" title=\"PKU70\u554f\u9054\u6210 - \u5922\u8ffd\u3044\u4eba\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}