mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
22 lines
302 B
C
22 lines
302 B
C
|
#include<stdio.h>
|
||
|
|
||
|
long res ;
|
||
|
|
||
|
void dfs(int cur){
|
||
|
if(cur == 1 || cur == 0){
|
||
|
res++ ;
|
||
|
return ;
|
||
|
}
|
||
|
dfs(--cur) ;
|
||
|
dfs(--cur) ;
|
||
|
}
|
||
|
|
||
|
int main(int argc, char** argv){
|
||
|
long num ;
|
||
|
scanf("%li", &num) ;
|
||
|
dfs(num) ;
|
||
|
printf("%li", res) ;
|
||
|
// while(1);
|
||
|
return 0;
|
||
|
}
|