起变量名什么的简直神烦
码龄6年
求更新 关注
提问 私信
  • 博客:30,703
    社区:1
    30,704
    总访问量
  • 82
    原创
  • 69
    粉丝
  • 51
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
加入CSDN时间: 2018-12-28
博客简介:

weixin_44316978的博客

查看详细资料
个人成就
  • 获得26次点赞
  • 内容获得16次评论
  • 获得62次收藏
  • 博客总排名1,179,490名
创作历程
  • 4篇
    2022年
  • 78篇
    2021年
成就勋章
TA的专栏
  • 学习笔记
    2篇

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 2

TA参与的活动 0

创作活动更多

王者杯·14天创作挑战营·第2期

这是一个以写作博客为目的的创作活动,旨在鼓励码龄大于4年的博主们挖掘自己的创作潜能,展现自己的写作才华。如果你是一位热爱写作的、想要展现自己创作才华的小伙伴,那么,快来参加吧!我们一起发掘写作的魅力,书写出属于我们的故事。 注: 1、参赛者可以进入活动群进行交流、分享创作心得,互相鼓励与支持(开卷),答疑及活动群请见https://bbs.csdn.net/topics/619735097 2、文章质量分查询:https://www.csdn.net/qc 我们诚挚邀请你们参加为期14天的创作挑战赛!

60人参与 去参加
  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

从零到一深度学习环境搭建(双系统Ubuntu22.04+PyTorch+PyCharm/vscode+一些杂项)

ubuntu(22.04)https://blog.csdn.net/m0_51233386/article/details/120918319推荐安装比较近的版本,比如现在18.04就太老了…我重装了一次,目前用的是22.04(写于2022.05),之前考虑的是新版本可能教程比较少,但我没想到早年版本很有可能不适配新买的电脑(主要是显卡)。而且很多操作超级麻烦。另外空间分配一定要能多大就多大,后面的docker什么的一个就是六七个G。配置root账户https://blog.csdn.net/y
原创
发布博客 2022.05.04 ·
3169 阅读 ·
1 点赞 ·
1 评论 ·
10 收藏

阿里云服务器部署+docker学习

假设我们有一个服务器 ip xxx.xxx.xxx.xxx 密码 xxxxx 用户 root并且有一个项目hello-world,现在需要使用ssh+docker把它搬到服务器上。远程连接服务器ssh root@xxx.xxx.xxx.xxx !ssh #非第一次连接可用,会自动使用上次ssh的用户名和ip然后按照提示输入密码xxxxx,就可以通过终端操作服务器了。本机和服务器之间的数据传输语法和栗子:scp 本机源路经 用户名@ip:目标路径scp hello-world.zip r
原创
发布博客 2022.04.19 ·
1454 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

浙江大学2022机试总结

