Pro.ID22140 TitleFactorial Factors Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22140 AC9 Submit45 Ratio20.00% 时间&空间限制描述Given a positive integer N, we could effectively figure out all the factors of N, as N1, N2, ..., Nk are aggregate k factors of N ( including 1 and N itself ). This problem is somewhat complicated. According to these k factors, we respectively calculate up the number of factors of these factors. For example, N1 may have n1 factors (including 1 and N1), N2 may have n2 factors, ..., and Nk may have nk factors. Now comes the problem, I want to find out the answer of S = n13 + n23 + ... + nk3. 输入The first line of input there is one integer T ( T ≤ 10000 ), giving the number of test cases in the input. For each test case, there is only a positive integer N ( N < 231 ). 输出Description Given a positive integer N, we could effectively figure out all the factors of N, as N1, N2, ..., Nk are aggregate k factors of N ( including 1 and N itself ). This problem is somewhat complicated. According to these k factors, we respectively calculate up the number of factors of these factors. For example, N1 may have n1 factors (including 1 and N1), N2 may have n2 factors, ..., and Nk may have nk factors. Now comes the problem, I want to find out the answer of S = n13 + n23 + ... + nk3. Input The first line of input there is one integer T ( T ≤ 10000 ), giving the number of test cases in the input. For each test case, there is only a positive integer N ( N < 231 ). Output For each test case, output one line with the answer S. Sample Input 2 Sample Output 81 Source 样例输入2 样例输出81 作者 |