include iostream include math using namespace std int main long long 1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <iostream>
#include <math.h>
using namespace std;
int main() {
long long n=1000000000;
long long count=0;
for(int i=n/2;i>=0;i--){
count++;
if(n%i==0) break;
}
cout << count << endl;
return 0;
}