自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(128)
  • 资源 (1)
  • 收藏
  • 关注

原创 一小时快速入门MyBatis(知识结构清晰)

0基础一小时学会MyBatis,实现增删查改功能,附有相应代码

2022-10-22 20:21:18 585 1

原创 快速掌握JDBC

快速掌握JDBC

2022-10-15 10:37:16 308

原创 Tomcat服务器

tomcat简介

2022-10-10 16:02:02 357

原创 codeforces round 820 A~F

2022-10-01 12:09:54 280

原创 codeforces educational round 132(ABCDE没有F)

cf edu 132

2022-08-27 16:16:33 101

原创 2022杭电多校第八场

2022杭电多校第八场

2022-08-11 20:43:00 336

原创 2022杭电多校第一场

2022杭电多校第一场

2022-08-01 11:25:36 161

原创 2022牛客暑假多校第一场ADJI

牛客多校第一场

2022-07-19 11:02:07 135

原创 codeforces educational round 131 ABCDEF

codeforces educational round 131 ABCDEF全部题解

2022-07-18 23:18:32 138

原创 codeforces round #797 ABCDEFG

codeforces round #797 ABCDEFG题解及代码

2022-07-14 17:32:05 120

原创 codeforces round #805 ABCDEFG

codeforces round#805 div3 ABCDEFG 的题解

2022-07-14 16:22:57 242

原创 c++文件操作

文章目录文件流 类逐个读取文件内容和读取一行内容文件流 类c++对文件操作是通过数据流实现的,使用的类是ifstream和ofstream。创建时直接声明即可。例如:ifstream IF;ofstream OF;使用文件流打开文件时,需要用open方法open的函数原型是:open(string 文件路径,ios::打开方式);打开方式有很多种,常用的有:os::in 只读ios::out 只写ios::app

2022-05-12 21:19:19 419

原创 codeforces round 771

cf771

2022-05-11 12:45:57 275

原创 atcoder beginner contest 247 ABCDEF

文章目录ABCDEF

2022-05-05 10:38:52 132

原创 2015-2016 Northwestern European Regional Contest (NWERC 2015)

AE题,剩下还没写

2022-05-05 10:36:09 151

原创 verilog基础题

verilog语法基础题

2022-04-27 10:26:52 1203

原创 atcoder beginner contest 242

文章目录ABCDEFGA#include<bits/stdc++.h>using namespace std;typedef long long ll;const int P = 998244353;double solve(){ double a,b,c,x; cin>>a>>b>>c>>x; if(x<=a) return 1; else if(x>b) return 0; els

2022-03-19 09:56:29 201

原创 Unity 2D检测物体碰撞

文章目录添加物理脚本使用脚本检测碰撞添加物理脚本Unity2D中,检测物体碰撞首相要给物体添加两个属性分别是:rigibody和collider,刚体和碰撞器。collider有不同的形状,形状越复杂,开销越大。collider上可以勾选is Trigger选项,如果勾选,Unity的物理引擎就不会启动,反之物理引擎会启动,如果碰撞会有力的作用,导致物体位移。使用脚本检测碰撞如果勾选is Trigger选项,就需要使用OnTriggerEnter函数进行检测。反之使用OnCollisionE

2022-02-27 22:55:03 6604

原创 Unity常用API

