第一题 找规律,跟leetcode上的一道题比较相似,题号记不清了.... public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int digit = 1; int i = 3; String res = ""; while(n-i > 0) { n -= i; i*=3; digit++; } while(digit>0) { int count = (int)Math.pow(3, digit-1); i...