自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/curre

anaconda创建环境失败win+r%HOMEPATH%找到.condarc内容更换:channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

2022-04-19 10:38:15 1312

原创 pip install connect time out

pip install 下载超时pip install xxxxxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

2022-03-30 14:04:24 955

原创 linux torch==1.4.0 torchvision==0.5.0 镜像下载

pip3 install torch==1.4.0 torchvision==0.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

2021-08-17 17:14:18 906

原创 深入剖析Kubernetes 学习笔记

深入理解K8sNamespace的作用是”隔离“Mount Namespace:用于让被隔离进程只看到当前Namespace里的挂载点信息。Network Namespace:用于让被隔离进程看到当前Namespace里的网络设备和配置。Cgroups的作用是“限制”(围墙)Cgroups的子系统:blkio:为块设备设定I/O限制,一般用于磁盘等设备; cpuset:为进程分配单独的CPU核和对应的内存节点; memory:为进程设定内存使用的限制。...

2020-07-02 10:46:10 213

原创 阿里巴巴-飞猪 电话面试

问啥啥不会,好惨一女的。我回忆一下问了我什么。(无序)1、数组与链表的区别2、栈与队列的区别。适用场合。3、乐观锁、悲观锁,死锁的条件、原因。4、堆排序和快速排序的原理,时间复杂度、空间复杂度和适用场合。5、java的内存模型。6、C++内存模型。7、volatile8、计算机领域对什么感兴趣。9、遇到难题是怎么解决的。10、网络体系结构。11、...

2019-03-13 20:24:36 1826 2

原创 欧拉函数的各种性质

欧拉函数欧拉函数,符号记作φ(n),其值为小于n且与n互质的数的个数性质①对于质数nφ(n)=n−1     ②对于 ③【积性函数】对于gcd(n,m)=1④【计算式】对于 ⑤【欧拉定理】对于互质的a,m  (mod m)⑥小于n且与n互质的数的和:     ⑦对于质数p若n mod p...

2019-01-23 22:37:19 317

原创 ccpc-wannafly winter camp day2 div2 B Erase Numbers I【已修改】

Erase Numbers I已经提交已经通过7.82%Total Submission:422Total Accepted:33题目描述给定n个正整数 a1​,a2​,⋯,an​,它们组成了序列A。你的任务是删除其中恰好两个数字,使得A中剩余的数字连起来的所表示的数字最大,并给出这个值。严格来讲,如果剩余数字在AA中的下标为 p1​,p2​,⋯,pm...

2019-01-22 00:20:07 320 3

原创 ccpc-wannafly winter camp day2 div2 A Erase Numbers II

Erase Numbers II已经提交 已经通过10.38%Total Submission:1204Total Accepted:125题目描述 给定 nn 个正整数 a_1, a_2, \cdots, a_na1​,a2​,⋯,an​,它们组成了序列 AA。你的任务是删除其中 (n - 2)数字,使得 A中剩余的数字连起来的所表示的数字最大,并给出这个值。...

2019-01-21 23:16:38 262

原创 2018Nowcoder Girl C 题解

题意:有N个建筑,若连续的X个建筑中,存在C个增幅塔,那么X个建筑都受到增幅;除增幅塔外还有M个塔基在位置ai上问至少还要建多少增幅塔才能使路上所有建筑物都受到增幅。思路:标记增幅塔位置,区间c个建筑物向右推进,如果当前区间增幅塔数少于X个,从后往前加增幅塔直到等于X个;向右推进方法,去掉左塔,加上右塔。具体看代码代码:#include <bits/stdc++.h...

2018-12-24 21:00:45 401 2

原创 2018Nowcoder Girl D 题解

题意:输入n,n个数  ;输出对应的思路:hi:{2 3 5 9}hi+1:{3 4 6 10}EX:hi+1中(这里的贡献 即 hi/(hj+1)  如 2/3=0 3/3=1 5/3=1 9/3=3)3对于0 1 2 的贡献为0 ;3,4,5的贡献为1;6,7。8 的贡献为2 ;9,10,11的贡献为3 仅记 3,6,9.....即对3的倍数的贡献为了降低复杂度...

2018-12-24 16:41:12 205

原创 2018Nowcoder Girl A - 听歌

大致题意:一首歌的长度为T,下载了S秒后开始播放,播放到没被下载的部分就从头开始播放。定义q秒钟内下载(q-1)秒问:一共从头播放了几次 思路:q秒钟内下载(q-1)秒(即播放走q步,下载走(q-1)步)追击问题。s+v1*t1=v2*t2回到终点ans++s=v2*t2直到总路程<=0代码:#include<bits/stdc++.h>...

2018-12-24 14:38:51 350

原创 2017Nowcoder Girl F - 美丽的项链

