{"image_url":null,"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","categories":[],"published":"2016-04-05 21:41:09","description":"\u554f\u984c\u306f\u3053\u3061\u3089 No.22 \u62ec\u5f27\u306e\u5bfe\u5fdc - yukicoderk\u756a\u76ee\u306e\u6587\u5b57\u304c\u300c(\u300d\u306a\u3089\u53f3\u3078\u3001\u300c)\u300d\u306a\u3089\u5de6\u3078\u63a2\u3059\u3053\u3068\u306b\u306a\u308b \u6700\u521d\u306e\u6587\u5b57\u3082\u542b\u3081\u3066\u3001\u300c)\u300d\u306b\u906d\u9047\u3057\u305f\u3089+1\u3001\u300c(\u300d\u306b\u906d\u9047\u3057\u305f\u3089-1\u3068\u3057\u3066\u3001\u521d\u3081\u30660\u306b\u306a\u3063\u305f\u7b87\u6240\u304c\u6c42\u3081\u308b\u4f4d\u7f6e int main(){ int n,i,t=0; char s[10010]; scanf(\"%*d%d\",&i); scanf(\"%s\",s+1); n=s[i]; //\u6700\u521d\u306e\u6587\u5b57\u3092\u4fdd\u5b58 t=n*2-81; //')'\u306f41,'('\u306f40\u306a\u306e\u30672\u500d\u3057\u306681\u3092\u5f15\u304f\u3053\u3068\u3067\u00b11\u3092\u4f5c\u308c\u308b while(t)t+=s[n=='('?++i:--i]*2-81; //0\u306b\u306a\u308b\u307e\u3067\u52d5\u2026","title":"yukicoder No.22 \u62ec\u5f27\u306e\u5bfe\u5fdc","author_name":"sugarknri","url":"https://sugarknri.hatenablog.com/entry/2016/04/05/214109","blog_title":"\u30e1\u30e2","type":"rich","width":"100%","blog_url":"https://sugarknri.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/sugarknri/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugarknri.hatenablog.com%2Fentry%2F2016%2F04%2F05%2F214109\" title=\"yukicoder No.22 \u62ec\u5f27\u306e\u5bfe\u5fdc - \u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190"}