上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 97 下一页
摘要: 【概述】 STL 是指 C++ 标准模板库,是 C++ 语言标准中的重要组成部分,其以模板类和模版函数的形式提供了各种数据结构与算法的精巧实现,如果能充分使用 STL,可以在代码空间、执行时间、编码效率上得到极大的提高。 STL 大致可以分为三大类:容器(Co... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(42) 评论(0) 推荐(0)
摘要: 【概述】 STL 是指 C++ 标准模板库,是 C++ 语言标准中的重要组成部分,其以模板类和模版函数的形式提供了各种数据结构与算法的精巧实现,如果能充分使用 STL,可以在代码空间、执行时间、编码效率上得到极大的提高。 STL 大致可以分为三大类:容器(Co... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(46) 评论(0) 推荐(0)
摘要: 【概述】 在 ACM 中,常用的字符串算法不多,主要有:模拟与暴力、KMP、manacher、字典树、AC 自动机、Hash 等等。 除算法外,C++ 封装好的 string 类也十分重要,其有大量的内置函数,可以对字符串进行灵活的处理。 【算法】 模拟与暴力... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(14) 评论(0) 推荐(0)
摘要: Problem Description A subsequence of length |x| of string s = s1s2... s|s| (where |s| is the length of string s) is a string x ... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(38) 评论(0) 推荐(0)
摘要: 【实现类】 const int maxSize=100;template class seqStack{public: seqStack(); ~seqStack(); void push(T x);//入栈 T pop();//出栈... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(41) 评论(0) 推荐(0)
摘要: 【概述】 栈(Stack)是一种特殊的线性表,只能在某一端插入和删除的特殊线性表。它按照后进先出的原则存储数据,先进入的数据被压入栈底,最后的数据在栈顶。 由于栈满足先进后出,后进先出的性质,因此也被称为先进后出表(FILO)或后进先出表(LIFO) 当栈中元... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(270) 评论(0) 推荐(0)
摘要: Problem Description A rook is a piece used in the game of chess which is played on a board of square grids. A rook can only mov... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(88) 评论(0) 推荐(0)
摘要: Problem Description As I am fond of making easier problems, I discovered a problem. Actually, the problem is 'how can you make ... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(33) 评论(0) 推荐(0)
摘要: Problem Description Arbiter is a kind of starship in the StarCraft science-fiction series. The Arbiter-class starship is a Prot... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(20) 评论(0) 推荐(0)
摘要: Problem Description Running a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination... 阅读全文
posted @ 2022-09-20 22:57 老程序员111 阅读(11) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 97 下一页