| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138176 | 张咏灏 | [在线测评解答教程] A+B Problem | C++ | Wrong Answer | 1 MS | 276 KB | 233 | 2025-11-23 17:04:06 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int sum = 0; while (n > 1) { if (n % 2 == 0) { n /= 2; } else { n = n * 3 + 1; } sum += 1; } cout << sum; return 0; }
------Input------
87 93
------Answer-----
180
------Your output-----
30