自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

四季不败的博客

一二三四五,天王盖地虎

  • 博客(14)
  • 收藏
  • 关注

原创 Anaconda 如何修改默认虚拟环境

Anaconda 如何修改默认虚拟环境

2023-03-13 11:39:54 5102 2

原创 VScode报错:undefined reference to ‘WinMain’ collect2.exe: error: ld returned 1 exit status

mingw32/lib/…/lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain’collect2.exe: error: ld returned 1 exit status因为VScode不是你Run代码就会自动保存,需要你先保存代码Ctrl+s,之后再运行即可。...

2020-10-28 22:47:49 3337 2

原创 安装Visual Studio Code及如何编写运行 C C++ 程序(图文详解)

目录1.下载安装VScode2. 环境装备1.下载安装VScode首先微软官网下载并安装好visual stdio code,建议在安装时将选项全勾选上具体安装教程参考1:https://zhangguohao.blog.csdn.net/article/details/105665412?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.edu_weight&de

2020-10-28 15:11:36 1696 1

原创 POJ - 3468 A Simple Problem with Integers (线段树——懒标记)(注释详解)

POJ - 3468 A Simple Problem with Integers (模板题)(懒标记)ProblemYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given numbe...

2019-09-03 20:05:27 182

原创 HDU - 1754 I Hate It (线段树模板题)(注释详解)

HDU - 1754 I Hate It (线段树模板题)Problem很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input本题目包含多组测试,请处理到文件结束。在每个测试的...

2019-08-14 20:01:35 214

原创 POJ - 2253 Frogger(最短路)(Floyed算法)(注释详解)

POJ - 2253 Frogger(Floyed算法)ProblemFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the...

2019-08-13 16:15:34 310

原创 HDU - 1166 敌兵布阵(线段树模板)(入门题)

HDU - 1166 敌兵布阵 线段树ProblemC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干...

2019-08-13 15:13:34 172

原创 POJ - 2387 Til the Cows Come Home(最短路)(Dijkstra模板题)

POJ - 2387 Til the Cows Come Home(Dijkstra模板题)(无向图)ProblemBessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morni...

2019-08-11 13:38:07 193

原创 POJ - 3169 Layout (差分约束)(SPFA)

POJ - 3169 Layout (差分约束)(SPFA)(kuangbin)ProblemLike everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1..N standing...

2019-08-10 20:49:55 152

原创 HDU - 4370 0 or 1 (最短路)(思维转换)

HDU - 4370 0 or 1 (最短路)(思维转换)(SPFA)Problem DescriptionGiven a n*n matrix Cij(1<=i,j<=n),We want to find a n*n matrix Xij(1<=i,j<=n),which is 0 or 1.Besides,Xijmeets the followi...

2019-08-09 19:06:55 255

原创 HDU - 4725 The Shortest Path in Nya Graph(增点建图)(图文详解)(超易理解)

The Shortest Path in Nya Graph HDU - 4725增点建图 Dijkstra 邻接表problemThis is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco ...

2019-08-08 10:11:17 367 1

原创 C++ STL容器 优先队列(priority_queue)用法详解 (图文详解)(全网最详细 简单易懂)

C++ STL容器 优先队列(priority_queue)用法详解常见用途1,可以解决一些贪心问题;2,也可以对dijksta算法进行优化;既然是队列那么先要包含头文件#include <queue>,其底层是用堆来进行实现的在优先队列中,优先队列本身默认的规则就是优先级高的放在队首先举个例子(假设数字小的优先级高):原先队列中有...

2019-08-07 16:12:32 9561 2

原创 NBUOJ 1034 求整数的位数(暴力,水题)

1034求整数的位数Time Limit :2000/1000 MS(Java/Others)| Memory Limit :65536/32768 KB(Java/Others)Submits :10308| Solved :4400Description输入一个任意长度的整数N(N>=0),求出它是几位数。Input输入一个任意长度的整数N(N&...

2019-08-06 18:17:03 546

原创 NBUOJ 1033 计算最高位数字(高位数字)

NBUOJ 1033 计算最高位数字 水题#include <stdio.h>#include <math.h>int main(){ int x,a,j=0; scanf("%d",&x); a=x; while(a>10) { a/=10; j++; } ...

2019-08-05 09:54:38 887

空空如也

空空如也

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

TA关注的人

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