#726. 【基础】求2+2*2+2*2*2+…+2*2*2*….*2
【基础】求2+2*2+2*2*2+…+2*2*2*….*2
说明
求2+2*2+2*2*2+…+2*2*2*….*2的和是多少?最后一项有多少2相乘由键盘读入的n决定(1<=n<=100)!
比如:n=3,那么s=2+2*2+2*2*2=14!
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.