点击这里更换您喜欢的皮肤wtboj 首页
请点击这里登入noios   首页 入门 c++讲义 入门教程视频 其他页面 入门视频 站务 公告 | 题库 记录 竞测 测试 闯关 作业 排名 团队 讨论 | 换肤 | 登入 注册  
News >>   新增功能:各团队管理员可以发布本团队作业了 ()

讨论 Discussion
 
邪恶周玉虓
#include<iostream>
using namespace std;
int n;
int f(int k,int x,int y,int z){
if(k==n)return z;
if(x==y)f(k+1,x+1,1,z+1);
else
f(k+1,x,y+1,z);
}
int main(){
cin>>n;
cout<<f(1,1,1,1);
    return 0;

}
( 2026/9/17 18:01:31 )

666
āáǎàēéěèūúǔùōīǖóíǘ
( )
666
āáǎàēéěèūúǔùōīǖóíǘ
( )
发布讨论主题 回复讨论主题
 Copyright wtboj © 2005-2006. www.wutuobang.date Powered by wtboj 关于 联系 帮助
 wtboj Information ---- Total Users : 1437 | Online Users / Processes : 0 / 107 | Processed Time : 31 ms | Server Time : 2026/10/26 4:54:05