其实没有什么好写的,毕竟签了保密协议又不能说题…但是实在不想复习面试了来摸摸鱼(理直气壮)今年PAT不能抵机试了!气!还好我机试也是满分/滑稽介绍一点新发现的好用技巧好了:1.用什么数组加memset,用vector不香吗,我去年九月写的什么鸟玩意。2.用什么sort,用priority_queue不香吗,我去年九月写的什么鸟玩意。3.上面两个数据结构可能要配合pair使用4.上面两个东西都是打leetcode周赛看大佬代码学到的,推荐大家,如果知识点都知道但是写的很慢的话,没事玩玩周赛。(说起
原创
发布博客 2022.03.26 ·
3010 阅读 ·
2 点赞 ·
9 评论 ·
12 收藏

浙计考研初试总结(11408)

初试成绩:406(政治64,英语85,数学124,408 133),还可以了今年够用了2333,写一下经验和踩的坑。首先最重要的,考研复习一定要根据自己的情况来制定!每个人每门课悟性不一样不可一概而论!参考经验时一定要想想清楚和自己情况是否相似。我是浙本,小小跨考,本科是计院的但不学计组和操作系统,然后出来工作了一年本科学的忘得差不多了。八月份开始辞职考研,差不多五个月准备时间。政治:政治就是很典型的复习失败了…我问一个80+学长政治要背多久,他说两个星期就够了,然而!我!一个月都背不下来!政治是真
原创
发布博客 2022.03.17 ·
3382 阅读 ·
9 点赞 ·
2 评论 ·
32 收藏

PAT Advanced Level

满分啦,刷题博客就不更新了。遇到的题目比较简单,用了一半的时间就满分了…(索然无味鸡的感觉)20分是数组,25是栈+排序和图,30是简单的树(而且最大只有20个节点),最大的困难是题意理解错了两次。不知道是不是每一场都这样,反正比练习题简单很多,对时间卡的也很宽松没有遇到超时。可能有用的经验(踩的坑):1.能用C就用C,C肯定是亲儿子。题目的逻辑并不会很复杂,和整实际应用不一样,lua的优势不大,lua字符串处理还很麻烦经常被连词符坑,耗时又久,说不定哪就超时了。2.可以用if(…) while(t
原创
发布博客 2021.09.16 ·
910 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

给倒水小游戏写的暴力破解exe

游戏:简单的DFS搜索。这个代码一个缺点是要倒着看,另一个缺点是有两个瓶子装着同一种颜色并且可以操作时,如果在它们前面还有一个空瓶子时,会先倒进空瓶子,再倒进该倒进的瓶子。最后一个缺点是过于暴力,毫无策略(反正人类玩的十来个瓶子的场景肯定没问题)。#include <iostream>#include <vector>#include <map>using namespace std;int N, max_Volunm, not_empty;vec
原创
发布博客 2021.09.08 ·
2254 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1092 To Buy or Not to Buy

local string1 = io.read('*l');local string2 = io.read('*l');local string1_table = {};for c in string1:gmatch('%w') do string1_table[c] = (string1_table[c] or 0) + 1endlocal missing_count = 0for c in string2:gmatch('%w') do if string1_table
原创
发布博客 2021.09.07 ·
741 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1090 Highest Price in Supply Chain

#include <iostream>#include <vector>#include <cstring>using namespace std;double prices[100000];double price, rate;int suppliers[100000];double max_price = 0;int max_count = 0;void getPrice(int index){ if(prices[index] >
原创
发布博客 2021.09.05 ·
729 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1089 Insert or Merge

#include <iostream>#include <vector>#include <algorithm>#include <cmath>using namespace std;int N;bool isInsertion(int initial[], int partially[]){ bool sorted = true; for(int i = 0; i < N; i++){ if(i &am
原创
发布博客 2021.09.05 ·
781 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1088 Rational Arithmetic

#include <iostream>#include <string>#include <cmath>using namespace std;long int realGetMaxFaction(long int a, long int b){ if (a == 0) return b; if (b == 0) return a; if (a > b) return rea
原创
发布博客 2021.09.05 ·
743 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1087 All Roads Lead to Rome

#include <iostream>#include <map>#include <string>#include <vector>#include <cstring>#include <cmath>#include <algorithm>using namespace std;struct city{ string name; int happiness = 0, cumulative
原创
发布博客 2021.09.04 ·
759 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1086 Tree Traversals Again

#include <iostream>#include <vector>#include <string>using namespace std;struct node{ int left = -1, right = - 1;};node nodes[31];int N, root_id = -1, current_node = -1, current_back = -1;void printTree(int root){ if(r
原创
发布博客 2021.09.03 ·
716 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1085 Perfect Sequence

#include <iostream>#include <vector>#include <algorithm>#include <cmath>using namespace std;int main(){ int N, P, Max = 0; cin>>N>>P; vector<long long int> numbers(N); for(int i = 0; i <
原创
发布博客 2021.09.03 ·
708 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1084 Broken Keyboard

local input = io.read('*a')local n_pos = string.find(input, "
")local string_o = string.upper(string.sub(input, 1, n_pos - 1))local string_t = string.upper(string.sub(input, n_pos + 1, #input - 1))local detected_map = {}local type_index = 1local res
原创
发布博客 2021.09.03 ·
711 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1083 List Grades

#include <iostream>#include <algorithm>#include <vector>#include <string>using namespace std;struct student{ string name, id; int score;};bool comp(student a, student b){ return a.score > b.score;}int main(){
原创
发布博客 2021.09.03 ·
720 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1082 Read Number in Chinese

local numbers = {"yi ", "er ", "san ", "si ", "wu ", "liu ", "qi ", "ba ", "jiu "}local digits = {"", "Shi ", "Bai ", "Qian "}local large_digits = {"", "Wan ", "Yi "}local input = io.read('*a')local negative = ""if string.sub(input, 1, 1) == "-" the
原创
发布博客 2021.09.03 ·
719 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1081 Rational Sum

测试点4:结果是0时要输出一个0;#include <iostream>#include <cmath>using namespace std;long int findMaxFactor(long int a, long int b){ for(int i = 2; i <= max(a, -a) && i <= max(b, -b); i ++){ if(a % i == 0 && b % i ==
原创
发布博客 2021.09.03 ·
729 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1080 Graduate Admission

#include <iostream>#include <vector>#include <algorithm>#include <cstring>using namespace std;struct student{ int id, Ge, Gi; int choices[5];};bool compSt(student a, student b){ if(a.Ge + a.Gi != b.Ge + b.Gi)
原创
发布博客 2021.09.03 ·
767 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1079 Total Sales of Supply Chain

#include <iostream>#include <map>using namespace std;int suppliers[100001];//记录每个人是从谁手里进货的double suppliers_scale[100001] = {0};//记录每个人的卖出比例double price, percentage;void calculateScale(int index){ if(suppliers_scale[index])
原创
发布博客 2021.09.03 ·
865 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

用LUA(和C++)刷PAT (Advanced Level) ——1078 Hashing

布尔数组不初始化时全是false的错觉是谁给我的…记得初始化#include <iostream>#include <cstring>using namespace std;bool prime[10050];void initializePrimes(){ memset(prime, true, sizeof(bool)*10050); prime[0] = false; prime[1] = false; for(int i =
原创
发布博客 2021.09.03 ·
716 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多