25求调qwqTLE
查看原帖
25求调qwqTLE
700716
Little_Brown_Rabbit楼主2024/10/25 19:12
#include<bits/stdc++.h>
using namespace std;
int ans=1;
void funkccf(int front)
{
	if(front!=1)
	{
		for(int i=floor(front/=2);i>=1;i--)
		{
			ans++;
			funkccf(i);
		}
	}
}
int main()
{
	int n;
	cin>>n;
	funkccf(n);
	cout<<ans;
}

TLE25分

2024/10/25 19:12
加载中...