Loading...
题目描述如下 一个整数n(n<=10)可以有多种分划,使其分划的一列整数之和为n。 输入 输入只有一个整数n<=10 输出 有多行,列出所有的...
#include<iostream> using namespace std; typedef struct { int n; ...
//邻接矩阵存储简单路径 #include <iostream> #include <cstring> using namesp...
直接开数组干~ #include <iostream> #include <cstring> using namespace s...
今天复习OJ上的数据结构题,有一题用循环链表解决约瑟夫环,不想写循环链表了,然后百度找了些资料总结了下,如下: 假设有10个人做成一圈,报数1 2 3.报...
#include <iostream> #include <string> #include <algorithm> ...
#include <iostream> using namespace std; void swap(int num[], int a, ...
const int maxvalue=100; const int maxbit=100; const int maxn=100; #include "...