[Algorithm] Calculate the square of 1 number of n numbers 1
Threads: For the S = 111…11 (n digits 1, decimal system), S ^ 2 properties. Input – First line: number of tests k (to<=40). – k next line, Each line contains the number n – number of digits 1 window. (1 <= n <= 1000000) Output – For each test burn results 1 current. Example Input: 2 1 2 Output: 1 121 Solution: KQ has the form we see for […]
Recent Comments