import java.util.*;
import java.math.*;

public class Solution {
    public static void main(String args[]){
        Scanner in=new Scanner(System.in);
        int a=in.nextInt();
        int b=in.nextInt();
        BigInteger x=BigInteger.valueOf(a);
        BigInteger y=BigInteger.valueOf(b);
        x=x.pow(b);
        y=y.pow(a);
        System.out.println(x.subtract(y));
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-01-06
  • 2021-11-24
  • 2021-07-11
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-03
  • 2021-06-25
  • 2022-01-25
  • 2021-11-12
  • 2021-06-11
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案