Add tags

Add tags to the following comment
んー。やっぱり C# なら文字列として持ってたほうが良いかな。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
using System;
static class Program {
    static void Main() {
        Console.WriteLine(Bin("01001001"));   // 73
        Console.WriteLine(Bin("01101001"));   // 105
    }
    static int Bin(string num) {
        return Convert.ToInt32(num, 2);
    }
}

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...