这道题是回溯算法,网上一查是卡特兰数先占上代码,题解过两天会写. #include <bits/stdc++.h> using namespace std; int main() { //freopen("de.txt","r",stdin); int n; while (~scanf("%d",&n)) { ; ;i<=n;++i) ans=*(*i-)*ans/(i+); cout<<ans<<…
Robot Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description There is a robot on the origin point of an axis.Every second, the robot can move right one unit length or do nothing.If the robot is on the…