You are viewing a single comment's thread. Return to all comments →
c#
public static string solve(long n)
{ string answer = "Better Luck Next Time"; double moves = (double)(-1 + Math.Sqrt(1 + (8 * n)))/2; if (moves % 1 == 0) { answer = $"Go On Bob {moves}"; } return answer; }
Seems like cookies are disabled on this browser, please enable them to open this website
Stepping Stones Game
You are viewing a single comment's thread. Return to all comments →
c#
public static string solve(long n)