Responsive image

问题 I: 解方程

问题 I: 解方程

时间限制: 1 Sec  内存限制: 128 MB
提交: 17  解决: 3
[提交][状态][讨论版][命题人:]

题目描述

Give a Integer n,your task is to find all (x,y) to make 1/x + 1/y = 1/n (x<=y)。

输入描述

First line a integer T ,then there are T lines,each line will give a Integer N(1<=N<1e9)Please calculate how many (x,y) can satisfy the function。

输出描述

For each N,ouput the answer in one line。

样例输入

3
1
10
53497589

样例输出

1
5
14
[提交][状态]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版