| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82602 | sh25_wanghy | 吃糖果 | C++ | 通过 | 0 MS | 244 KB | 187 | 2026-01-16 14:50:57 |
#include<iostream> using namespace std; int f(int n){ if(n<=2) return n; else return f(n-1)+f(n-2); } int main(){ int n; cin>>n; cout<<f(n); return 0; }