CATALAN number of learning

#include <the iostream> 
#include <cstdio>
 the using  namespace STD;
 Long  Long F [ 35 ]; 
// a function of the input digital Rd () 
inline
void Rd ( int & RES) { char C; RES = 0 ; the while (C = getchar (), C < 48 ); do RES = RES * 10 + (C & 15 ); the while (C = getchar (), C> 47 ); } int main () { COUT << " Cattleya number to F [ n-]: " ; int n; Rd(n);//读取n f[0]=1; printf("0 1 "); for(int i=1;i<=n;i++) { f[i]=(4*i-2)*f[i-1]/(i+1); printf("%I64d ",f[i]); } puts(""); return 0; }

 

To be filled pit

Guess you like

Origin www.cnblogs.com/kiik/p/10986127.html