关于Swift Playgrounds 编程问题?

谁会?

https://img.mukewang.com/5b549a4e00016db007200441.jpg

繁星点点滴滴
浏览 1062回答 1
1回答

慕田峪7331174

include&nbsp;<iostream> #include&nbsp;<stdio.h> int&nbsp;jc(int&nbsp;m){ if(m!=1)&nbsp;return&nbsp;m*jc(m-1); else&nbsp;return&nbsp;1; }&nbsp; int&nbsp;c(int&nbsp;m,int&nbsp;n){ if(m>=n)&nbsp;&nbsp;return&nbsp;jc(m)/(jc(n)*jc(m-n)); }&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;main(void){ int&nbsp;m,n; scanf("%d%d",&m,&n); printf("%d\n",c(m,n)); return&nbsp;0; }
打开App,查看更多内容
随时随地看视频慕课网APP