此代码为何RE???
查看原帖
此代码为何RE???
1304502
China_U_19641016楼主2025/2/6 17:43
#include<bits/stdc++.h>
using namespace std;
int f(int x){
	if(x<0) return -x;
	return f(x-f(x-1))/2;
}
int main(){
	cout<<f(3);
	return 0;
} 

B站某“人畜无害”的递归。

2025/2/6 17:43
加载中...