摘要:
表示看这篇博客后找到了思路: http://blog.csdn.net/queuelovestack/article/details/47291195 补充一下数据,方便观察规律 m LBorderm m-LBorder fibn 1 0 1 1 2 0 2 1 3 1 2 2 4 1 3 3 5 阅读全文
摘要:
//NYOJ--水池数目 #include #include const int MAX_SIZE{102}; using namespace std; void dfs(int,int); int map[MAX_SIZE][MAX_SIZE]; int main(){ //freopen("input.txt","r",stdin); int N; cin>>N; ... 阅读全文
摘要:
按照思路写:深搜,r控制位数,位数为0输出否则递归 阅读全文
摘要:
题意,N座城市有N-1条路,目的是找到哪个城市可以到目的城市 //NYOJ--search--吝啬的国度 #include #include #include using namespace std; vector city[100005]; int road[100004]; int N,S; void dfs(int); int main(){ // freopen("in... 阅读全文
摘要:
#include #include #include void priTable(); using namespace std; int arr[30]; int main() { int n; priTable(); while(cin>>n && n!=0){ cout<<arr[n-1]<<endl; } return 0; } vo... 阅读全文
摘要:
#include #include using namespace std; vector table; void priTable(); int primeNumber(int); int main() { int n; priTable(); while(cin>>n && n!=0){ int count=0; for(vector:... 阅读全文