current position:Home>Using C + + to complete different N / I applets

Using C + + to complete different N / I applets

2022-02-02 22:37:23 CSDN Q & A

Title Description :
Given a n, about i from 1 To n, Find out how many different n/i
Input format :
One at a time T, Express T Group data (T<100000)
after T That's ok , Each row of a n(n<=10^18)
Output format :
One number per line , Represents different numbers
sample input :
3
6
8
10
sample output :
4
4
5
Data range and tips :
about 50% The data of :n<=100000,T<=10
about 100% The data of :n<=10^18,T<100000




Refer to the answer 1:

What is the i/n, still n/i, Make the subject clear




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022237212999.html

Random recommended