文章目录Unity核心类图ComponentTransformGameObjectObjectTimeUnity核心类图Unity脚本从左下角的MonoBehavior中继承。Component获取component类下组件的方法:this.GetComponent<组件名称>().变量名称;获取所有组件的方法: var allComponent = this.GetComponents<Component>(); foreach(va

2022-02-27 22:54:21 395

原创 Unity——通过脚本更新游戏属性

文章目录FixedUpdateupdate输入事件场景渲染FixedUpdate固定更新,每0.02秒调用一次。适合对物体进行物理操作,不会受到渲染的影响。 private void FixedUpdate() { }update每帧执行一次,时间间隔不固定处理游戏逻辑 private void Update() { }还有LateUpdate,在update之后调用。输入事件OnMouseEnter()鼠标移入到colider时调用OnMouseOve

2022-02-27 22:53:51 306

原创 unity脚本

文章目录脚本的创建修改脚本模板脚本中的变量脚本生命周期脚本的创建在assert文件夹下找到script文件夹,右键creat->C#script双击即可通过visual studio打开注:文件名和类名必须一致using System.Collections;using System.Collections.Generic;using UnityEngine;public class SquareBehaviourScript : MonoBehaviour{ // St

2022-02-27 22:53:11 1707

原创 c#语言基础——数组

文章目录一维数组的定义二维数组一维数组的定义定义格式数组类型[] 数组名例如: char[] s;//定义一个字符型一维数组 int[] a;//定义一个整形一维数组 string[] b;//定义一个字符串型一维数组数组的初始化: int[] a;//定义一个整形一维数组 a = new int[5];//初始化一个长度为5的数组数组的访问数组直接通过下标访问二维数组定义的格式:数据类型 [ , ] 数组名;例如: char[,] a;/

2022-02-27 22:52:17 416

原创 基于selenium的python浏览器脚本制作教程

注:本文仅用于学习用途文章目录注:本文仅用于学习用途python环境配置编写python脚本(以pycharm为例)使用脚本打开指定网址使用python脚本找到前端对应的元素使用python脚本模拟输入和点击使用Python进行不同网页之间的切换python环境配置首先安装制作脚本所需要的python库selenium、pyquery、pymysql、lxml直接pip安装即可。之后安装浏览器驱动。首先打开google浏览器,输入地址chrome://version/第一行就是浏览器的版本

2022-02-27 17:06:57 3184

原创 Codeforces Round 770全部

文章目录ABCDEFA执行一次操作后字符串会编程镜像串,因此,答案只有1和2两种,分类讨论即可。#include<bits/stdc++.h>using namespace std;typedef long long ll;#define endl '\n'const int mod=998244353;const int N=200100;int solve(){ int n,k; cin>>n>>k; string a,b;

2022-02-19 11:23:09 364

原创 buct寒假集训——可持久化数据结构

文章目录超级马里奥超级马里奥hdu4417正解是用可持久化线段树,时间复杂度 nlogn但是这题的数据好像比较弱,用莫队 nsqrt(n)logn也能过。莫队:#include <bits/stdc++.h>#include<ext/pb_ds/tree_policy.hpp>#include<ext/pb_ds/assoc_container.hpp>using namespace std;using namespace __gnu_pbds;ty

2022-02-10 12:00:45 344

原创 buct寒假集训——线段树

文章目录敌兵布阵简单的整数问题数据结构难题敌兵布阵HDU1166树状数组即可#include<bits/stdc++.h>using namespace std;typedef long long ll;#define endl '\n'#define lowbit(x) (x&-x)const int mod=998244353;const int N=50010;int a[100100];int c[100100];int n;//a为原数组,c为树状数

2022-02-08 13:10:12 820

原创 codeforces round #769 ABCD

文章目录ABCDA对于一个字符串,如果长度大于等于3,那么必然存在回文子串。如果长度是2,如果两个字母相同,就存在回文子串。#include<bits/stdc++.h>using namespace std;typedef long long ll;#define endl '\n'const int mod=998244353;const int N= 500100;void solve(){ string s; int n; cin>>n&

2022-02-06 13:55:37 514

原创 Educational Codeforces Round 122 (Rated for Div. 2)

文章目录ABCDA个位从0到9进行枚举,直到能被7整除#include<bits/stdc++.h>using namespace std;typedef long long ll;#define endl '\n'const int N=100100;int solve(){ int n; cin>>n; if(n%7==0){ return n; } else { n=n/10*10; for( i

2022-02-06 13:54:47 192

原创 vector和array

文章目录模板类vector模板类array模板类vector模板类vector类似于string类,也是一种动态数组。vector使用new和delete来管理内存,但是这种工作是动态完成的。声明vector的格式:vector<typeName> vt(n_elem);模板类arrayarray的长度是固定的,使用静态内存分配,效率于数组相同。声明arry的格式:array<typeName, n_elem> arr;与vector不同,n_elem不能是变量

2022-02-03 16:23:20 766

原创 buct寒假集训——树状数组

文章目录数星星公路交叉数数星星poj2352#include <bits/stdc++.h>#include<ext/pb_ds/tree_policy.hpp>#include<ext/pb_ds/assoc_container.hpp>using namespace std;using namespace __gnu_pbds;tree<pair<int,int> ,null_type,less<pair<int,int&

2022-01-27 11:57:05 929

原创 buct寒假集训——lca

文章目录最近公共祖先树上距离以下代码使用的是倍增算法求lca最近公共祖先poj1330#include<bits/stdc++.h>using namespace std;const int N=10010;const int M=20010;int h[N], ne[M], to[M];int cnt, root;int fa[N][17];void add(int a, int b){ to[cnt] = b,ne[cnt] = h[a],h[a] = cnt

2022-01-24 13:03:02 325

原创 buct寒假集训——RMQ

#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N= 200100;int st_min[N][20];int st_max[N][20];int bin[20],Log[N];int a[N];void init(){ bin[0]=1; for( int i=1;i<20;i++) bin[i]=bin[i-1]*2;//计算2的i次方 Log[

2022-01-19 18:43:41 286

原创 buct寒假集训——优先队列

文章目录第k大的数围栏修复由于优先队列和平衡树在时间复杂度上没有显著的差距,代码中全都用set代替的优先队列。第k大的数hdu4006#include <bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main(){ int n; cin>>n; multiset<int>se; for( int i=0;i<n;i++){

2022-01-18 14:24:03 380

原创 buct寒假集训——并查集

文章目录通畅工程方块栈食物链帮派通畅工程hdu1232如果两个点集连通在一起,就合并在同一个集合,最终查看集合的总数。#include<bits/stdc++.h>using namespace std;typedef long long ll ;const int N=1010;int fa[N];int find(int x){ if(x!=fa[x]) fa[x]=find(fa[x]); return fa[x]; }void merge( int

2022-01-18 14:19:16 189

原创 c#语言基础——的数据类型与数据类型转换

2022-01-17 17:30:33 206

原创 Codeforces round #764 ABCDG

文章目录ABCDGA最大值减最小值#include<bits/stdc++.h>using namespace std;int main(){ int t; cin>>t; while(t--){ int minn=0x3f3f3f3f,maxn=0; int n; cin>>n; for( int i=1;i<=n;i++){ int x;

2022-01-15 17:29:06 299

原创 Codeforces Good Bye 2021: 2022 is NEAR ABCDE

文章目录A. Integer DiversityB. Mirror in the StringC. Representative EdgesD. Keep the Average HighE. Lexicographically Small EnoughA. Integer Diversity#include<bits/stdc++.h>using namespace std;typedef long long ll;const int inf=0x3f3f3f3f;const in

2022-01-03 09:56:21 470

原创 Codeforces Round #762 (Div. 3) 全部题解

文章目录A. Square String?B. Squares and CubesC. Wrong AdditionD. New Year's ProblemE. MEX and IncrementsF. Let's Play the Hat?H. Permutation and QueriesA. Square String?#include<bits/stdc++.h>using namespace std;int main(){ int t; cin>>

2021-12-28 20:01:29 417

原创 Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3)ABCDE

文章目录A. Life of a FlowerB. Array EversionC. Minimize DistanceD. Yet Another Sorting ProblemA. Life of a Flower#include<bits/stdc++.h>using namespace std;typedef unsigned long long ull;const int N=110;int w[N];int main(){ int t; cin>>t;

2021-12-27 20:55:07 216

原创 Educational Codeforces Round 119 ABCDE

文章目录A. Equal or Not EqualB. Triangles on a RectangleD. Exact ChangeE. Replace the NumbersA. Equal or Not Equal#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=100100;int w[N],vis[N];int main(){ int t; cin>>t;

2021-12-27 17:39:51 172

算法设计与分析课程复习提纲

算法设计与分析课程复习提纲

2022-05-07

空空如也

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

TA关注的人

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