P1634 Infectious Disease Among Animals
Background
Inspired by mxj.
Description
Animals have contracted an infectious disease. Each animal infects $x$ animals per round. After $n$ rounds of transmission, how many animals have been infected?
Input Format
Two non-negative integers $x$ and $n$.
Output Format
A single integer, the number of infected animals.
Explanation/Hint
It is guaranteed that $x,n$ and the answer are within the range of a $64$-bit unsigned integer.
Translated by ChatGPT 5