#abc320a. A - Leyland Number
A - Leyland Number
Score : points
问题描述
给定两个正整数 和 。
输出 的值。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given positive integers and . Print the value .
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
2 8
Sample Output 1
320
For , we have , so .
Sample Input 2
9 9
Sample Output 2
774840978
Sample Input 3
5 6
Sample Output 3
23401
update @ 2024/3/10 01:38:09