训练记录
刘糙糙
努力学习的码农小牛
展开
-
第三次数据结构实验 矩阵的逆置 二叉树的遍历
#include <iostream>using namespace std;template<class ElemType>class SqStack{protected: int count1; int maxSize; ElemType *elems;public: SqStack(int size1=0)...原创 2018-11-13 21:01:26 · 285 阅读 · 0 评论 -
第二次数据结构试验+逆置+划分子集+迷宫
逆置:#include <iostream>using namespace std;class SqStack{protected: int count; int maxSize; int *elems; bool Full() const; void Init(int size);public: SqStack(int ...原创 2018-10-30 18:47:07 · 190 阅读 · 0 评论 -
等差素数列
7,37,67,97,127,157 这样完全由素数组成的等差数列,叫等差素数数列,其公差为 30,长 度为 6。那么,长度为 10 的等差素数列,其公差最小值是多少,并给出该等差素数数列。 因为不会matble所以用的c++,后期补代码这个题应该就是暴力求解,作业题也没有给出具体的时间和数据大小,所以也没有办法判断时间复杂度,那么埃筛或者线筛或者朴筛也就都可以了。不需要控制时间。#i...原创 2018-09-28 19:45:31 · 1002 阅读 · 0 评论 -
snow poj 3349
DescriptionYou may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a collection of s...原创 2018-12-11 20:15:50 · 139 阅读 · 0 评论