示例#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));
 }