We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #5: Smallest multiple
Project Euler #5: Smallest multiple
Contest ends in
Sort by
recency
|
254 Discussions
|
Please Login in order to post a comment
Swift efficient solution for N < 47:
Python 3:
In C#:
using System;
class Solution { static void Main(String[] args) { int T = Convert.ToInt32(Console.ReadLine()); for (int a0 = 0; a0 < T; a0++) { int N = Convert.ToInt32(Console.ReadLine()); long smallestMultiple = SmallestMultiple(N); Console.WriteLine(smallestMultiple); } }
}