自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 gazebo安装,macbook m1芯片安装gazebo,ROS2

本人在使用macbook pro m1芯片安装ros gazebo遇见的问题。

2023-10-08 17:14:09 645

原创 C++标准模板库STL

STL模板库详细的String及常用函数用法2020-2-2 寒假期间string类1.string类是模板类typedef basic_string string;2.string类头文件 #include <string>3.string类对象初始化string s1("hello");string s2="hello";string s3(8,'x'); /...

2020-02-03 09:44:46 192

原创 POJ1013假币问题--枚举

POJ1013 假币问题 枚举 暴力题干:一共十二枚银币,一枚假的,注意就一枚是假的,假币重量与真币不同。通过三次称重来判别真假硬币,并判断比真的轻还是重,测量结果,up,down,even分别表示右盘轻了,右盘重了,平衡。硬币用A~L表示;解题思路:枚举假设硬币是轻的,看是否符合每一个测量结果,符合这枚硬币就是假硬币,轻;否则假设硬币是重的,看是否符合每一个测量结果,把所有的硬币测量一边...

2020-01-31 12:16:03 648

原创 最长连续子序列

子序列该模板的功能:求出最大连续子序列的和,并保存该连续子序列的开头和结尾元素的编号,这里,我们默认第一个元素的编号是1。int num[MAXNUM];//MAXNUM用宏定义根据题意定义出来int arrLen; //数组的长度,准确来说是所含数字的个数int startPos, endPos;//startPos用于保存子序列开头的元素的编号,endPos用于保存子序列结尾元素的编...

2018-12-02 10:00:48 886

原创 奶牛问题 扩展斐波那契

奶牛a[i-1]+a[i-4]#include&lt;cstring&gt; #include&lt;cstdio&gt;#include&lt;iostream&gt;#include&lt;cmath&gt;#include&lt;algorithm&gt;using namespace std;int main(){ int n; cin&gt;&gt;n; int...

2018-12-02 09:21:47 292

原创 进制转换

输入十进制转换为任意进制仅限2-16进制#include &lt;cstdio&gt;#include &lt;cstring&gt; #include &lt;iostream&gt;#include &lt;algorithm&gt;#include &lt;cmath&gt;using namespace std;typedef long long LL;int main(...

2018-11-29 20:45:00 123

原创 DFS

girl and cat两遍DFS#include &lt;cstdio&gt;#include &lt;cstring&gt; #include &lt;iostream&gt;#include &lt;algorithm&gt;#include &lt;cmath&gt;using namespace std;typedef long long LL;char g[5]={"...

2018-11-29 20:20:12 142

原创 poj 1321棋盘问题

poj1321棋盘#include &lt;cstdio&gt;#include &lt;cstring&gt; #include &lt;iostream&gt;#include &lt;algorithm&gt;#include &lt;cmath&gt;using namespace std; char map[20][20];int vis[20];int sum; /...

2018-11-22 17:17:44 186

原创 字符串周期

A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, the string ”abcabcabcabc” has period 3, since it is...

2018-11-17 11:53:19 594

原创 POJ 3069

字符串字典序问题 俩坑字符必须是一个一个输入 可以scanf在%s前加空格也可以getchar();s[i]=getchar();输出时 每80个字符一组 到80换行#include &lt;cstdio&gt;#include &lt;iostream&gt;#include &lt;cmath&gt;#include &lt;cstring&gt;#includ...

2018-11-17 11:44:21 193

转载 分子质量字符串处理

##字符串#include &lt;cstdio&gt;#include &lt;iostream&gt;#include &lt;cmath&gt;#include &lt;cstring&gt;#include &lt;algorithm&gt;using namespace std;int main(){ double saw[]={12.01,1.008,16.00,14...

2018-11-14 20:30:34 299

转载 平面分割问题

平面

2018-11-08 15:59:56 735

转载 哥德巴赫猜想

哥德巴赫猜想偶数分解为 两个不同的素数#include &lt;cstdio&gt;#include &lt;iostream&gt;#include &lt;algorithm&gt;#include &lt;cmath&gt;#include &lt;cstdlib&gt;#include &lt;cstring&gt;typedef long long LL;using na...

2018-11-08 15:57:16 324

转载 简单搜索

简单搜索-10位数以内的全排列#include &lt;cstdio&gt;#include &lt;cstring&gt; #include &lt;iostream&gt;#include &lt;algorithm&gt;#include &lt;cmath&gt;using namespace std;int a[10]={0},book[10]={0},n;void d...

2018-11-07 21:04:27 336

转载 快速幂

快速幂 位运算 //快速幂 #include &lt;cstdio&gt;#include &lt;iostream&gt;#include &lt;algorithm&gt;#include &lt;cmath&gt;#include &lt;cstdlib&gt;#include &lt;cstring&gt;typedef long long LL;using...

2018-11-07 20:57:36 193

空空如也

空空如也

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

TA关注的人

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