会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
keep-minding
但问耕耘,莫问前程
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2023年8月13日
二分-小车问题
摘要: 小车问题 [toc] ## 题目描述 ・甲、乙两人同时从A地出发要尽快同时赶到B地。出发时A地有一辆小车,可是这辆小车除了驾驶员外只能带一人。 已知甲、乙两人的步行速度一样,且小于车的速度。问:怎样利用小车才能使两人尽快同时到达。 ・输入 ・仅一行,三个数据分别表示人AB两地的距离s,人的步行速度a
阅读全文
posted @ 2023-08-13 16:30 keep-minding
阅读(122)
评论(0)
推荐(0)
2023年8月7日
汉诺塔
摘要: 汉诺塔 ```cpp #include #include #define N 5 void solve(); void move(char a, char b, char c, int num); void print_hanoi(); int main(int argc, char** argv)
阅读全文
posted @ 2023-08-07 22:07 keep-minding
阅读(15)
评论(0)
推荐(0)
八皇后问题回溯法
摘要: 回溯法八皇后问题 ```cpp #include #include #include #include #define print_board(board, ...) {\ printf(__VA_ARGS__); \ printf("\n"); \ print_board_(board);\ }
阅读全文
posted @ 2023-08-07 22:01 keep-minding
阅读(14)
评论(0)
推荐(0)
棋盘跳马
摘要: 棋盘跳马 从指定位置跳到指定位置的最短路径 马走日,存在蹩腿 ```cpp /** * 棋盘跳马 * 按照中国象棋跳马规则 */ #include #include #include #include #define print_board(board, ...) {\ printf(__VA_AR
阅读全文
posted @ 2023-08-07 21:53 keep-minding
阅读(47)
评论(0)
推荐(0)
2023年7月29日
ffmpeg合并音频和视频
摘要: ffmpeg合并音频和视频 ## 命令行 ```shell ffmpeg -i video.m4s -i audio.m4s -acodec copy -vcodec copy out.mp4 ``` ## 使用ffmpeg的api ```cpp extern "C" { #include "lib
阅读全文
posted @ 2023-07-29 10:52 keep-minding
阅读(816)
评论(0)
推荐(0)
linux获取子文件和子目录
摘要: linux获取子文件和子目录 ```cpp #include #include #include #include #include // #include #define TAG "[demo]" // #define LOGD(...) __android_log_print(ANDROID_L
阅读全文
posted @ 2023-07-29 10:38 keep-minding
阅读(72)
评论(0)
推荐(0)
ffmpeg 编译安装android和linux
摘要: ffmpeg 编译安装android和linux 下载:https://github.com/FFmpeg/FFmpeg https://www.ffmpeg.org/download.html ## envirenment ndk: https://github.com/android/ndk/w
阅读全文
posted @ 2023-07-29 10:30 keep-minding
阅读(134)
评论(0)
推荐(0)
2023年5月18日
win10+ubuntu20双系统安装
摘要: 电脑:暗影精灵5 air 内存:16G 硬盘:500G SSD + 1T 硬盘 笔者之前一直使用ubuntu单系统,偶尔想玩个游戏却不能,加上ubuntu系统下有些操作过于复杂,不如windows方便,于是想装个双系统,win10 + ubuntu20.04.6 > 制作启动盘最好在windows电
阅读全文
posted @ 2023-05-18 16:15 keep-minding
阅读(962)
评论(0)
推荐(0)
2023年4月18日
CMake 编译选项设置
摘要: 链接:https://blog.csdn.net/Huoon/article/details/108520571 在CMakeLists.txt中可以通过修改CMake内置的环境变量来改变C或C++的编译选项. 编译选项相关的CMake 变量如下: CMAKE_C_FLAGS = CMAKE_C_F
阅读全文
posted @ 2023-04-18 16:52 keep-minding
阅读(1853)
评论(0)
推荐(1)
2022年9月4日
ffmpeg 视频合并
摘要: 转载:实战详细讲解ffmpeg命令的使用(来自一线的经验,视频合并&avi转MP4&补空白音频【收藏下来一定用的到】) 视频合并示例: # filelist.txt: #file 'a.flv' #file 'b.flv' # -f concat : 合并操作 # -safe 0 : 避免操作输入流
阅读全文
posted @ 2022-09-04 09:22 keep-minding
阅读(115)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告