C style constants by darefilz

using System;class P{static void Main(){int b=0;for(string s;(s=Console.ReadLine())!=null;b=10)Console.WriteLine(Convert.ToInt32(s=s.Remove(0,s[0]=='0'&s.Length>1?(b=s[1]=='x'?16:8)/8:0),b));}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page