题库 信息学奥赛题库 题目列表 阅读程序写结果:#include <iostream> using na...
填空题

阅读程序写结果:

#include <iostream> using namespace std; int fun(int n) { if(n == 1) return 1; if(n == 2) return 2; return fun(n -2) - fun(n - 1); } int main() { int n; cin >> n; cout << fun(n) << endl; return 0; }

输入:7 输出:__

正确答案:

题目信息
选择题 2014年 初赛
-
正确率
0
评论
48
点击