当前位置:网站首页>Blue Bridge Cup_ A fool sends a letter_ recursion
Blue Bridge Cup_ A fool sends a letter_ recursion
2022-06-10 22:45:00 【This question AC sleep again】

//
#include<bits/stdc++.h>
using namespace std;
#define int long long
int f( int n )
{
if( n==1 || n==0 ) return 0;
if( n==2 ) return 1;
return ( n-1 )*( f( n-1 )+f( n-2 ) );
}
signed main()
{
int n;
while( cin>>n )
{
cout<<f( n )<<endl;
}
return 0;
}
// 20 895014631192902121边栏推荐
- [tcapulusdb knowledge base] tcapulusdb tcapdb capacity expansion and contraction introduction
- [problem] solve the problem of websocket string length limitation. The single packet is too large
- MySQL主从复制解决读写分离
- Digital twin: third person mouse operation
- Matlab - Implementation of evolutionary game theory
- dc_ Study and summary of labs--lab1
- 存储引擎分析
- Qt自定义委托
- Sealem finance builds Web3 decentralized financial platform infrastructure
- 【问题】解决Websocket字符串长度限制问题单包过大
猜你喜欢

Redis从入门到入土

Web3 ecological decentralized financial platform sealem Finance
![C language internal skill cultivation [integer stored in memory]](/img/ef/7fec8e89f432603c503dddb42bd57f.png)
C language internal skill cultivation [integer stored in memory]
![[tcapulusdb knowledge base] tcapulusdb tcapdb capacity expansion and contraction introduction](/img/5c/b24a94cb2d46fe571c172d232503d5.png)
[tcapulusdb knowledge base] tcapulusdb tcapdb capacity expansion and contraction introduction

Digital twin: third person mouse operation
![Ability to deliver packages within D days [abstract class dichotomy -- Abstract judgment method]](/img/16/026c017e1c54d580fa2d237aa4605c.png)
Ability to deliver packages within D days [abstract class dichotomy -- Abstract judgment method]

【TcaplusDB知识库】TcaplusDB TcapProxy扩缩容介绍

Mmcv Config class introduction

Sealem Finance打造Web3去中心化金融平台基础设施
![[tcapulusdb knowledge base] Introduction to tcapulusdb process startup](/img/df/08a5e9b939ab158a86c75c92697864.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb process startup
随机推荐
Redis from entry to entry
[applet] vant sliding cell adds the function of clicking other positions to close automatically
重排 (reflow) 与重绘 (repaint)
记录(二)
Pytorch 安装超简单
Tcapulusdb Jun · industry news collection (VI)
【TcaplusDB知识库】TcaplusDB shard搬迁介绍
README
Mmdetection dataloader construction
CCF CSP 202109-4 collect cards
Latex error: file ‘xxx.sty‘ not found
Shell basic concepts
What about the popular state management library mobx?
【TcaplusDB知识库】TcaplusDB查看进程所在机器介绍
CCF CSP 202109-1 array derivation
中小型会议如何进行数字化升级?
[tcapulusdb knowledge base] tcapulusdb daily inspection introduction
Add, delete, query and modify [MySQL] table data (DML)
Informatics Olympiad all in one 1280: [example 9.24] skiing | openjudge noi 2.690: skiing | Luogu p1434 [show2002] skiing
LuoYongHao: if I were the person in charge, I could make apple products go up more than three steps