摘要: a,b,c三道题有A,B,C三个答案。错排就是这三道题有多少种错误答案。公式:a[i]=(i-1)*(a[i-1]+a[i-2]);a[1]=0;a[2]=1; 阅读全文
posted @ 2015-04-10 00:03 Bug_Clearlove 阅读(137) 评论(0) 推荐(0)
摘要: I -Conspiracy Theory and RebrandingTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 2032DescriptionToday is ... 阅读全文
posted @ 2015-04-09 23:45 Bug_Clearlove 阅读(402) 评论(0) 推荐(0)
摘要: K -CaravansTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 2034DescriptionStudent Ilya often skips his clas... 阅读全文
posted @ 2015-04-09 23:21 Bug_Clearlove 阅读(1143) 评论(0) 推荐(0)
摘要: 汉诺塔的水题(还没有遇到难的QAQ)一般都是一层层来求!公式:a[i]=a[i-1]*2+1;a[1]=1;a[i]表示从A上把i层移到另一个的步数。 阅读全文
posted @ 2015-04-09 23:00 Bug_Clearlove 阅读(151) 评论(0) 推荐(0)
摘要: #include using namespace std;int cmn(int n,int m){ int ans=1; for(int i=1;i>n>>m) { cout<<cmn(n,m)<<endl; } return 0;}View Code 阅读全文
posted @ 2015-04-09 22:42 Bug_Clearlove 阅读(265) 评论(0) 推荐(0)