自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

昨日明眸

隐约雷鸣 阴霾天空 但盼风雨来 能留你在此 隐约雷鸣 阴霾天空 即使天无雨 我亦留此地

  • 博客(410)
  • 资源 (1)
  • 收藏
  • 关注

原创 非极大值抑制(NMS)

NMS应用在图像识别方面相关概述:非极大值抑制(Non-Maximum Suppression,NMS),顾名思义就是抑制不是极大值的元素,可以理解为局部最大搜索。这个局部代表的是一个邻域,邻域有两个参数可变,一是邻域的维数,二是邻域的大小。这里不讨论通用的NMS算法(参考论文《Efficient Non-Maximum Suppression》对1维和2维数据的NMS实现),而是用于目标检测...

2019-02-14 13:44:03 367

原创 指数型母函数

#include#include#include#includeusing namespace std;#define manx 13double a[manx],b[manx];   /// a[] 代表第一个式子的系数long long num[manx];long long fan(int n){    long long sum=1;    for(

2017-04-14 17:09:55 532 1

原创 母函数

#include#include#includeusing namespace std;const int N=50;int c1[N+10],c2[N+10],num[30];int main(){    //freopen("input.txt","r",stdin);    int t;    scanf("

2017-04-13 20:03:07 544 1

转载 Vector 基本本操作

1 基本操作(1)头文件#include.(2)创建vector对象,vector vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout(5)使用迭代器访问元素.vectorint>::iterator it;for(it=vec.begin();it!=vec.end();it++) cout

2017-02-25 12:50:29 297

原创 dingyeye loves stone(阶梯博弈+vector)

dingyeye loves stoneTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 119    Accepted Submission(s): 70Problem Descriptiondingyeye lov

2016-12-18 14:42:43 310

原创 51nod_1305 Pairwise Sum and Divide(数学规律)

1305 Pairwise Sum and Divide题目来源: HackerRank基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题有这样一段程序,fun会对整数数组A进行求值,其中Floor表示向下取整:fun(A)    sum = 0    for i = 1 to A.length 

2016-12-18 13:22:54 261

原创 51nod_1024 矩阵中不重复的元素(对数求解·)

1024 矩阵中不重复的元素一个m*n的矩阵。该矩阵的第一列是a^b,(a+1)^b,.....(a + n - 1)^b第二列是a^(b+1),(a+1)^(b+1),.....(a + n - 1)^(b+1).......第m列是a^(b + m - 1),(a+1)^(b + m - 1),.....(a + n - 1)

2016-12-18 13:15:19 281

原创 最小字典树输出字符串

Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol ``T" in ``CGAGTCAGCT" is connected to the first symbol ``

2016-12-05 21:24:53 489

原创 uva 340 Master-Mind Hints(数组应用--密码契合)

题目描述:MasterMind is a game for two players. One of them, Designer, selects a secret code. The other, Breaker,tries to break it. A code is no more than a row of colored dots. At the beginning of a g

2016-12-05 20:10:54 309

原创 WERTYU(模拟,还原键值)

A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to decode a message typed in

2016-12-04 18:23:23 630

原创 UVA 401 - Palindromes(判断回文串和镜像串)

A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef

2016-12-04 18:20:19 391

原创 51nod——1091 线段的重叠(排序,贪心)

1091 线段的重叠题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1091X轴上有N条线段,每条线段包括1个起点和终点。线段的重叠是这样来算的,[10 20]和[12 25]的重叠部分为[12 20]。给出N条线段的起点和终点,从中选出2条线段,这两条线段的重叠部分是最长的。输出这

2016-12-03 19:33:16 323

原创 hihocoder #1172 : 博弈游戏·Nim游戏·二

#1172 : 博弈游戏·Nim游戏·二题目链接:http://hihocoder.com/problemset/problem/1172?sid=963116时间限制:10000ms单点时限:1000ms内存限制:256MB描述Alice和Bob这一次准备玩一个关于硬币的游戏:N枚硬币排成一列,有的正面朝上,有的背面朝上,从左到