题目描述 妞妞参加了Nowcoder Girl女生编程挑战赛, 但是很遗憾, 她没能得到她最喜欢的黑天鹅水晶项链。于是妞妞决定自己来制作一条美丽的项链。一条美丽的项链需要满足以下条件:1、需要使用n种特定的水晶宝珠2、第i种水晶宝珠的数量不能少于li颗, 也不能多于ri颗3、一条美丽的项链由m颗宝珠组成妞妞意识到满足条件的项链种数可能会很多, 所以希望你来帮助她计算一共有多...

2018-12-15 16:37:24 372

原创 2017Nowcoder Girl E - 勇敢的妞妞(状态压缩+dp)

题目描述 美丽的牛家庄受到了外星人的侵略, 勇敢的妞妞要上战场抵御侵略。 在妞妞上战场前, 村长牛牛给了妞妞N件装备, 妞妞需要选择其中的K件,装备在身上提升自己的战斗力。每件装备有5种属性增幅值,对于第i件装备它的属性增幅值为(ri1, ri2, ri3, ri4, ri5), 分别代表该装备对不同的属性值增幅。当妞妞装备多件装备的时候,由于装备之前会互相影响, 对于每种属性值的...

2018-12-15 16:35:17 313

原创 2017Nowcoder Girl D - 打车

题目描述 妞妞参加完Google Girl Hackathon之后,打车回到了牛家庄。妞妞需要支付给出租车司机车费s元。妞妞身上一共有n个硬币,第i个硬币价值为p[i]元。妞妞想选择尽量多的硬币,使其总价值足以支付s元车费(即大于等于s)。 但是如果从妞妞支付的这些硬币中移除一个或者多个硬币,剩下的硬币总价值还是足以支付车费的话,出租车司机是不会接受的。例如: 妞妞使用价值为2...

2018-12-15 16:12:03 179

原创 2017Nowcoder Girl C - 排列

题目描述 妞妞得到一个(1~n)的排列p1, p2, p3,...,pn, 听村里的老人牛牛说如果让这个排列变为:对于所有的1 <= i <= n, 都满足pi ≠ i, 就可以获得Google Girl Hackathon的入场券。 妞妞仅允许的操作是: 交换排列中两个相邻的元素, 并且妞妞允许做这个操作任意次。 但是Google Girl Hackathon...

2018-12-15 16:08:08 499

原创 2017Nowcoder Girl B - 勇气获得机

题目描述 妞妞听说Nowcoder Girl女生编程挑战赛要开始了, 但是她没有足够的勇气报名参加, 牛牛为了帮助妞妞,给她准备一台勇气获得机。初始的时候妞妞的勇气值是0, 勇气获得机有两个按钮:1、N按钮: 如果当期拥有的勇气值为x, 按下之后勇气值将变为2*x+1,2、G按钮: 如果当前拥有的勇气值为x, 按下之后勇气值将变为2*x+2,勇气值过高也会膨胀,所以妞妞需要将自己的...

2018-12-15 16:03:57 384

原创 2017Nowcoder Girl A - 平方数

题目描述 如果一个整数x是某个整数的平方, 我们就把整数x称为平方数。妞妞最喜欢的数字就是平方数, 妞妞现在给你一个N, 妞妞希望你能帮助她找出不大于N的最大的平方数。输入描述:输入包括一行, 包括一个正整数N(1 <= N <= 10^9), 表示妞妞给的数字N。输出描述:输出一个整数, 即不大于N的最大的平方数。示例1输入复制10输...

2018-12-15 15:59:04 213

原创 ACM-ICPC国际大学生程序设计竞赛北京赛区(2017)网络赛 - Minimum【线段树】

#1586 : Minimum时间限制:1000ms单点时限:1000ms内存限制:256MB描述You are given a list of integers a0, a1, …, a2^k-1.You need to support two types of queries:1. Output Minx,y∈[l,r] {ax∙ay}.2. Let ax=y....

2018-11-08 14:33:26 200

原创 ACM-ICPC国际大学生程序设计竞赛北京赛区(2017)网络赛 - Territorial Dispute 【几何】

#1582 : Territorial Dispute时间限制:1000ms单点时限:1000ms内存限制:256MB描述In 2333, the C++ Empire and the Java Republic become the most powerful country in the world. They compete with each other in the ...

2018-11-08 13:57:25 223

原创 HDU - 2601 An easy problem

An easy problem Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10698    Accepted Submission(s): 2728   Problem Description ...

2018-10-12 17:59:56 219

原创 HDU-2604 Queuing

Queuing Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7344    Accepted Submission(s): 3233   Problem Description Queues a...

2018-10-12 17:51:23 192

原创 ACM-ICPC 2018 徐州赛区网络预赛 F. Features Track

Morgana is learning computer vision, and he likes cats, too. One day he wants to find the cat movement from a cat video. To do this, he extracts cat features in each frame. A cat feature is a two-dime...

