import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { //boolean db[] = new boolean[2147483647]; //数组太大,不能打表! //dabiao(db); Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n = sc.nextInt(); long...
3. 24->-1 ( prime factors are 2^3 * 3= 8*3 where 8 is not prime so print -1). Thanks in advance. +4votes Sorting a list of strings without using any built-in sort method How can we perform Sorting a list of strings without using any built-in sort method?