2016-12-02 17:46:52 352

原创 1242 斐波那契数列的第N项(矩阵快速幂)

1242 斐波那契数列的第N项题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1242斐波那契数列的定义如下:F(0) = 0F(1) = 1F(n) = F(n - 1) + F(n - 2) (n >= 2)(1, 1, 2, 3, 5

2016-12-02 17:19:46 681

原创 51nod 1135 原根

1135 原根题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1135设m是正整数,a是整数,若a模m的阶等于φ(m),则称a为模m的一个原根。(其中φ(m)表示m的欧拉函数)给出1个质数P,找出P最小的原根。Input输入1个质数P(3 

2016-12-02 16:35:40 332

原创 c语言里面log函数怎么用

2、函数名: log10功 能: 对数函数log,以10为底用 法: double log10(double x);程序示例:#include #include int main(void){ double result; double x = 800.6872; result = log10(x); printf("The common log of

2016-11-29 19:51:28 59769 2

原创 codeforces 2A winner(stl应用,模拟)

A. Winnertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe winner of the card game popular in Berland "Ber

2016-11-25 20:27:22 348

原创 数据结构之排序二叉树操作

#include #include #include # define MAXSIZE 40 // 待排顺序表最大长度 int corect=0;#define OK 1#define ERROR 0typedef int KeyType; // 关键字类型为整数类型typedef int ElemType; // 数据类型为整数类型//数据结构定义模块typ

2016-11-25 20:22:59 590

原创 CodeForces 111B(数组模拟,记录因子位置)

Petya and DivisorsTime Limit:5000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u:Description描述:Little Petya loves looking for numbers' divisors. One day Petya came across the followin

2016-11-20 10:57:00 311

原创 51nod 1090 3个数和为0

1090 3个数和为0基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题给出一个长度为N的无序数组,数组中的元素为整数,有正有负包括0,并互不相等。从中找出所有和 = 0的3个数的组合。如果没有这样的组合,输出No Solution。如果有多个,按照3个数中最小的数从小到大排序,如果最小的数相等则按照第二小的数排序。

2016-11-17 22:17:22 228

原创 51nod-1009 数字1的数量

1009 数字1的数量基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。例如:n = 12,包含了5个1。1,10,12共包含3个1,11包含2个1,总共5个1。Input输入N(1 Output输

2016-11-14 20:01:59 314

原创 数据结构之排序算法

实验八:实验目的和要求:熟悉多种排序算法,理解每种排序算法思想,掌握排序算法的基本设计方法,掌握排序算法时间复杂度和空间复杂度的分析方法。实验内容:1.对所讲过算法深入理解。          2. 将冒泡排序再做进一步的优化。如果有100个数的数组,当前仅前面10个无序,后面90个都已排好序且都大于前面10个数字,那么在该一趟遍历后,最后发生交换的位置必定小于10,且这个位置之后

2016-11-14 19:51:19 738

原创 51nod-1010 只包含因子2 3 5的数

1010 只包含因子2 3 5的数基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题K的因子中只包含2 3 5。满足条件的前10个数是:2,3,4,5,6,8,9,10,12,15。所有这样的K组成了一个序列S,现在给出一个数n,求S中 >= 给定数的最小的数。例如:n = 13,S中 >= 13的最小的数是15,

2016-11-13 20:32:23 259

原创 51NOD1019 逆序数(归并排序)

1019 逆序数在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,逆序数是4。给出一个整数序列,求该序列的逆序数。Input第1行:N,N为序列的长度(n 第2 - N + 1行:序列中的元素(0 Output输出逆序数

2016-11-13 20:08:01 323

原创 codeforces 232A Cycles (构建图,贪心+模拟)

CyclesDescription描述John Doe started thinking about graphs. After some thought he decided that he wants to paint an undirected graph, containing exactly kcycles of length 3.A cycle of len

2016-11-13 14:38:50 373

原创 HDU 1214 圆桌会议

圆桌会议Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1914    Accepted Submission(s): 1319Problem DescriptionHDU ACM集训队的队员在暑假集训时经常

2016-11-13 14:16:29 352

原创 HDU-1175-连连看BFS+转弯

连连看Time Limit: 20000/10000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32137    Accepted Submission(s): 7921Problem Description“连连看”相信很多人都玩过。没玩过也没关系

2016-11-13 14:11:54 320

原创 CodeForces 233B Non-square Equation(数学问题方程转化)

Non-square EquationTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescription:描述:Let's consider equation:                  x^2 + s(x)·x - n = 0, where x, n are positi

2016-11-13 14:06:29 421

原创 HDU 1575 Tr A (矩阵乘法)

Tr ATime Limit : 1000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 11   Accepted Submission(s) : 7Font: Times New Roman | Verdana | GeorgiaFont S

2016-11-13 13:56:50 246

原创 数据结构之图的储存,搜索

实验目的:掌握图的邻接矩阵和邻接表两个存储结构及表示。          掌握图的DFS和BFS两种遍历算法。          理解并掌握下述完整算法的基本思想以及算法实现方法:最小生成树算法、最短路径算法、拓扑排序算法及关键路径算法。实验内容:1. 创建一个无向图,并分别对其进行DFS和BFS。          2. 实现最短路径、最小生成树、拓扑排序三种算法。#incl

2016-11-07 16:43:08 337

原创 Codeforces 445 A DZY Loves Chessboard(预处理)

DZY Loves ChessboardTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionDZY loves chessboard, and he enjoys playing with it.He has a chessboard

2016-10-30 16:44:01 357

原创 CodeForces 444C. DZY Loves Physics

DZY Loves PhysicsDZY loves Physics, and he enjoys calculating density.Almost everything has density, even a graph. We define the density of a non-directed graph (nodes and edges of the graph hav

2016-10-30 16:38:00 309

原创 hdu 4324 Triangle LOVE(拓扑排序)

Triangle LOVETime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionRecently, scientists find that there is love between any of two people. For example, between A and B,

2016-10-30 16:27:41 279

原创 POJ 3041 Asteroids(二分匹配)

DescriptionBessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains K asteroids (1 <= K <= 10,000), which are conven

2016-10-30 16:08:00 281

原创 二叉树数据结构

#include#includetypedef struct bitnode{ int date; struct bitnode *lchild,*rchild;}BiTNode,*BiTree;int sum=0;void CreateBiTree(BiTree &T){ int e; scanf("%d",&e); if(e==0) { T=NULL; } el

2016-10-25 22:05:47 202

原创 CodeForces 337C Quiz(1等比数列找规律)

QuizTime Limit:1000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 337CAppoint description: System Crawler  (Oct 22, 2016 3:24:05 PM)jeh

2016-10-22 19:47:13 373

原创 CodeForces 257C View Angle(求角度)

View AngleTime Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 257CAppoint description: System Crawler  (Oct 17, 2016 1:45:35 PM

2016-10-19 17:03:29 383

原创 HDU 2136Largest prime factor(打表)

Largest prime factorTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2136Appoint description: System Crawler  (Oct 13, 2016 7:58:1

2016-10-17 20:45:37 263

原创 CodeForces 237C Primes on Interval(数学加二分)

Primes on IntervalTime Limit:1000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 237CAppoint description: System Crawler  (Oct 15, 2016

2016-10-17 20:38:27 241

原创 POJ 3259 Wormholes (Bellman) (负权回路)

WormholesTime Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%lld & %lluSubmit StatusDescriptionWhile exploring his many farms, Farmer John has discovered a number of

2016-10-07 15:51:11 215

Visual LISP程序设计技巧与范例

Visual LISP程序设计技巧与范例本书通过开发AutoCAD 的新命令绘制花园小径并以圆形花砖填满这个花园小径,介绍了Visual LISP的强大功能。全书共分七章,第一章提出了程序设计的目标,第二章至第五章则介绍了如何实现这个目标,第六章至第七章则分别介绍了瓜器和程序的集成。

2018-04-14

空空如也

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

TA关注的人

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