我吃好了啊,和题解都没区别了,还0分

P1634 禽兽的传染病

```cpp #include<cstdio> #include<iostream> using namespace std; int main(){ long long x,n,tot=1; cin>>x>>n; for(int i=0;i<=n;i++){ tot=tot+tot*x; } cout<<tot; return 0; } ``` `i=0;i<=n` 乐,你执行了 $n+1$ 次,要求 $n$ 次。
by ToastBread @ 2024-07-28 19:49:06


@[ToastBread](/user/545809) (●╹◡╹●)
by c_h_a_r_a @ 2024-07-28 20:11:01


|