编程介的小学生
2019-03-28 23:15欧拉的数字问题的算法怎么利用C语言的程序的编写设计的思想来实现代码的
Problem Description
HazelFan is given two positive integers a,b, and he wants to calculate amodb. But now he forgets the value of b and only remember the value of a, please tell him the number of different possible results.
Input
The first line contains a positive integer T(1≤T≤5), denoting the number of test cases.
For each test case:
A single line contains a positive integer a(1≤a≤109).
Output
For each test case:
A single line contains a nonnegative integer, denoting the answer.
Sample Input
2
1
3
Sample Output
2
3
- 点赞
- 回答
- 收藏
- 复制链接分享
0条回答
为你推荐
- Java程序设计 实验07
- java
- 开发语言
- eclipse
- 8个回答
- 欧拉16号项目-帮助解决该问题
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 3个回答
- 欧拉回路避桥法的扩展:遍历无向图里的所有边,当这个图不是欧拉回路时,怎样使得走过的重复边最少?
- c语言
- 人工智能
- c++
- 1个回答
- 一个关于数学方面的公式,有些遗忘,那位可以帮解答一下。
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
- Java应用程序中定义了Canvas然后怎么在里面绘图
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
换一换