help!!!为啥只有25分?(我会关注您的)
查看原帖
help!!!为啥只有25分?(我会关注您的)
773082
0101azys楼主2023/7/22 16:11
#include<bits/stdc++.h>
using namespace std;

int ans=0;
void f(int n)
{
	ans++;
	for(int i=1;i<=n/2;i++)
		f(i);
}
int main()
{
	int n;
	cin>>n;
	f(n);
	cout<<ans;
	return 0; 
}

哪里错了?样例也通过了呀?

2023/7/22 16:11
加载中...