FL.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fl;
import java.util.HashSet;
import java.util.Scanner;
/**
*
* @author drevenak3
*/
public class FL {
/**
* @param args the command line arguments
*/
public static void main
(String[] args
) { // TODO code application logic here
Scanner vst
=new Scanner
(System.
in); int N,Y;
while(vst.hasNext()){
HashSet<Long> pairs=new HashSet<Long>();
N
=Integer.
parseInt(ratio.
substring(2, ratio.
length())); if(N==1){
continue;
}
int count=0;
long max=((N+1)*N);
for(long y,x=N+1;x<max;++x){
if((N*x)%(x-N)==0){
y=(N*x)/(x-N);
if(!pairs.contains(x)){
pairs.add(x);
pairs.add(y);
++count;
}
}
}
}
vst.close();
}
}