Regex to match for zeros - Stack Overflow I am looking for a regex pattern that would match several different combinations of zeros such as 00-00-0000 or 0 or 0 0 or 00000 Please help Thanks!
Mathematical representation of large numbers? - Stack Overflow Here is my attempt in Python: def give_me_math(n): if n % 2 == 1: n = n - 1 # we need to make every odd number even, and add back one later odd = 1 else: odd = 0 exps = [] while n > 0: c = 0 num = 0 while num <= n 2: c += 1 num = 2**c exps append(c) n = n - num return (exps, odd)
Calculating 3^3^3^3 (very large exponent how did Wolfram do it?) Wolfram Alpha is giving you an approximate answer, which is much easier than calculating an exact answer Most likely it's using the transform log(a^b) = b * log(a) to calculate log(3^3^3^3) = (3^3^3) log(3) = 7625597484987 * log(3), which works out to about 3638334640024 09968557 if you take logs base 10
Задача: Полярные единички с большими числами Вроде бы задачка сверх простая, но в условии число в диапазоне от 1 до 10^6 #include lt;iostream gt; using namespace std; int main() { setlocale(LC_ALL, quot;Russian quot;); unsigned l