#P1634. 禽兽的传染病

禽兽的传染病

Description

Animals have contracted an infectious disease. Each animal infects xx animals per round. After nn rounds of transmission, how many animals have been infected?

Input Format

Two non-negative integers xx and nn.

Output Format

A single integer, the number of infected animals.

10 2
121

Hint

It is guaranteed that x,nx,n and the answer are within the range of a 6464-bit unsigned integer.

Translated by ChatGPT 5