自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Sublime Text 3 c/c++编译平台搭建简介

Sublime Text 3是一个代码编辑器,也是HTML和散文先进的文本编辑器。它最初被设计为一个具有丰富扩展功能的Vim。 Sublime Text具有漂亮的用户界面和强大的功能,支持多种编程语言的语法高亮、拥有优秀的代码自动完成功能,还拥有代码片段(Snippet)的功能,可以将常用的代码片段保存起来,在需要时随时调用。支持 VIM 模式,可以使用Vim模式下的多数命令。同时支持Window...

2018-02-02 16:35:32 1175

原创 Sublime Text 3 主题设计与应用

sublime text 3 主题设计与应用作为编辑器之神,sublime之所以能受到大众的欢迎,就是因为其拥有优雅流畅的操作界面,此博客将介绍sublime配置使用主题以及自定义主题的具体方法1)下载使用主题插件sublime自带相当多的主题插件,其中下图第一条就是一个主题插件(此处仅做示范,并不推荐这个主题):按下ctrl+shift+P调出package contro

2018-02-02 16:20:42 1601 1

转载 安装open-vm-tools

安装open-vm-tools

2022-07-27 15:30:44 750

原创 Ubuntu修改时区和更新时间

Ubuntu修改时区和更新时间一句命令即可将时间设置为东八区timedatectl set-timezone Asia/Shanghai

2021-08-02 16:53:10 240

原创 UBUNTU18.04安装CUDA10.1

UBUNTU18.04安装CUDA10.1一、下载旧版本安装包二、安装cuda三、配置环境一、下载旧版本安装包https://developer.nvidia.com/cuda-toolkit-archive笔者选择了CUDA Toolkit 10.1 (Feb 2019), Online Documentation二、安装cuda1.进入下载好的文件夹sudo sh cuda_10.1.105_418.39_linux.run2.第一个不选择安装驱动3.安装完成三、配置环境1

2021-01-28 16:50:54 480

转载 Linux替换清华源

Linux替换清华源1.备份原来的源文件2.替换源3.更新源和软件1.备份原来的源文件cd /etc/apt/sudo cp sources.list sources.list.bak2.替换源sudo gedit sources.list删除原来的所有内容,替换成适合版本的清华源。# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main re

2021-01-26 14:09:12 1993

原创 欧几里德与扩展欧几里德算法

欧几里德算法欧几里德算法又称辗转相除法,用于计算两个整数a,b的最大公约数。基本算法:设a = qb + r,其中a,b,q,r都是整数,则gcd(a, b) = gcd(b, r),即gcd(a, b) = gcd(b, a % b)。算法的实现:int gcd(int a, int b){ return b ? gcd(b, a % b) : a;}...

2018-04-26 21:31:32 217

原创 邻接表三种常见方法简介

邻接表是存图的一种很好的方式,在搜索算法中有较为广泛的应用。首先分清三种方法。1、vector:这是最容易理解的一种方法,使用比较广泛(一般像笔者这样的萌新使用较多)。优点:方便,代码简洁,容易理解。缺点:某些不怀好意的题可能会卡你时间,vector效率不高。2、链表:使用链表存图,优点:速度较快,缺点:内存开销大一些,可能会被卡内存。(一般不会)3、链式前向星:使用最为广泛的一种方法...

2018-03-17 10:13:04 1416

原创 01背包,完全背包,多重背包

背包问题是dp的经典内容。首先,先分清楚这三个背包问题。1.01背包:有n种物品与承重为m的背包。每种物品只有一件,每个物品都有对应的重量weight[i]与价值value[i],求解如何装包使得价值最大。2.完全背包:有n种物品与承重为m的背包。每种物品有无限多件,每个物品都有对应的重量weight[i]与价值value[i],求解如何装包使得价值最大。3.多重背包:有n种物品与承重...

2018-02-27 19:22:10 366

原创 Codeforces 491B. New York Hotel 【枚举】【曼哈顿距离】

DescriptionThink of New York as a rectangular grid consisting of N vertical avenues numerated from 1 to N and M horizontal streets numerated 1 to M. C friends are staying at C hotels located at some st

2018-02-14 15:32:29 423

原创 HDU 5414 CRB and String 【string】

DescriptionCRB has two strings ss and tt. In each step, CRB can select arbitrary character cc of ss and insert any character dd (d ≠ cd ≠ c) just after it. CRB wants to convert ss to tt. But is it

2018-02-14 14:37:28 292

转载 HDU 6217 BBP Formula 【快速幂】

DescriptionIn 1995, Simon Plouffe discovered a special summation style for some constants. Two year later, together with the paper of Bailey and Borwien published, this summation style was named as the

2018-02-06 16:43:33 543

原创 poj Dropping tests 【二分】【分数规划】

DescriptionIn a certain course, you take n tests. If you get ai out of bi questions correct on test i, your cumulative average is defined to be Given your test scores and a positive integer k, dete

2018-02-06 16:12:19 269

原创 HDU 233 Matrix 5015【快速幂】

DescriptionIn our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 … in the same meaning. And here is the question: Suppose we have a matrix called 233 m

2018-02-06 15:31:55 229

原创 POJ 3233-Matrix Power Series 【快速幂】

DescriptionGiven a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak.InputThe input contains exactly one test case. The first line of input contains three positive

2018-02-06 15:18:15 296

原创 hdu3714 Error Curves 【三分】

DescriptionJosephina is a clever girl and addicted to Machine Learning recently. She pays much attention to a method called Linear Discriminant Analysis, which has many interesting properties. In

2018-02-06 14:02:33 313

原创 Codeforces Round 340 (Div 2)D Polyline 【枚举】【思维】

DescriptionThere are three points marked on the coordinate plane. The goal is to make a simple polyline, without self-intersections and self-touches, such that it passes through all these points. Also,

2018-02-04 18:34:53 242

原创 hdu 5143 NPY and arithmetic progression【思维】【枚举】

DescriptionNPY is learning arithmetic progression in his math class. In mathematics, an arithmetic progression (AP) is a sequence of numbers such that the difference between the consecutive terms is

2018-02-04 18:24:10 362

原创 Codeforces gym 101341I Matrix God【思维】【hash】

Input file: standard input Output file: standard output Time limit: 2 seconds Memory limit: 256 megabytesDescirptionMatrices are square tables, containing integers in rows and columns. Do you

2018-02-04 17:51:19 337

原创 Codeforces 593B Anton and Lines 【思维】【枚举】【排序】

DescriptionThe teacher gave Anton a large geometry homework, but he didn’t do it (as usual) as he participated in a regular round on Codeforces. In the task he was given a set of n lines defined by the

2018-02-04 17:26:11 536

原创 Coderforces 617C Watering Flowers 【暴力】

DescriptionA flowerbed has many flowers and two fountains. You can adjust the water pressure and set any values r1(r1 ≥ 0) and r2(r2 ≥ 0), giving the distances at which the water is spread from the fi

2018-02-04 17:08:44 354

原创 POJ 1723 SOLDIERS 【排序】

DescriptionN soldiers of the land Gridland are randomly scattered around the country. A position in Gridland is given by a pair (x,y) of integer coordinates. Soldiers can move - in one move, one s

2018-02-04 16:49:34 387

原创 Codeforces Round #294 (Div. 2) -- D. A and B and Interesting Substrings 【hash】

DescriptionA and B are preparing themselves for programming contests. After several years of doing sports programming and solving many problems that require calculating all sorts of abstract object

2018-02-04 15:54:42 211

空空如也

空空如也

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

TA关注的人

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