自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 XTuner 微调个人小助手认知任务

【代码】XTuner 微调个人小助手认知任务。

2024-08-07 18:52:33 207

原创 Llamaindex RAG实践

回答存在严重幻觉。

2024-07-28 12:38:20 190

原创 LangGPT结构化提示词编写实践

【代码】LangGPT结构化提示词编写实践。

2024-07-25 15:09:48 523

原创 8G 显存玩转书生大模型 Demo

镜像:Cuda12.2-conda资源配置:10% A100*1。

2024-07-23 16:10:37 327

原创 书生大模型实战营——书生·浦语大模型全链路开源体系介绍

随着人工智能技术的迅猛发展,大型模型已成为当前人工智能领域的焦点。2022年11月30日,美国OpenAI公司发布了通用对话系统ChatGPT,仅上线60天月活跃用户超过1亿,创下互联网应用历史最快用户增长记录。2023年3月14日,OpenAI发布升级版GPT-4,展现出更高级别的能力,再次引领技术飞跃,并掀起全球大型模型发展的热潮。不仅国际科技巨头积极加大投入,推动大型模型产业快速落地,国内头部企业也积极追赶步伐,竞相进军大型模型的新领域,抓住认知智能大型模型带来的历史机遇。

2024-07-23 13:36:46 272

原创 书生大模型实战营-入门岛-第三关

https://github.com/Olive-2019/NL2SQL/tree/main

2024-07-15 16:46:57 159

原创 书生大模型实战营-入门岛-第3关

【代码】书生大模型实战营-入门岛-第二关。

2024-07-15 01:17:41 184

原创 书生大模型实战营-入门岛-第一关

test.py文件内容:

2024-07-15 01:09:35 168

原创 【第七章开始】算法笔记及拓展题 题解

OJ复习

2022-03-01 06:43:52 545

原创 【第六章前】算法笔记及拓展题 题解

算法笔记题解

2022-01-08 17:14:52 422

原创 L1-027 出租

题目.#include <iostream>#include <string>#include <list>#include <set>#include <vector>#include <sstream>using namespace std;int main() { string A; cin >> A; set<char> s; for (int i = 0; i < A.s

2021-10-15 21:19:22 122

原创 L1-025 正整数A+B

题目使用了c++的输入输出相关函数简化了处理#include <iostream>#include <string>#include <sstream>using namespace std;int right(const string& str) { if (!str.size()) return 0; for (int i = 0; i < str.size(); ++i) if (str[i] < '0' || str[i]

2021-10-15 20:44:46 88

原创 CSP 202012-2 期末预测之最佳阈值

题目CCF-CSP考试2020年12月第2题(期末预测之最佳阈值)思路针对每一个阈值都算一遍的话,只能拿了70%的分。这个题需要发现一些小规律。代码#include <iostream>#include <string>#include <list>#include <algorithm>#include <stack>#include <stdlib.h>#define infinity 1e5using

2021-09-17 22:20:29 305

原创 CSP 202104-2 领域均值

题目CCF-CSP考试2021年4月第2题(邻域均值)思路一开始是每个点算一下,只拿了70%的分,应该是因为超时。后来改成滑动窗口的解法,每个点用左边或者上边的结果,再加/减去一行/列,就可以拿满了。主要难点在怎么控制什么时候减掉或加上一行或一列,我采用的方法是计算现在和之前的边界,通过其差值来控制。代码#include <iostream>#include <string>#include <list>#include <algorithm&gt

2021-09-17 20:34:49 405

原创 FatMouse‘ Trade HDU - 1009(贪心)

题目注意贪心的指标的比例就好了#include <iostream>using namespace std;int main(){ int* f, * j, *vis; double* d; int m, n; cin >> m >> n; while (m != -1 || n != -1) { { f = new int[n]; j = new int[n]; d = new double[n]; for (in

2020-08-26 17:09:20 108

原创 Tempter of the Bone HDU - 1010(DFS + 奇偶剪枝)

