{"categories":[".NET","C#","\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2023%2F10%2F11%2Fb04\" title=\"B04 - Binary Representation 2 - present\" 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":"griefworker","provider_url":"https://hatena.blog","blog_url":"https://tnakamura.hatenablog.com/","height":"190","description":"atcoder.jp 2\u9032\u6570\u309210\u9032\u6570\u306b\u5909\u63db\u3002 var N = Console.ReadLine()!; var answer = 0; for (var i = 0; i < N.Length; i++) { var m = Math.Pow(2, N.Length - 1 - i); if (N[i] == '1') { answer += (int)m; } } Console.WriteLine(answer);","width":"100%","title":"B04 - Binary Representation 2","published":"2023-10-11 19:46:28","author_url":"https://blog.hatena.ne.jp/griefworker/","type":"rich","image_url":null,"version":"1.0","blog_title":"present","url":"https://tnakamura.hatenablog.com/entry/2023/10/11/b04"}