2018-09-11 19:45:04 153

原创 ACM-ICPC 2018 徐州赛区网络预赛 I. Characters with Hash

Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, he calls Kimura KMR, and calls Suzuki YJSNPI. One day he read a book about ...

2018-09-11 19:37:32 192

原创 PAT (Advanced Level) Practice 1119 Pre- and Post-order Traversals(30 分)

1119 Pre- and Post-order Traversals(30 分)Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder tr...

2018-08-31 09:59:43 171

原创 PAT (Advanced Level) Practice 1118 Birds in Forest(25 分)

1118 Birds in Forest(25 分)Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the ...

2018-08-31 09:53:15 171

原创 PAT (Advanced Level) Practice 1117 Eddington Number(25 分)

1117 Eddington Number(25 分)British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number", E -- that is, the maximum int...

2018-08-31 09:50:39 184

原创 PAT (Advanced Level) Practice 1116 Come on! Let's C

1116 Come on! Let's C(20 分)"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of the contest is for fun,...

2018-08-31 09:45:25 233

原创 PAT (Advanced Level) Practice 1123 Is It a Complete AVL Tree(30 分)

1123 Is It a Complete AVL Tree(30 分)An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they d...

2018-08-29 11:49:58 158

原创 PAT (Advanced Level) Practice 1122 Hamiltonian Cycle(25 分)

1122 Hamiltonian Cycle(25 分)The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle".In this problem, you are supp...

2018-08-29 11:19:30 196

原创 PAT (Advanced Level) Practice 1121 Damn Single(25 分)

1121 Damn Single(25 分)"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input S...

2018-08-29 11:14:16 187

原创 PAT (Advanced Level) Practice 1120 Friend Numbers(20 分)

1120 Friend Numbers(20 分)Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers since 1+2+3...

2018-08-29 11:11:56 146

原创 1135 Is It A Red-Black Tree 1135 Is It A Red-Black Tree(30 分)

1135 Is It A Red-Black Tree(30 分)There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties:(1) Every node is either red or black....

2018-08-28 11:13:11 463

原创 PAT (Advanced Level) Practice 1134 Vertex Cover(25 分)

1134 Vertex Cover(25 分)A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with several vertex sets, you ...

2018-08-28 11:07:26 260

原创 PAT (Advanced Level) Practice 1133 Splitting A Linked List

1133 Splitting A Linked List(25 分)Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all the values in...

2018-08-28 11:03:06 150

原创 PAT (Advanced Level) Practice 1132 Cut Integer

1132 Cut Integer(20 分)Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B ...

2018-08-28 10:55:44 239

原创 To Fill or Not to Fill

                                                                                               To Fill or Not to Fill                                                                       Time Limit...

2018-07-28 13:16:20 136

原创 FZU-2195 检查站点

F - 检查站点 FZU - 2195 在山上一共有N个站点需要检查,检查员从山顶出发去各个站点进行检查,各个站点间有且仅有一条通路,检查员下山前往站点时比较轻松,而上山时却需要额外的时间,问最后检查员检查完所有站点时所需要的额外时间最少是多少。Input包含多组数据 每组数据输入第一行为一个整数N 表示站点个数(1Output输出一

2017-08-11 13:57:40 217

原创 FZU-2193 So Hard

D - So Hard FZU - 2193 请将有限小数化为最简分数。Input一个整数n 表示需要转化的小数个数; 接下来n行,每行有一个有限小数。(保证小数位数不超过9位)Output输出有n行,每行为小数对应的最简分数Sample Input20.50.4Sample Output1/22/5Hint注意精度

2017-08-11 12:54:24 305

原创 FZU-2192 位置信息挖掘

C - 位置信息挖掘 FZU - 2192 O2O即Online To Offline,是指将线下的商务机会与互联网结合,让互联网成为线下交易的前台。这些商务机会主要是偏服务类的商品,例如汽车售后服务、摄影服务、餐饮、电影等,其特色是线上购买、线下服务。因此,对这类垂直行业的商品做移动推荐时,用户和商品的位置信息显得格外重要。但是,可能存在用户、商品的位置信息缺失的情况,例如:

2017-08-11 12:30:43 323

原创 FZU-2191 完美的数字

B - 完美的数字 FZU - 2191 Bob是个很喜欢数字的孩子,现在他正在研究一个与数字相关的题目,我们知道一个数字的完美度是 把这个数字分解成三个整数相乘A*A*B(0S,S表示的是从a到b的所有数字的流行度之和,即S=d(a)+d(a+1)+…+d(b)。Input输入两个整数a,b(1Output输出一个整数,表示从a到b的所有数字流行度

2017-08-11 10:39:50 268

CVE-CWE概念与理解介绍

CVE-CWE概念与理解介绍。什么是CVE?什么是CWE?他们之间的关联与评分标准。

2022-05-20

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

TA关注的人

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