摘要: 在继承时加入的关键字,可以修饰继承来的类成员 这里的func1()和func2()都是proteced,不能在类外部访问 这里的func1()是public,但是func2()依然是protected 阅读全文
posted @ 2024-07-29 00:13 Gold_stein 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 昨晚深夜遇到的问题,因为急着睡觉,没有记录具体的报错信息。具体表现为:git 命令无法和github.com通信,但是github desktop就可以;clash无论是直连,规则,还是全局都没有用最后的解决方法:用git config 命令清空当前使用的代理,然后重试,莫名其妙就成功了() 补充: 阅读全文
posted @ 2024-07-28 00:45 Gold_stein 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 为了安装百度PaddlePaddle的一些依赖,需要用pip安装一些包 1.发现环境变量里添加的Python明明是3.12,但是在cmd和Powershell中,python --version的输出结果却是3.11.5; 2.询问GPT,发现whereis命令在Windows下的对应为where, 阅读全文
posted @ 2024-07-27 02:16 Gold_stein 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 一开始的50分代码: #include <iostream> #include <stdio.h> #include <algorithm> #include <string> #include <cmath> #define For(i, j, n) for(int i = j ; i <= n 阅读全文
posted @ 2024-07-26 03:36 Gold_stein 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 注意三种情况: 1.开头结尾的-,例:-abc-- 2.-两侧必须同为小写字母或同为数字 例;A-a 3.对数字不能进行大小写转换 #include <iostream> #include <stdio.h> #include <algorithm> #include <string> #inclu 阅读全文
posted @ 2024-06-21 11:00 Gold_stein 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 麒麟开发日志 前期环境配置 sysbench安装过程中遇到的问题、解决办法; 如何利用sysbench对mySQL进行压力测试:参见对话24/6/13 Kylin docker的安装和配置 solution在最后一步。 1.按照gpt给出的提示尝试安装依赖 sudo dnf -y install d 阅读全文
posted @ 2024-06-13 17:07 Gold_stein 阅读(25) 评论(0) 推荐(0) 编辑
摘要: cdq分治/逆序对 一点点总结 归并排序求普通逆序对问题 #include<bits/stdc++.h> #define IN inline #define R register int using namespace std; const int N=5e5+5; typedef long lon 阅读全文
posted @ 2024-04-25 16:13 Gold_stein 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 分层图的板子题 代码 #include <bits/stdc++.h> #define R(x) x=read() #define fi first #define se second using namespace std; typedef pair<int,int> PII; const int 阅读全文
posted @ 2024-04-12 16:31 Gold_stein 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 概率dp,关键是要走出思维定势: 一般来讲,都会把dp[i]定义为从0爬到高度i的概率,但是因为任何时刻都有掉下去的可能,这样子不好推(也有大佬这样做出来的) 我们把dp[i]定义为从i爬到n的概率,公式就好推了 而且,我们可以根据定义很自然地得到: dp[n]=0 #include <bits/s 阅读全文
posted @ 2024-04-12 12:15 Gold_stein 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 并查集板子题 #include <bits/stdc++.h> #define R(x) x = read() #define RLL(x) x = readLL() using namespace std; typedef long long LL; const int N = 1e5 + 5; 阅读全文
posted @ 2024-04-10 21:34 Gold_stein 阅读(8) 评论(0) 推荐(0) 编辑