Renewed Structure

This commit is contained in:
e2hang
2025-08-28 21:17:28 +08:00
parent b97f348a51
commit 1a5c4329b2
163 changed files with 312 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#include <iostream>
using namespace std;
int cf(int n){
if(n%2 == 1)
return cf(3*n + 1);
if(n%2 == 0)
return n / 2;
}
int main(){
cout << cf(5) << " "<< cf(6) << " " << cf(7) << endl;
return 0;
}