什么是爱 public class Main { static long ksm(long a, long b, long mod) { long res = 1; while (b > 0) { if ((b & 1) == 1) {