自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 PAT-甲级 1007 Maximum Subsequence Sum (25分)【最长连续子序列和】

1007Maximum Subsequence Sum(25分)Given a sequence ofKintegers {N​1​​,N​2​​, ...,N​K​​}. A continuous subsequence is defined to be {N​i​​,N​i+1​​, ...,N​j​​} where1≤i≤j≤K. The Maximum Subsequence is the continuous subsequence which has the la...

2020-10-31 13:33:43 180

原创 PAT-甲级 1004 Counting Leaves (30分)

1004Counting Leaves(30分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts with a line containing0&l...

2020-10-30 00:18:54 274

原创 线性表——顺序表 知识总结

顺序表的常用操作有建表、插入、删除、查找、打印等等。#include <stdio.h>#include <stdlib.h>#include <string.h>#include <iostream>using namespace std;typedef int ElementType;const int MAXSIZE = 50; //最多存放5个元素struct sqList{ ElementType data...

2020-10-10 16:14:00 873

原创 全排列总结(二)

一、n个数全排列#include <iostream>#include <string>#include <algorithm>#include <cstdio>using namespace std;int flag[200], a[200];int n = 5;void dfs(int step){ if (step - 1 == m) { for (int i = 0; i < step; i+

2020-10-10 01:47:54 184

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除