Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
#include <iostream> using namespace std; int main() { int x; int f(int x); cin >> x; cout << f(x) << endl; return 0; } int f(int x) { if (x == 0) return 0; else return 2 * f(x - 1) + x * x; }
这里正常 复制到QQ里就全乱了
突然意识到x定义成unsigned int貌似好一点