简单,就是变量范围要大一点

P1634 禽兽的传染病

在题解里发不行吗?
by x_faraway_x @ 2016-09-23 20:52:52


```cpp #include <iostream> using namespace std; long long x,n,ans=1; int main() { cin >> x >> n; while(n--) ans*=(x+1); cout << ans << endl; } ```
by ghj1222 @ 2016-09-24 11:46:04


|