摘要:
链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=912全错位排列,按照欧拉给出的递推公式:f(n)=(n-1) {f(n-1)+f(n-2)}#include using namespace std;int main(){ long long ... 阅读全文
摘要:
链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=95理解题意后就很简单了..数组标记法#include using namespace std;int sign[100000];int main(){ int n; int m; cin>>n;... 阅读全文
摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1172把1000~9999间的数字遍历一遍,如果只有一个符合条件的话,就输出,否则 not sure#include using namespace std;char data[105][5];int a[1... 阅读全文