PAT
辞穷
如果你真心想做某事,全世界都会帮你完成。
展开
-
PAT团体程序设计天梯赛练习题GPLT1~10
// PAT团体程序设计天梯赛GPLT1~10//#include"stdafx.h"#include<iostream>#include<math.h>#include<string>usingnamespacestd;int main(){ ////L1-001 //cout<< "Hello Word!!!"<<endl; ////L1-002. 打印沙漏原创 2017-03-02 12:30:08 · 1122 阅读 · 1 评论 -
PAT团体程序设计天梯赛练习题GPLT11~20
#include<iostream>#include<string>#include<cmath>using namespace std;int main(){ //11 /* 输入格式: 输入在2行中先后给出字符串A和B。两字符串的长度都不超过104,并且保证每个字符串都是由可见的ASCII码和空白字符组成,最后以换行符结束。 输出格式: 在一原创 2017-03-05 20:04:13 · 871 阅读 · 0 评论 -
最长回文子串
零:预备回文串:正着读和倒着读都一样的的字符串。 要求:在一个字符串中找到符合回文串条件的最长的回文子串。 目前学到的有四种方法,按照我认为的理解难度排序: 均附有c++代码 设字符串总长度为len,本文只给出了最长长度的答案ans,如果想要知道最长回文字串是哪一个,只要在设置一个起始值begin,在ans(答案)被改变的时候根据不同的方法将此时的回文串开头地址或中间地址赋值给begin即可原创 2017-05-08 19:27:23 · 271 阅读 · 0 评论 -
1055. The World's Richest (25)
题目:Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world’s wealthiest people. Now you are supposed to simulate this job, but concentrate only on the peo原创 2017-09-02 17:37:46 · 234 阅读 · 0 评论