#include <iostream> using namespace std; int main() { int n,num; while (1) { cin >> n; num = 0; if (n == 0) { break; } while (n > 2) { num += n / 3; n= (n / 3) + (n % 3); } if (n == 2) { num += 1; n = 0; } cout << num << endl; } } 请问为什么用break跳出循环会超时?如果改成循环条件是cin>&g...