版本比较
题解:B4350 [信息与未来 2025] 美味水果
正文
增加 4 行删除 4 行
31 行未改动3233343536363738394026 行未改动676869707171727374752 行未改动78798081828382838485868714 行未改动31 行未改动```
接着定义一个递归函数:
```int xxx(int xx,int yy){ int num=xx; int o=yy;26 行未改动
```#include<bits/stdc++.h> //万能头using namespace std;bool cmp(int x,int y){ bool cmp(int x,int y){ return x>y;//从大到小排}int xxx(int xx,int yy){ int num=xx;2 行未改动 o--; if(num==1) return num;//特判 if(o==1) return num; //判断次数是否到了 else xxx(num,o);
}int main(){ int n; cin>>n;14 行未改动