自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 折线图的绘制方法

4.读取数据。

2023-12-01 15:04:54 99

原创 markdown的常用语法格式

首先强调文本是用两个星号给包裹住。

2023-12-01 14:47:13 89

原创 任务4-绘制图形

【代码】任务4-绘制图形。

2023-11-25 00:11:56 189

原创 任务3.2 数据加工处理

【代码】任务3.2 数据加工处理。

2023-11-25 00:09:53 53

原创 任务3.1:网络爬虫

【代码】任务3.1:网络爬虫。

2023-11-25 00:09:09 25

原创 任务2 图片

`

2023-11-25 00:08:54 30

原创 任务1:语音识别、语音合成

【代码】任务1:语音识别、语音合成。

2023-11-25 00:06:44 45

原创 python rb读取文件 base64加密 byte.decode解密,base64解密

【代码】python rb读取文件 base64加密 byte.decode解密,base64解密。

2023-11-20 22:55:13 6899

原创 [转载]【Windows】PointerFocus 汉化版免费下载,教学者辅助工具

链接:http://www.lzdcctv.cn/zhsh/20954.html

2023-11-18 17:32:02 161

原创 Excel处理库openpyxl的使用

1 下面的代码就可以获得所有单元格的数据。如果要获得某行的数据呢?给其一个索引就行了,因为sheet.rows是生成器类型,不能使用索引,转换成list之后再使用索引,list(sheet.rows)[2]这样就获取到第二行的tuple对象。

2023-11-16 17:24:47 69

原创 第四届蓝桥杯(国赛)——骰子谜题

#include<bits/stdc++.h>#define ll long longusing namespace std;int a[6];int b[6]= {0,0,0,8,8,8};int c[6]= {1,1,4,5,6,7};int temp[6];int maxx;int check(){ int cnt=0; for(int i=0; i<6; i++) for(int j=0; j<6; j++) .

2021-06-04 15:23:13 201

原创 第五届蓝桥杯(国赛)——海盗分金币(递归写法)

#include<bits/stdc++.h>#define ll long longusing namespace std;int cnt=0;bool check(int x,int cnt){ if(cnt==5) { if(x>1000) return true; else return false; } if((x+1)%5!=0) ret.

2021-06-03 15:03:26 389

原创 2016年第七届蓝桥杯国赛C++ A组 路径之谜(DFS+回溯)

#include<bits/stdc++.h>#define ll long longusing namespace std;const int maxn=25;int arr[maxn][maxn];//n*n矩阵int a[maxn];//西->东int b[maxn];//北->南int n;int dir[4][2]={{-1,0},{1,0},{0,-1},{0,1}};bool vis[maxn][maxn];struct Point{int ...

2021-06-01 16:34:34 259

原创 第九届蓝桥杯(国赛)——阅兵方阵(暴力破解)

#include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ for(int n=1;; n++) { int cnt=0; for(int i=1; i*i<n; i++) { int j=sqrt(n-i*i); if(i*i+j*j==n)

2021-05-26 14:08:56 160

原创 codeblocks快捷键

2021-05-26 13:37:17 104

原创 第十一届蓝桥杯国赛--答疑

#include<bits/stdc++.h>#define ll long longusing namespace std;const int maxn=1010;struct Student{ll s,a,e,total;}stu[maxn];bool cmp(Student a,Student b){return a.total<b.total;}ll ans;int main(){int n;cin>>n;for(int i=0;i&lt

2021-05-24 19:49:01 388

原创 第十一届蓝桥杯国赛 循环小数

#include<bits/stdc++.h>#define ll long longusing namespace std;ll gcd(ll a,ll b){if(b==0) return a;else return gcd(b,a%b);}int main(){ll p=2,q=2,num=16;//cin>>p>>q>>num;ll X,Y;//x分子,y分母ll temp2=pow(10,q-p+1);.

2021-05-24 17:05:51 595

原创 第十一届蓝桥杯(国赛)——扩散

#include<bits/stdc++.h>#define ll long longusing namespace std;#define MAXN 10000int dir[4][2]={ {0,1},{0,-1},{-1,0},{1,0} };bool vis[MAXN][MAXN];int ans=4;struct Point{int x,y,dist;Point(int xx,int yy,int dd){x=xx;y=yy;dist=dd;}};vo

2021-05-23 20:35:53 277

原创 蓝桥杯第十一届国赛 本质上升序列

DFS遍历+SET去重,测试用例是对的#include<bits/stdc++.h>#define ll long longusing namespace std;string s="lanqiao";set<string> ss;void dfs(int d,int len,string str){str+=s[d];//cout<<str<<endl;ss.insert(str); for(int i=d+1;i<len

2021-05-23 17:17:17 177 1

原创 第七届蓝桥杯国赛C语言B组 凑平方数(DFS+全排列)

保证组合是从小到大排列的 防止重复#include<bits/stdc++.h>#define ll long longusing namespace std;int a[10]= {0,1,2,3,4,5,6,7,8,9};ll ans;bool judge(ll n){ return sqrt(n)==(ll)(sqrt(n));}//x记录上个数大小,i记录当前位数void dfs(ll x,int i){ if(i==10) {

2021-05-20 21:23:10 191

原创 Tencent实习笔试题打地鼠(类似迷宫问题,注意dfs的回溯)

在这里插入图片描述#include<bits/stdc++.h>#define ll long longusing namespace std;int mp[15][15];int dir[4][2]= {{0,1},{1,0},{-1,0},{0,-1}};int ans;int maxx;int n,m,T;void dfs(int t,int x,int y){ if(t==T) { if(x==n-1&&y==m..

2021-04-19 14:16:09 130

原创 next_permutation()

当有这种重复字母时 可以直接用next_permutation,因为它是按照字母序大小排的,比如AAC

2021-04-16 21:11:30 88

原创 [蓝桥杯2018初赛]全球变暖

#include<bits/stdc++.h>#define ll long longusing namespace std;const int N=1010;char a[N][N];bool vis[N][N];int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}};int n,init,ans;bool flag;void dfs1(int x,int y){vis[x][y]=true;for(int i=0;i<4;i++){

2021-04-10 20:21:05 113

原创 cin与getline遗留结束符在缓冲区问题

2021-04-09 17:23:42 234

原创 2017、2019蓝桥杯迷宫问题(DFS+BFS)(相关问题汇总)

#include<bits/stdc++.h>#define ll long longusing namespace std;#define N 4#define M 6bool vis[N][M];char G[N][M];char ch[]={'D','L','R','U'};int dir[4][2]={{1,0},{0,-1},{0,1},{-1,0}};struct Point{int x,y;string road;Point(int a,int b...

2021-04-08 17:20:27 723

原创 根据数组创建二叉树,左右子树交换,层序遍历,中序遍历

#include<cstdio>#include<iostream>#include<cstring>#include<string>#include<algorithm>#include<cmath>#include<map>#include<vector>#include<set>#include<queue>#include<sstream>...

2021-03-20 15:05:32 384

原创 ICPC-POJ1579-Function Run Fun

#include<iostream>#include<cstring>#include<cstdio>using namespace std;int f[21][21][21];int w(int a,int b,int c){if(a<=0||b<=0||c<=0) return 1;else if(a>20||b>20||c>20) return w(20,20,20);else if(f[a][b

2021-02-24 17:38:33 98

原创 ICPC-Factorial! You Must be Kidding!!!

#include<iostream>#include<cstdio>#include<cstring>using namespace std;long long Factorial(int n){if(n==0) return 1;else return n*Factorial(n-1);}int main(){int n;while(scanf("%d",&n)!=EOF){// getchar();//

2021-02-23 17:49:41 76

原创 ICPC-Tic Tac Toe

#include<iostream>#include<cstdio>#include<cstring>using namespace std;char plan[4][4];int flag[100];int win(char c){for(int i=0;i<3;i++){ //行相同判断 for(int j=0;j<3&&plan[i][j]==c;j++) if(j==2)

2021-02-23 13:04:44 77

原创 ACM-ICPC-PigLatin

#include<iostream>#include<cstdio>#include<cstring>#include<vector>using namespace std;bool isab(char c){if((c>=65&&c<=90)||(c>=97&&c<=122)){ return true;}return false;}bool isvowel(char c){

2021-02-23 10:28:30 76

原创 ICPC-Specialized Four-Digit Numbers

#include<iostream>#include<cstdio>#include<cstring>#include<vector>using namespace std;bool isab(char c){if((c>=65&&c<=90)||(c>=97&&c<=122)){ return true;}return false;}bool isvowel(char c){

2021-02-23 10:27:36 70

原创 点击不同按钮切换不同div

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> button{ float: left; } div{ position: absolute; top: 40px; width: 100px; height:

2020-11-18 16:21:43 3661 3

原创 解构赋值的应用

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script type="text/javascript"> //利用解构赋值过滤对象中部分属性,两种方法 let student={ age: 18,

2020-11-18 16:19:59 200

原创 java中str.getBytes(“GBK“)与new String(byte[],“GBK”)

链接:https://blog.csdn.net/anxinliu2011/article/details/7515676

2020-11-03 14:31:40 1048

原创 Java 字节流与字符流的区别详解(转)

记录于此,以便查看:https://blog.csdn.net/qq_38737992/article/details/89763911

2020-11-03 11:18:19 135

原创 Node.js npm亲测可用的安装配置(转)

链接:https://huangfuyk.blog.csdn.net/article/details/105028164?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.cha

2020-10-27 16:52:17 123

原创 关于lable标签的for属性

1.有两种写法,一种是写在label外面,然后用for属性将label与表单中元素的id绑定2.第二种写法就直接写在label里面**3.作用:label元素为鼠标改进了可用性,即在label元素内点击文本,就会触发此控件。...

2020-10-26 15:13:10 365

原创 vue-for相关参数顺序(转)

链接:https://www.cnblogs.com/cn-oldboy/p/12689150.html

2020-10-26 10:55:07 122

原创 关于char的双引号与单引号的正确用法(摘)

2020-10-07 20:39:02 11315

原创 百词斩2019校招题目:日期合并问题:给定一周内的某几天,把相邻三天及以上的天进行合并

题目描述:给定一周内的某几天,把相邻三天及以上的天进行合并,比如,周一、周二、周四、周五、周六、周日,就可以合并为:周一、周二、周四-周日输入描述输入第一行为输入数字的个数n(1<=n<=7);第二行n个数,代表1-7种某几个数字,分别表示周一至周日,数字键用空格隔开。输出描述:输出为一行,合并后的数字,三天及其以上被合并后的数字,中间用减号(-)连接,其他用空格分开。#include<cstdio>int main() { int n; scanf("%d",

2020-09-24 17:28:14 301

空空如也

空空如也

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

TA关注的人

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