(C++)其实不难的,重要的是思路……(废话!)

P1634 禽兽的传染病

一定是错的哦(我没有喷哦)@[名侦探柯北](/space/show?uid=55138)
by damage @ 2017-09-15 22:11:55


大佬其实还可以再少一点字节,,,,,,,,,,,,,,, ```cpp #include<iostream> #include<cstdio> using namespace std; int main(){ long long x,n,a=1; cin>>x>>n; for(int i=1;i<=n;i++){ a=a+a*x; } cout<<a; } ```
by 洛梨 @ 2017-09-17 19:43:29


上一页 |