黄海 1 year ago
commit 4deb98b52f

@ -6,18 +6,18 @@ void solve() {
cin >> n;
int sum = 0;
int len = 0;
int tmp;
tmp = n;
while (tmp) {
tmp /= 10;
int t;
t = n;
while (t) {
t /= 10;
len++;
}
tmp = n;
while (tmp) {
int x = tmp % 10;
t = n;
while (t) {
int x = t % 10;
sum += pow(x, len);
tmp /= 10;
t /= 10;
}
if (sum == n)
cout << "T" << endl;

@ -8,12 +8,12 @@ int main() {
int cnt = 0;
while (true) {
cnt++;
a[1] = n / 100;
a[2] = n % 100 / 10;
a[3] = n % 10;
sort(a + 1, a + 1 + 3);
int mx = a[3] * 100 + a[2] * 10 + a[1];
int mi = a[1] * 100 + a[2] * 10 + a[3];
a[0] = n / 100;
a[1] = n % 100 / 10;
a[2] = n % 10;
sort(a, a + 3);
int mx = a[2] * 100 + a[1] * 10 + a[0];
int mi = a[0] * 100 + a[1] * 10 + a[2];
n = mx - mi;
if (n == 495) break;
}

@ -0,0 +1,18 @@
#include <bits/stdc++.h>
using namespace std;
const int N = 366;
int a[N];
int sum;
int main() {
cin >> a[1] >> a[2]; // 第一天a[1]道题第二天a[2]道题
int n, m;
cin >> m >> n;
sum += a[1], sum += a[2];
for (int i = 3;; i++) {
a[i] = a[i - 1] + a[i - 2];
if (a[i] >= m) break;
sum += a[i];
}
cout << sum << endl;
return 0;
}

@ -0,0 +1,19 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
if (j == 1 || j == n)
cout << "|";
else if (i == (n + 1) / 2) {
cout << "-";
} else
cout << "a";
}
cout << endl;
}
return 0;
}

@ -0,0 +1,44 @@
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> PII;
vector<PII> g;
// 判断一个数是不是质数
bool isPrime(int n) {
if (n < 2) return false;
for (int i = 2; i <= n / i; i++)
if (n % i == 0) return false;
return true;
}
int main() {
int k;
cin >> k;
int a = 1;
while (k--) {
int p, m;
cin >> p >> m;
a *= pow(p, m);
}
a--;
int last = -1;
for (int i = 2; i * i <= a; i++) { // 遍历所有小因子
if (a % i > 0 || !isPrime(i)) continue; // 不是因子 或者 不是质数
// 如果数字a除以这个质数因子i,商a/i也是一个质数因子它是最后一个最大的质数因子,只能有1个
if (isPrime(a / i) && a / i > i) last = a / i;
int x = a;
int cnt = 0;
while (x % i == 0) {
cnt++;
x /= i;
}
if (cnt > 0) g.push_back({i, cnt});
}
if (~last) g.push_back({last, 1});
for (int i = g.size() - 1; i >= 0; i--)
cout << g[i].first << " " << g[i].second << endl;
return 0;
}

@ -0,0 +1,32 @@
#include <bits/stdc++.h>
using namespace std;
const int N = 110;
// 并查集
int p[N];
int find(int x) {
if (x == p[x]) return x;
return p[x] = find(p[x]);
}
// 合并集合
bool join(int a, int b) {
if (find(a) == find(b)) return false;
p[find(a)] = find(b);
return true;
}
int main() {
int n;
cin >> n;
// 初始化并查集
for (int i = 1; i <= n; i++) p[i] = i;
for (int i = 1; i <= n; i++) {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
}
return 0;
}

@ -0,0 +1,18 @@
**[$AI$大模型颠覆程序员的价值](https://www.zhihu.com/xen/training/live/room/1734236558582992898/1734236796119171072)**
**[使⽤ $Assistants$ $API$快速搭建领域专属$AI$](https://www.zhihu.com/xen/market/training/training-video/1734236558582992898/1734236856831664130?education_channel_code=ZHZN-cd8085beea05e6d)**
**[正式课程](https://www.zhihu.com/xen/market/training/training-video/1717503634072510464/1719142246941663232)**
>四大$ai$工具:
$Gamma$https://gamma.app/
$ChatDoc$https://chatdoc.com/
$ChatExcel$https://chatexcel.com/
$ChatMind$https://www.chatmind.tech/
$Transformer$原理
$Fine$ $Tune$ 模型,参数微调,垂直领域大模型
课件
**[大模型 AI 应用全栈开发知识体系 v1.3.2](https://agiclass.feishu.cn/docx/Z3Aed6qXboiF8gxGuaccNHxanOc)**

@ -0,0 +1,121 @@
## 环境部署及相关购置费用
### 一、科学上网
**$AI$的网站,一般都在国外,比如微软的$Github$,由于国内的网络限制,科学上网是必须的,否则很多东西无法访问到。**
**[$CatCloud$](https://catcloud.app/#/)**
>昵称:$AI$教育推广者
邮箱10402852@qq.com
密码D******7u@\*\*
**官网报价**
> ![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401290812575.png)
### 二、搭建$ChatGPT$+$AI$绘图
**[$GoAmzAI$ - 全新的$AIGC$应用](https://ipdj3sibjm.feishu.cn/docx/ARgjdOpTcohy2txfcPbclVbvnOf)**
**[$GoAmzAI$ 售前常见问题解答](https://flowus.cn/share/bfe120cc-a630-44f5-9fda-eaff358bf3a5)**
https://replicate.com/
① 软件集成了我们想要的$AI$功能
② 价格只有$2299$元,可以接受
### 三、主机
考虑到国内$ICP$备案等机制,建议在国内采购 **阿里云** ,并正常进行备案。
使用顶级域名 `www.huibanshi.net`
因为国内对$OpenAi$等网站墙的原因,建议另外采购香港主机:
**阿里云香港轻量云**
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401310850230.png)
提供$ChatGPT$,$Stable$ $Diffusion$,$Mindjourney$等需要外网的服务器,使用二级域名 `ai.huibanshi.net`
### 四、$ChatGPT$ 购买授权$Token$
**[国内二道贩子](https://www.doudianpu.com/chatgpt/register/)**
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401290920511.png)
> **注:与这样的不太靠谱的个人交易,存在一定风险,但在目前国内的网络情况,还没有其它更好的办法,只能是冒一些风险,小额进行交易,防止造成太大损失。**
**[$ChatGPT$代充平台](https://www.neuronicx.com/)**
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401310757488.png)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401310800997.png)
**$Stable$ $Diffusion$的实验环境**
采用购买$AutoDL$主账号+子账号的方式处理:
**[$AutoDL$ $AI$算力云](https://www.autodl.com/home)**
[参考文档](https://zhuanlan.zhihu.com/p/578731361?utm_id=0)
### 五、小鹅通
**[官网](https://www.xiaoe-tech.com/)**
---
### 六、搭建$Stable$ $Diffusion$服务器 【备用】
**[参考文档1](https://www.toutiao.com/article/7309365985969062419/)**
**[参考文档2](https://www.bilibili.com/video/BV1iM4y1y7oA/?spm_id_from=333.788.video.desc.click&vd_source=13b33731bb79a73783e9f2c0e11857ae)**
**[参考文档3](https://blog.csdn.net/baiyefenglin/article/details/130370780)**
运行条件:
**[点我查看](https://baijiahao.baidu.com/s?id=1775301478259438285&wfr=spider&for=pc)**
#### 本地部署与云端部署
**[自行搭建硬件费用表](https://baijiahao.baidu.com/s?id=1771619483944895618&wfr=spider&for=pc)**
**[阿里云云端部署](https://blog.csdn.net/qq_59595994/article/details/131503698)**
**[$GPU$云服务器$Stable$ $Diffusion$搭建保姆级教程](https://blog.csdn.net/forgetmiss/article/details/130896597)**
**[腾讯云$GPU$服务器$SD$安装使用教程](https://mv7x2w5hy8.feishu.cn/docx/DlGYd5rbZoDv5qxvsO5cCZWlnTg)**
### 七、$OneThingAi$ 【备用】
**[官网](https://onethingai.com/)**
**$AI$绘画**
$Stable$ $Diffusion$,$Fooocus$,$ComfyUI$,丹炉
**$AI$训练**
$PyTorch$ $TensorFlow$ $Paddle$ $Miniconda$
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401291402020.png)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401291402481.png)
访问地址:
```cpp {.line-numbers}
http://10.10.21.19:7860/?__theme=dark
```
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401291405862.png)
**代理工具**
```cpp {.line-numbers}
ssh -p 18133 root@proxy-ai.onethingai.com -CNg -L 7860:127.0.0.1:7860
@LbUK.%8TU
```

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,34 @@
## [课程地址](https://www.bilibili.com/video/BV1Ss4y1X7z4)
#### 前言
全称$Geogebra$,简称$GGB$,是代数和几何两个词的合成词。
**优势**
**免费**
② 全平台($Windows$,$Mac$,安卓)
③ 面向世界
**下载**
**[官网](http://www.geogebra.org)**
> **注**:课程使用经典$5$,经典$6$一般在移动端展示,但容易卡~
#### 1.1 用工具和属性绘制简单图形
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202401311531627.png)
**[$GeoGebra$如何擦除踪迹——移动视图、放大、设置活动视图](https://zhuanlan.zhihu.com/p/298051355)**
#### 实验:抛物线方程$y=ax^2+bx+c$,如果只变化$b$, 那么顶点的坐标轨迹为什么是一条抛物线呢?
答:抛物线方程为 $y=ax^2+bx+c$
当 $b$ 变化时,顶点的横坐标为 $x=-\frac{b}{2a}$
将 $x$ 代入原方程,得到顶点的纵坐标为 $y=\frac{b^2}{4a}-c$
因此,顶点的坐标轨迹为 $y=\frac{b^2}{4a}-c$
这是一个关于 $b$ 的二次函数,其图像为一条抛物线。

@ -1,22 +1,22 @@
-Xms128m
-Xmx1024m
-XX:ReservedCodeCacheSize=512m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
-javaagent:D:\python\jetbra\ja-netfilter.jar=jetbrains
-Xms128m
-Xmx2048m
-XX:ReservedCodeCacheSize=512m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
-javaagent:D:\python\jetbra\ja-netfilter.jar=jetbrains

@ -0,0 +1,18 @@
在Linux下部署Llama2超详细教程
https://www.bilibili.com/video/BV1n8411U7wh
离线AI聊天清华大模型(ChatGLM3)本地搭建
https://blog.csdn.net/i2blue/article/details/135275343
算力平台 AutoDL
1、创建实例 北京C区GPU数1V100-32GB 4/8 1.88元/小时镜像PyTorch 2.0.0 /11.8,创建完直接关机,节约钱。
2、使用无卡模式开机无卡模式的话一个小时保需要一毛钱适合部署环境下载模型这样的操作。
3、打开JupyterLab,大的模型文件一般是存在autodl-tmp中的新建一个文件夹Llama2,存放执行文件。
4、....
离线AI聊天清华大模型(ChatGLM3)本地搭建
https://blog.csdn.net/i2blue/article/details/135275343
1、算力平台 AutoDL 充值200元实现中文LLaMA-2、清华大模型(ChatGLM3 在GPU主机部署同时完成模型微调实验。

@ -0,0 +1,16 @@
同学,学习平台权限已开通~ ~👉上课方式有两种:
1.手机端下载知学堂APP上课
2.PC端登陆知乎官网点击知学堂板块-前往学习中心
「AI学习助手」网址http://ta.agiclass.ai/
「AGI实验室」https://learn.agiclass.ai
账号为u18543139168
密码agiclass-1234567
AGI实验室 很重要,因为老师的课件在这个平台上,咱们也可以在实验室进行实操
AI全栈课程使用手册 https://a.agiclass.ai/
课程手册有时间可以先看看哈文档当中有安装python运行环境配置OpenAI环境变量等教程以供参考
Loading…
Cancel
Save