简答题 偏难
#22203

阅读程序(3) # include <iostream> # include <cmath> using namespace std ; int customF…

阅读程序(3)

#include <iostream>
#include <cmath>
using namespace std;
int customFunction(int a, int b) {
    if (b == 0) {
        return a;
    }
    return a + customFunction(a , b - 1);
}
int main() {
    int x, y;
    cin >> x >> y;
    int result = customFunction(x, y);
    cout << pow(result, 2) << endl;
    return 0;
}


未登录也能判分,登录后才会记录
答案与解析
正确答案:(缺答案,待补录)
这道题暂未补解析。