竞赛
考级
科技起源
bianhl
请输入文本.
zsy
无敌的鳖佬仔给老爷爷猜猜被
#include <bits/stdc++.h> using namespace std; int f(int x){ if (x == 1){ cout << "1"; return 0; } printf("%d->", x); if (x % 2 == 0){ return f(x / 2); } else { return f(3 * x + 1); } } int main(){ int n; cin >> n; f(n); }
天之神_蜜蜜吖_深媛艺
提交答案之后,这里将显示提交结果~