You are viewing a single comment's thread. Return to all comments →
Same thing, written in a shorter way:
static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(Convert.ToString(n,2).Split('0').Max(s=>s.Length)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
Same thing, written in a shorter way: