自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 AlignedReID: Surpassing Human-Level Performance in Person Re-Identification

AlignedReID: Surpassing Human-Level Performance in Person Re-IdentificationAbs本文提出一种新的AlignedReID方法,提取全局特征,并与局部特征联合学习。全局特征学习从局部特征学习中获益很大,它通过计算两组局部特征之间的最短路径来进行对齐/匹配,而不需要额外的监督。在联合学习之后,我们只保留全局特征来计算图像...

2022-09-13 21:49:00 1217

原创 Pytorch

Pytorch????Tensor对tensor的操作很多,从接口的角度来划分,可以分为两类:(1)torch.function,如torch.sum、torch.add等,(2)tensor.function,如tensor.view、tensor.add等。这些操作对大部分tensor都是等价的,如torch.add(x,y)与x.add(y)等价。实际使用中可以根据个人爱好选择。如果...

2022-08-17 16:33:00 344

原创 卷积神经网络

卷积神经网络从全连接层到卷积全连接神经网络确实可以解决很多问题,但是缺点也是非常明显。首先,当输入的数据比较大时,全连接层需要处理的参数就会变得非常大,比如当传入的图像达到1e6像素时,即使隐藏层只有1000,每一层的连接也会达到1e9的数量级,显然如此巨大数量级的参数计算是不合理的。还有很重要的一点就是全连接层神经网络会失去数据的结构性。那么很自然的就会引入卷积神经网络这一概念。卷积神...

2022-08-11 16:39:00 172

原创 何为卷积——从卷积到卷积神经网络

卷积概念理解的转变:1、不稳定输入 稳定输出 求系统存量某人会在一些时刻进行进食。且其每时每刻都在消化,当前点消化的速率与进食时间有关。2、周围像素点如何产生影响不仅是时间上的影响,也可以是距离影响(周围点对当前的影响)。3、一个像素点如何试探主动试探、选择,提取特征值,进行相应的匹配。...

2022-07-25 09:10:00 145

原创 《将博客搬至CSDN》

rt

2022-04-04 21:48:00 43

原创 2019ICPC 上海现场赛

网址:https://ac.nowcoder.com/acm/contest/4370B. Prefix Code阅读理解,用个set维护下就行#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath&gt...

2020-11-26 21:41:00 82

原创 Codeforces Round #686 (Div. 3)

Codeforces Round #686 (Div. 3)温暖的Div3A - Special Permutation构造一个序列每个数字和他的下标不等#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <c...

2020-11-26 14:55:00 123

原创 Codeforces Round #685 (Div. 2)

Codeforces Round #685 (Div. 2)A - Subtract or Divide可以除掉很大的因数,答案只会是0,1,2,3#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath...

2020-11-22 01:06:00 81

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

A - Robot Program直接跳#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include <map> #incl...

2020-11-21 19:35:00 51

原创 Codeforces Round #654 (Div. 2)

Codeforces Round #684 (Div. 2)A - Buy the String贪心模拟#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queu...

2020-11-19 10:56:00 98

原创 Codeforces Round #683 (Div. 2, by Meet IT)

Codeforces Round #683 (Div. 2, by Meet IT)A - Add Candiessolved发现只要进行n次增加,第i次增加时选择第i个数即可#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>...

2020-11-17 21:44:00 80

原创 Good Bye 2018

Good Bye 2018A - New Year and the Christmas Ornament暴力 solved#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include...

2020-11-10 22:01:00 54

原创 Educational Codeforces Round 52

1065A - Vasya and Chocolate贪心比较按照哪种买法最优然后全部按照最优买法买即可(有剩余就单独买)solved#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#i...

2020-11-08 01:08:00 63

原创 Educational Codeforces Round 38(Div2)

A - Word Correction注意题目中把'y'也算元音 solved#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include...

2020-11-07 10:36:00 53

原创 Daily Codeforces

