|
|
@ -1,22 +1,11 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using static System.Console; |
|
|
|
|
|
|
|
namespace Euler { |
|
|
|
|
|
|
|
class Program { |
|
|
|
|
|
|
|
static void Debug(long l) { |
|
|
|
Console.WriteLine(l); |
|
|
|
} |
|
|
|
|
|
|
|
static void Debug(string s) { |
|
|
|
Console.WriteLine(s); |
|
|
|
} |
|
|
|
|
|
|
|
static void Debug(bool b) { |
|
|
|
Console.WriteLine(b); |
|
|
|
} |
|
|
|
|
|
|
|
static long Problem1() { |
|
|
|
long sum = 0; |
|
|
|
for (long i = 1; i < 1000; i++) { |
|
|
@ -102,7 +91,6 @@ namespace Euler { |
|
|
|
} |
|
|
|
if (IsPalindromicNumber(target)) { |
|
|
|
largest = target; |
|
|
|
Debug(largest); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -110,7 +98,7 @@ namespace Euler { |
|
|
|
} |
|
|
|
|
|
|
|
static void Main(string[] args) { |
|
|
|
Debug(Problem4()); |
|
|
|
WriteLine(Problem4()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |