Let's say a positive integer is a superpalindrome if it is a palindrome, and it is also the square of a palindrome. Now, given two positive integers L and R(represented as strings), return the number of superpalindromes in the inclusive range [L, R].…
Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array. Example1: a = 2 b = [3] Result: 8 Example2: a = 2 b = [1,0] Result: 1024 Credits:Special thanks to @Stomac…
一种很酷的螺线,看着有种分形学的感觉.参考自http://www.2dcurves.com/spiral/spirallos.html 其数学的极坐标表达式如下: 我的脚本代码如下: #http://www.2dcurves.com/spiral/spirallos.html vertices = t = ) to (*PI) a = rand2(, ) b = rand2(, ) c = rand2(-, ) d = rand2() f = rand2() m = abs(cos(d*t))^…