文章

246

粉丝

0

获赞

1202

访问

193.5k

头像
猴子吃桃 题解:
P1049 武汉大学机试题
发布于 2026年3月
阅读数 464

#include<iostream>
using namespace std;

int n;

int main()
{
	cin>>n;
	int res=1;
	while(n>1)
	{
	    n--;
		res=(res+1)*2;
	}
	cout<<res;
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发