- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 寻找最长回文子串(c++)
#include<iostream>#include<string>usingnamespacestd;classsolution{public:stringlongestPalindrome(strings){intbefore=0,max=0,tem,size;size=s.size();if(size==1)returns;...
2021-08-27 15:47:23
219
原创 对战小程序
#pragma once#include<iostream>using namespace std;class biology {protected: int jingyan;//经验值 int ad;//攻击力 int hp, temhp;//属性生命值和对战生命值 int hu;//防御力public: biology(int i, int i1, int i2, int i3) :ad(i), hu(i1), hp(i2), jingyan...
2021-08-21 20:15:57
399
原创 接雨水(c语言)
inttrap(int*height,intheightsize){if(heightsize==0)return 0;else{int*left,*right,*r_max,*l_max,*l_behind,*r_behind,*tem;intle,ri,width,area,hei=0;//le,ri代表左右边界,width代表整体宽度left=height;right=height+heightsize-1;for(le=0,ri=0;right!=...
2021-08-21 20:10:28
377
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人