最短代码!不服来战!

P1634 禽兽的传染病

这个我没话说
by 名侦探柯北 @ 2017-08-29 15:33:04


#include<bits/stdc++.h> using namespace std; int main(){long long a,b,sum=1;cin>>a>>b;for(int i=1;i<=b;i++) sum=sum+sum\*a;cout<<sum<<endl;return 0;}
by 娄治艺 @ 2017-09-02 16:18:30


比你短!!
by 娄治艺 @ 2017-09-02 16:19:01


```cpp //当然还能更短 #include<bits/stdc++.h> main(){ int x,n; scanf("%d%d",&x,&n); printf("%.lf",pow(x+1,n)); } //而且这个输入1 1000都能过 ```
by wangdayu @ 2017-09-03 19:39:25


谁是二十七中电脑班的
by 魂逝_秦月歌 @ 2017-09-07 19:45:52


这个呢?(ac了) ```cpp var s:qword; n,x,i:longint; begin read(x,n); s:=1; for i:=1 to n do s:=s+s*x; write(s); end. ```
by King__James @ 2017-09-08 21:47:56


我现在挑战你!
by 阿尔萨斯 @ 2017-09-15 19:28:57


#include <iostream> #include <cmath> int main(){long long l,x,n;std::cin>>x>>l;n=pow(x+1,l);std::cout<<n;} 来战 110个Byte :P
by NotFatShip @ 2017-09-18 18:16:31


#include<bits/stdc++.h> using namespace std; int main() {long long l,x,n;cin>>x>>l;n=pow(x+1,l);cout<<n;}
by pessaby @ 2017-09-23 10:13:58


''' #include<bits/stdc++.h> using namespace std;int main(){long long l,x;cin>>x>>l;cout<<long(pow(x+1,l));} '''
by UKEricPZ @ 2017-10-03 15:47:02


上一页 | 下一页