题目这个题思路不难,就是不用奇偶剪枝的话会出现TLE,奇偶剪枝说白了就是一个矩阵分成两种区域,从一种区域走到另一个区域必是奇数步数,从一种区域走回自己的区域必是偶数步数,就算出现了障碍物这个结论依旧有效,因为绕开障碍物的步数必是偶数AC代码#include <iostream>using namespace std;int n, m, t;int xx[4] = { 0, -1, 0, 1 };int yy[4] = { 1, 0, -1, 0 };int dogx, dogy,

2020-08-26 16:22:40 104

原创 A strange lift HDU - 1548(BFS)

题目#include <iostream>#include <queue>using namespace std;struct node{ int site, step;};int main(){ int N, A, B; cin >> N ; if(!N) return 0; cin >> A >> B; while (1) { if(A &l

2020-07-05 20:17:01 114

原创 Robot Motion HDU - 1035(DFS)

A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions areN north (up the page)S south (down the page)E east (to the right on the p.

2020-07-03 04:44:26 102

原创 c++中的继承与访问限制(讲故事)

文章目录一个帮助理解的故事一个帮助理解的故事首先来讲个故事从前呢,有个家族,他们每一代都只有上一代和下一代之间直接接触,(保证信息的继承只有从上一代继承到下一代,没有隔代直接继承)。每一代的信息都分为三种,一种是对外公开的(public),一种是只在家族内公开的(protected),还有一种是只有他自己知道的(private)。在继承的时候呢,这一代的人就会告诉他的儿子(派生类),“仔啊,我同你讲两种信息喔,一种呢,就是大家都知道,你都可以同所有人讲,另外一种呢,你顶多就同你个仔讲,千其咪同外人讲噶

2020-05-25 18:58:12 202

原创 构造函数(拷贝、默认、自定义)和析构函数

文章目录构造函数与类同名没有返回值有参数,可以重载析构函数~类名没有返回值没有参数,不能重载构造函数和析构函数的作用时间构造函数在对象出现时就调用析构函数在对象销毁前最后一刻调用class a{public: a() { //初始化 } ~a() { //收拾一下 }};构造函数类实例化成为对象时就调用与...

2020-04-27 23:31:45 807

原创 名字空间

文章目录关键字目的基本知识使用定义名字空间里可以定义变量、函数、类可以名字空间里声明函数,名字空间外定义可以合并声明访问namespaceName::变量名using namespaceName::变量名using namespace namespaceName别名嵌套嵌套类意义关键字namespace目的解决名字冲突基本知识名字空间是一个人为定义的作用域类也是一种名字空间使用...

2020-04-27 23:16:39 150

原创 函数重载与默认参数

文章目录这两个问题都要注意二义性函数重载目的实现顺序相容类型实现原理名称压轧技术函数特征(重载依据)参数类型常指针和常引用也是一种新的类型,但常量不是参数个数参数顺序常成员函数与非常成员函数注意重载是指在一个作用域内的返回值类型不能作为函数特征常量对象函数默认参数顺序一定要注意二义性函数定义和函数声明不一样怎么办?定义时省略名称这两个问题都要注意二义性函数重载目的定义一族函数,方便使用的程...

2020-04-22 19:18:47 677

原创 函数机制与多文件机制

文章目录函数机制调用函数内联函数(inline)多文件机制include的小秘密宏相关避免重复定义头文件里inline隐式inline显式inline头文件外cpp(推荐!)函数机制调用函数调用函数的时候会有时间和空间(堆栈)的开销内联函数(inline)就是代码展开,不会调用函数,减少开销但是这个只是提个建议而已,如果代码过长也不会被搞成内联函数类内定义函数意味着隐式地声明了内联...

2020-04-20 20:32:05 316

原创 迷宫问题 POJ - 3984(dfs)

定义一个二维数组:int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,表示一个迷...

2020-04-19 13:03:09 150

原创 Tree Recovery POJ - 2255(根据先序序列和中序序列构建二叉树)

Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes.This is an example of one of her creatio...

2020-04-08 21:07:21 187

原创 关于引用

引用本质一些比较奇怪的使用引用一个常量不同类型的引用(强制类型转换)本质就是给这个空间起了一个别名并没有太多的内存开销一些比较奇怪的使用引用一个常量int const & i = 1//rightint &j = 1//error其实这里要不要加 & 都无所谓的,注定是一个常量,系统不会给它分配空间但是如果使用第二种写法,就会出现问题,第二种写法扩大了修...

2020-04-08 20:48:20 223

原创 Power Strings POJ - 2406

Given two strings a and b we define ab to be their concatenation. For example, if a = “abc” and b = “def” then ab = “abcdef”. If we think of concatenation as multiplication, exponentiation by a non-ne...

2020-04-05 01:38:57 110

原创 All in All POJ - 1936

You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss...

2020-04-05 00:23:47 130

原创 Blue Jeans POJ - 3080

The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth was populated.A...

2020-04-04 23:49:06 120

原创 Period POJ - 1961

For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2 ...

2020-04-02 23:20:32 107

原创 关于常量(包括常成员函数与this指针)

文章目录意义利用编译机制防止程序员出错只读区域效率高、不分配空间使用声明常量与指针几个指针间的关系指针常量本质保护对象使用常量指针本质保护对象使用指向常量的指针常量就是常量指针+指针常量传递过程中修改权限不能放大意义利用编译机制防止程序员出错尤其在函数传参时,你不知道哪天你自己脑残或者其他人维护你代码时不了解情况,把一个没必要修改的值修改了,有可能会出现难以检查的错误。只读区域效率高、不分...

2020-04-01 12:19:21 903

原创 Spell checker POJ - 1035

You, as a member of a development team for a new spell checking program, are to write a module that will check the correctness of given words using a known dictionary of all correct words in all their...

2020-03-31 22:24:46 202

原创 Rails POJ - 1363

There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to e...

2020-03-31 18:17:02 156

原创 Printer Queue(链式队列实现)

The only printer in the computer science students’ union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get ...

2020-03-31 00:48:42 540

原创 malloc\free new\delete

文章目录共同点功能区别性质malloc\freenew\delete执行new、deletenewdeletemalloc、free错误newmallocdelete和free在成片空间上的释放关系共同点功能都是管理空间的一种手段(堆空间?)区别性质malloc\freec中的函数new\deletec++中的运算符,属于关键字(语言本身的东西)执行new、deletene...

2020-03-30 19:01:13 83

原创 看病要排队

看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。医生在看病时,则会在他的队伍里面选择一个优先权最高的人进行诊治。如果遇到两个优先权一样的病人的话,则...

2020-03-28 23:13:38 180

原创 A Stack or A Queue?

Do you know stack and queue? They’re both important data structures. A stack is a “first in last out” (FILO) data structure and a queue is a “first in first out” (FIFO) one.Here comes the problem: gi...

2020-03-28 22:01:01 162

原创 ACboy needs your help again!

ACboy was kidnapped!!he miss his mother very much and is very scare now.You can’t image how dark the room he was put into is, so poor ????.As a smart ACMer, you want to get ACboy out of the monster’s l...

2020-03-28 21:42:48 154

原创 杭电1062(顺序栈)

InputThe input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow.Each test case contains a single line with severa...

2020-03-28 19:19:26 185

原创 关于数组指针和指针数组的一些理解

文章目录指针数组和数组指针的本质指针数组数组指针例子代码用数组指针管理二维数组空间指针数组指针数组和数组指针的本质指针数组本质上就是一个数组数组的内容是指针声明方式int *a,*b,*c;int *p[10] = {a,b,c};原因:在c中[]的优先级比*要高,p优先与[]结合,形成一个数组,int * 则是修饰这个数组元素的类型数组指针本质上就是一个指针这个指针指向数...

2020-03-25 14:18:41 237

空空如也

空空如也

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

TA关注的人

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