Daily CodeforcesEducational Codeforces Round 38(Div2) solved 3 of 7 rk 863Educational Codeforces Round 52(Div2) solved 3 of 7 rk 2079Good Bye 2018 solved 4 of 8 rk2218Codeforces Round ...

2020-11-07 08:55:00 70

原创 AcWing 356. 次小生成树

AcWing 356. 次小生成树一道蛮经典的题目,随手记录下。原题链接:https://www.acwing.com/problem/content/description/358/题目描述:给定一张 N 个点 M 条边的无向图,求无向图的严格次小生成树。设最小生成树的边权之和为sum,严格次小生成树就是指边权之和大于sum的生成树中最小的一个。注意本题所求的次小生成树是严格次小的...

2020-08-12 21:21:00 44

原创 洛谷P1084 疫情控制

原题链接:https://www.luogu.com.cn/problem/P1084//洛谷的紫题好难啊QAQ (还是我太菜了)P1084 疫情控制 (二分+树上倍增+贪心)题目描述H国有n个城市,这n个城市用n−1条双向道路相互连通构成一棵树,1号城市是首都,也是树中的根节点。H国的首都爆发了一种危害性极高的传染病。当局为了控制疫情,不让疫情扩散到边境城市(叶子节点所表...

2020-08-12 01:54:00 51

原创 主席树入门\模板

主席树好难,学了好久才学会,推荐个不错的博客https://blog.csdn.net/ModestCoder_/article/details/90107874我这边就不赘述了。AcWing 255. 第K小数经典的主席树入门题离散化+模板 (????我的板子)#include <stdio.h>#include <iostream>#include <...

2020-07-24 02:07:00 32

原创 poj 2152 Fire

原题链接:http://poj.org/problem?id=2152一道我觉得很难的树形dp,想了很久都想不出状态转移方程式,搜了题解之后也看了很久。思路: 用dp[u][i]表示以u为根的子树满足条件,并且结点u依赖于结点i的最小花费。   用best[u]表示以u根的子树满足条件的最小花费,那么best[u]=min(dp[u][i])。   求best[u]时,先跑一...

2020-07-07 20:43:00 92

原创 Color Graph

原题链接https://ac.nowcoder.com/acm/contest/4370/K去年上海现场赛的一道签到题太菜了对着这题自闭好久现在看其实就是一道二分图判断奇环,唯一要思考的地方是怎么枚举可行的情况。解法是因为n很小所以可以二进制暴力枚举染色为1的点然后暴力判断(其实也不难想)#include <stdio.h>#include <iostream&g...

2020-07-07 14:31:00 31

原创 CodeForces - 85E 二分+二分图

原题链接:https://codeforces.com/problemset/problem/85/E很板子的一道题,二分+二分图判断。坑点是这道题点的个数比较多,建图的时候不能用临界表来存图,直接用临界矩阵来存就行。这样第一问就解决了。第二问的话可以发现答案就是2的连通块数次方,对满足答案的limit跑一遍就可以得到。#include <stdio.h>#include...

2020-07-07 12:51:00 51

原创 Acwing.257关押罪犯 二分+二分图

题目:S 城现有两座监狱,一共关押着 N 名罪犯,编号分别为1~N。他们之间的关系自然也极不和谐。很多罪犯之间甚至积怨已久,如果客观条件具备则随时可能爆发冲突。我们用“怨气值”(一个正整数值)来表示某两名罪犯之间的仇恨程度,怨气值越大,则这两名罪犯之间的积怨越多。如果两名怨气值为 c 的罪犯被关押在同一监狱,他们俩之间会发生摩擦,并造成影响力为 c 的冲突事件。每年年末,警...

2020-07-07 12:41:00 50

原创 Chika and Friendly Pairs

