摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 用等差数列公式推导 */ #include #include using namespace std; int main() { int cas, cnt, number; ... 阅读全文
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 可以直接利用STL的功能 */ #include #include using namespace std; bool cmp(const int &a, const int &b) { ... 阅读全文
摘要:
#include #include #define MAXN 26 using namespace std; int main() { int n, h, tmp, sum, max; int i, j, k, p; int F[MAXN], f[MAXN], d[MAXN], t[MAXN] = {0}, ans[MAXN], ANS[MAXN]; ... 阅读全文
摘要:
#include #define MAXK 14 using namespace std; bool check(int n, int k) { int all = n * 2, w = k % all; for (int i = 1; i 0) return false; } return true; } int main() ... 阅读全文