예제 #1
0
        public static void Test11()
        {
            Random rnd = new Random();

            for (int i = 0; i < 50; i++)
            {
                long m = rnd.Next(200, 1000);
                long n = rnd.Next(1100, 8000);
                Console.WriteLine("listSquared with number m : " + m + " n : " + n);
                Assert.AreEqual(SumSquaredDivisorsTests.listSquaredSol(m, n), SumSquaredDivisors.listSquared(m, n));
            }
        }
예제 #2
0
 public void Test10()
 {
     Assert.AreEqual("[[6237, 45024100], [9799, 96079204], [9855, 113635600]]", SumSquaredDivisors.listSquared(5000, 10000));
 }
예제 #3
0
 public void Test09()
 {
     Assert.AreEqual("[[4264, 24304900]]", SumSquaredDivisors.listSquared(2200, 5000));
 }
예제 #4
0
 public void Test08()
 {
     Assert.AreEqual("[]", SumSquaredDivisors.listSquared(2000, 2200));
 }
예제 #5
0
 public void Test07()
 {
     Assert.AreEqual("[[1880, 4884100]]", SumSquaredDivisors.listSquared(1800, 2000));
 }
예제 #6
0
 public void Test06()
 {
     Assert.AreEqual("[[1673, 2856100]]", SumSquaredDivisors.listSquared(1500, 1800));
 }
예제 #7
0
 public void Test05()
 {
     Assert.AreEqual("[[728, 722500], [1434, 2856100]]", SumSquaredDivisors.listSquared(600, 1500));
 }
예제 #8
0
 public void Test04()
 {
     Assert.AreEqual("[]", SumSquaredDivisors.listSquared(300, 600));
 }
예제 #9
0
 public void Test03()
 {
     Assert.AreEqual("[[287, 84100]]", SumSquaredDivisors.listSquared(250, 500));
 }
예제 #10
0
 public void Test02()
 {
     Assert.AreEqual("[[42, 2500], [246, 84100]]", SumSquaredDivisors.listSquared(42, 250));
 }
예제 #11
0
 public void Test99()
 {
     Assert.AreEqual("[[1, 1], [42, 2500], [246, 84100], [287, 84100], [728, 722500], [1434, 2856100], [1673, 2856100], [1880, 4884100], [4264, 24304900], [6237, 45024100], [9799, 96079204], [9855, 113635600], [18330, 488410000], [21352, 607622500], [21385, 488410000], [24856, 825412900], [36531, 1514610724], [39990, 2313610000], [46655, 2313610000], [57270, 4747210000], [66815, 4747210000], [92664, 13011964900]]", SumSquaredDivisors.listSquared(1, 100000));
 }
예제 #12
0
 public void Test98()
 {
     Assert.AreEqual("[[1, 1], [42, 2500], [246, 84100], [287, 84100], [728, 722500], [1434, 2856100], [1673, 2856100], [1880, 4884100], [4264, 24304900], [6237, 45024100], [9799, 96079204], [9855, 113635600]]", SumSquaredDivisors.listSquared(1, 10000));
 }