网课是真的烦人,我不想学习,我只想打代码啊。————————————————————————————这题是2019湖南ccpc邀请赛的C题,比赛时的定位是一道银牌数据结构题。这场比赛是我人生第一场现场赛,现在回忆起来当时真的是惨不忍睹。。。。。。最搞笑的是我当时竟然对着这道题想了好久,还是在完全不知道做法的情况下在那里乱搞,真的是有够天真。题目链接:http://acm.hdu.edu.c...

2020-02-25 20:53:00 41

原创 HH的项链

第一次看到这题应该是在大一,当时想学一手莫队,但是由于过于菜(其实主要是心理上的原因)没有学成。原题链接https://www.luogu.com.cn/problem/P1972这道题的做法还算蛮多的,首先,这道题很明显的一道莫队的板子题,也可以用主席树来维护。我后来看了题解发现还可以巧妙的运用树状数组来解决(但是我这种没有脑子的选手是想不出来的)这边会陆续更新三种解法。1.莫队众所...

2020-02-24 13:28:00 34

原创 Poj1151——Atlantis

Poj1151——Atlantis(Acwing247.亚特兰蒂斯)DescriptionThere are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Someof these texts even include maps of parts of the isl...

2020-02-20 23:45:00 179

原创 The Meeting Place Cannot Be Changed

题面:The main road in Bytecity is a straight line from south to north. Conveniently, there are coordinates measured in meters from the southernmost building in north direction.At some points on the ...

2020-01-15 14:03:00 55

原创 第七届福建省大学生程序设计竞赛

训练赛 ——第七届福建省大学生程序设计竞赛rank 68/250E - Card Game (Third Edition)一号签到题solved by mwh 16:05=#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#inc...

2019-11-27 17:08:00 41

原创 codeforces - 1256 (div3)

令我感到非常自闭的一场div3反正没打完就溜了A -Payment Without Change思维#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <que...

2019-11-19 16:56:00 46

原创 codeforces - 1253 (div2)

A - Single Pushif 、 else 特判#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include <stack&...

2019-11-19 16:24:00 55

原创 codeforces - 1257(div2)

A-Two Rival Students贪心,判断一下左边和右边#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include <s...

2019-11-19 16:04:00 31

原创 Comet OJ - Contest #14 B

夕日的光辉#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include <stack>#pragma GCC optimize...

2019-11-08 22:01:00 32

原创 codeforces - 1245 (div2)

A - Good ol' Numbers Coloring直接判断两个数是否互质#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#includ...

2019-11-05 16:22:00 64

原创 POJ-3662 通信线路

摘要:简单来讲就是在无向图上求出一条从1到N的路径,使路径上第K+1大的边权尽量小。第K大的尽量小,这种表述就容易让人想到二分。蓝书上的解释:因为支付的钱更多时,合法的升级方案一定有包含子花费更少的升级方案,所以答案具有单调性。那么我们只要把权值大于mid的路径权值设为1,小于mid的置为0,求1到n的最短路是否不超过n即可。#include <stdio.h>#in...

2019-10-19 19:13:00 70

原创 富豪凯匹配串

题目描述:链接:https://ac.nowcoder.com/acm/contest/1114/C来源:牛客网有n个长度为m的文本串,每个串只含有'0'和'1'。接下来有Q次询问,每次给出一个长度为m的字符串,且只含有'0','1'和'_'。如10_1_1。下划线可以匹配'0'或'1'。即10_1_1可以匹配101111,101101,100111,100101四种串。每次询问求出n个文本...

2019-10-14 13:33:00 29

原创 2018 ccpc final

2018 CCPC FINALkunkun全球后援队训练赛赛A.签到笨比mwh wa了两发#include <stdio.h>#include <iostream>#include <cstring>#include <algorithm>#include <cmath> #pragma GCC optimize(...

2019-10-13 18:32:00 96

原创 蒟蒻的个人第一篇博客

蒟蒻的个人第一篇博客~纪念

2019-07-21 12:18:00 43

空空如也

空空如也

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

TA关注的人

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