import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n= sc.nextInt(); for (int i =1; i < n; i++) { int sum=0; for (int j = i; jn){ break; } if(sum==n){ System.out.println(i+" "+j); break; } } } System.out.println();//必须输出换行 不然运行不通过 } } }
0.0分
2 人评分