自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

flx413的博客

我只想搞懂我现在学的东西

  • 博客(309)
  • 资源 (5)
  • 问答 (23)
  • 收藏
  • 关注

原创 【分享】SDLPAL 仙剑奇侠传开源项目编译

项目URL:https://github.com/sdlpal/sdlpal仙剑游戏不用过多介绍了,国内很出名的RPG经典作品,结局往往凄美感人~~~今天偶尔看到这个开源项目,作者是个外国人,复刻了上世纪仙剑游戏很古老的版本,但是很值得研究,能学到不少游戏编程的知识。该项目基于SDL,支持跨平台,Win、Linux、Android、Mac都可以。我在Windows环境下编译体验了一下~...

2018-09-08 22:12:27 12251 7

原创 Learning Node-RED 4.安装dashboard模块

Node-RED已经为我们提供了很多节点,随着Node-RED版本不断更新,越来越多的开发者为其做出了贡献,我们可以安装一些其他模块来满足开发的需要。安装dashboard模块在右上方的部署按钮右侧有个菜单,点击菜单,选择节点管理。搜索“dashboard”关键字,按照下图点击安装即可。稍等片刻会提示安装成功。接下来会发现左侧节点列表中会多出来dashboard模块。关于dashboardNode...

2018-07-08 22:34:16 5179 6

原创 Learning Node-RED 3.Node-RED的编程模型

本节主要介绍Node-RED平台的关键概念和一些关键组件,并通过具体实例说明Node-RED的编程模型。数据流程(flow),flow是Node-RED中最重要的概念,一个flow流程就是一个Node-RED程序,它是由多个节点相互连接在一起形成数据通信的集合。在Node-RED的底层实现,一个flow流程通常是由一系列的JavaScript对象和若干个节点的配置信息组成,通过底层的Node.js...

2018-07-08 22:07:18 3859 1

原创 Learning Node-RED 2.安装Node-RED

安装Node.js进入Node.js官网,http://nodejs.cn/download/  选择本地操作系统下载安装包,下载.msi文件,运行安装node环境即可。运行cmd,输入node --version && npm --version,会显示相应的版本号。安装Node-RED打开cmd窗口,输入命令:npm install -g --unsafe-perm node-...

2018-06-20 00:44:36 4817

原创 Learning Node-RED 1.Node-RED简介

Node-RED是IBM在2013年末开发的一个开源项目,目的用于快速构建物联网应用。之后越来越多的人开始使用Node-RED,直到现在,Node-RED依然在不断更新和维护。Node-RED的特点Node-RED最大的特点在于其反应的是可视化编程思想,类似于Scratch基于Node.js,也就是说Node-RED采用的是事件驱动和非阻塞I/O机制开源性,可以对其进行二次开发,这也...

2018-06-20 00:21:13 1606

原创 2018-计蒜之道-初赛-第五场

A. 贝壳找房搬家贝壳找房换了一个全新的办公室,每位员工的物品都已经通过搬家公司打包成了箱子,搬进了新的办公室了,所有的箱子堆放在一间屋子里(这里所有的箱子都是相同的正方体),我们可以把这堆箱子看成一个 x \times y \times zx×y×z 的长方体。贝壳找房的leader觉得所有的箱子放在一间房子里有点太挤了,不方便每个员工搬运自己的物品,于是又让搬家公司把这堆箱子的前面、后面、左边...

2018-05-26 23:20:13 464

原创 POJ-3164 Command Network

After a long lasting war on words, a war on arms finally breaks out between littleken’s and KnuthOcean’s kingdoms. A sudden and violent assault by KnuthOcean’s force has rendered a total failure of li...

2018-05-04 23:55:55 174

原创 POJ-3255 Roadblocks

Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home too quickly, because she likes the scenery along the way. She...

2018-05-04 23:54:20 200

原创 POJ-2449 Remmarguts' Date

"Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching his little ducks' head, he told them a story. "Prince Remmarguts lives in his kingdom UDF – U...

2018-05-04 23:52:59 219

原创 HDU-4738 Caocao's Bridges

Caocao was defeated by Zhuge Liang and Zhou Yu in the battle of Chibi. But he wouldn't give up. Caocao's army still was not good at water battles, so he came up with another idea. He built many island...

2018-05-04 23:51:31 287

原创 POJ-1144 Network

A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines are bi...

2018-05-04 23:49:29 487

原创 POJ-3683 Priest John's Busiest Day

John is the only priest in his town. September 1st is the John's busiest day in a year because there is an old legend in the town that the couple who get married on that day will be forever blessed by...

2018-05-04 23:47:37 275

原创 POJ-3368 Frequent values

You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting of indices i and j (1 ≤ i ≤ j ≤ n). For each query, det...

2018-05-04 23:44:01 362

原创 POJ-3264 Balanced Lineup

For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultimate Frisbee with some of the cows. To keep things ...

2018-05-04 23:42:34 229

原创 NYOJ-119 士兵杀敌(三)

士兵杀敌(三)时间限制:2000 ms  |  内存限制:65535 KB难度:5描述南将军统率着N个士兵,士兵分别编号为1~N,南将军经常爱拿某一段编号内杀敌数最高的人与杀敌数最低的人进行比较,计算出两个人的杀敌数差值,用这种方法一方面能鼓舞杀敌数高的人,另一方面也算是批评杀敌数低的人,起到了很好的效果。所以,南将军经常问军师小工第i号士兵到第j号士兵中,杀敌数最高的人与杀敌数最低的人之间军功差...

2018-05-04 23:41:18 158

原创 POJ-2823 Sliding Window

An array of size n ≤ 10 6 is given to you. There is a sliding window of size kwhich is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time...

2018-05-04 23:38:25 207

原创 HDU-1533 Going Home

On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to an adjacent point. For each little man, you need t...

2018-05-03 23:10:22 198

原创 HDU-1532 Drainage Ditches

Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thus, Fa...

2018-05-03 23:08:19 172

原创 POJ-2796 Feel Good

Bill is developing a new mathematical theory for human emotions. His recent investigations are dedicated to studying how good or bad days influent people's memories about some period of life. A new id...

2018-05-03 23:06:30 361

原创 POJ-2559 Largest Rectangle in a Histogram

A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the figure on the left shows ...

2018-05-03 23:04:39 244

原创 HDU-1370 Biorhythms

Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods ...

2018-05-03 23:02:15 387

原创 HDU-2824 The Euler function

The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are smaller than n and coprime to n, and this function has a lot of beautiful c...

2018-05-03 23:01:09 192

原创 HDU-4556 Stern-Brocot Tree

     上图是一棵Stern-Brocot树,其生成规则如下:   从第1行到第n行,每行相邻两数a/b和c/d,产生中间数(a+c)/(b+d),置于下一行中。将一行的分数(包括0/1,1/0),进行约分简化,则每一行(包括0/1,1/0,1/1),不会出现两个相同的分数。若分子或者分母大于n,则去掉该分数,将剩下的分数,从小到大排序,得到数列F。   现在请您编程计算第n行的数列F的个数。 ...

2018-05-03 23:00:09 206

原创 HDU-1116 Play on Words

Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no other way to open the doors, the puzzle is very impo...

2018-05-03 22:59:07 155

原创 HDU-1878 欧拉回路

欧拉回路是指不令笔离开纸面,可画过图中每条边仅一次,且可以回到起点的一条回路。现给定一个图,问是否存在欧拉回路?Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是节点数N ( 1 < N < 1000 )和边数M;随后的M行对应M条边,每行给出一对正整数,分别是该条边直接连通的两个节点的编号(节点从1到N编号)。当N为0时输入结 束。Output每个测试用例...

2018-05-03 22:57:38 309

原创 POJ -1330 Nearest Common Ancestors

A rooted tree is a well-known data structure in computer science and engineering. An example is shown below:  In the figure, each node is labeled with an integer from {1, 2,...,16}. Node 8 is the root...

2018-05-03 22:55:51 138

原创 POJ-2689 Prime Distance

The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreticians for thousands of years is the question of primali...

2018-04-30 21:25:57 108

原创 HDU-3836 Equivalent Sets

To prove two sets A and B are equivalent, we can first prove A is a subset of B, and then prove B is a subset of A, so finally we got that these two sets are equivalent.You are to prove N sets are equ...

2018-04-30 21:24:31 162

原创 HDU-1269 迷宫城堡

为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N<=10000)和M条通道(M<=100000),每个通道都是单向的,就是说若称某通道连通了A房间和B房间,只说明可以通过这个通道由A房间到达B房间,但并不说明通过它可以由B房间到达A房间。Gardon需要请你写个程序确认一下是否任意两个房间都是相互连通的,即:对于任意的i和j,至少存在一条路径可以从房间i到房间j,...

2018-04-30 21:20:03 132

原创 POJ-1679 The Unique MST

Given a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connected, undirected graph G = (V, E). A spanning tree of G is a subgraph of ...

2018-04-30 21:17:11 126

原创 HDU-1576 A/B

要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有T组数据。 每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)。Output对应每组数据输出(A/B)%9973。Sample Input21000 5387 12...

2018-04-30 21:14:12 208

原创 HDU-1496 Equations

Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0 a, b, c, d are integers from the interval [-50,50] and any of them cannot be 0. It is consider a solution a system ( x1,x2,x...

2018-04-30 21:11:51 264

原创 HDU-1421 搬寝室

搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决定随便搬2*k件过去就行了.但还是会很累,因为2*k也不小是一个不大于n的整数.幸运的是xhd根据多年的搬东西的经验发现每搬一次的疲劳度是和左右手的物品的重量差的平方成正比(这里补充...

2018-04-30 21:09:02 122

原创 HDU-1160 FatMouse's Speed

FatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of mice and put as large a subset of this data as possible into a sequence...

2018-04-30 21:07:11 98

原创 HDU-4540 威威猫系列故事——打地鼠

威威猫最近不务正业,每天沉迷于游戏“打地鼠”。   每当朋友们劝他别太着迷游戏,应该好好工作的时候,他总是说,我是威威猫,猫打老鼠就是我的工作!   无话可说...      我们知道,打地鼠是一款经典小游戏,规则很简单:每隔一个时间段就会从地下冒出一只或多只地鼠,玩游戏的人要做的就是打地鼠。   假设:   1、每一个时刻我们只能打一只地鼠,并且打完以后该时刻出现的所有地鼠都会立刻消失;   2...

2018-04-30 21:04:58 198

原创 HDU-1176 免费馅饼

都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏,虽然在游戏中是个身手敏捷的高手,但在现实中运动神经特别迟钝...

2018-04-30 21:03:23 118

原创 PAT(T) - 1001. Battle Over Cities - Hard Version (35)

1001. Battle Over Cities - Hard Version (35)时间限制800 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the cities connected by highways in a war. If a city is conquer...

2018-04-03 22:16:57 235

原创 蓝桥杯 - 历届试题 发现环

历届试题 发现环  时间限制:1.0s   内存限制:256.0MB    问题描述  小明的实验室有N台电脑,编号1~N。原本这N台电脑之间有N-1条数据链接相连,恰好构成一个树形网络。在树形网络上,任意两台电脑之间有唯一的路径相连。  不过在最近一次维护网络时,管理员误操作使得某两台电脑之间增加了一条数据链接,于是网络中出现了环路。环路上的电脑由于两两之间不再是只有一条路径,使得这些电脑上的数...

2018-03-27 16:39:15 1525 2

原创 CCCC - L3-017. 森森快递

L3-017. 森森快递时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者俞勇(上海交通大学)森森开了一家快递公司,叫森森快递。因为公司刚刚开张,所以业务路线很简单,可以认为是一条直线上的N个城市,这些城市从左到右依次从0到(N-1)编号。由于道路限制,第i号城市(i=0, ..., N-2)与第(i+1)号城市中间往返的运输货物重量在同一时刻不能超过...

2018-03-27 12:09:38 2340

原创 PAT(A) - 1129. Recommendation System (25)

1129. Recommendation System (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueRecommendation system predicts the p

2018-03-27 11:58:46 271

实战突击:Visual C++项目开发案例整合.pdf

本书以局域网监控系统、快乐五子棋、图像处理系统、餐饮管理系统、客房管理系统、工资管理系统、指纹考勤管理系统、合同管理系统、客户资源管理系统、资产设备管理系统、仓库管理系统、商品采购管理系统、商品销售管理系统、超市进销存管理系统、物流综合管理系统、汽配管理系统、学生管理系统、图书管理系统、文档管理系统、智能大厦自动报警系统、企业内部通信系统等21个实际项目开发程序为案例,从软件工程的角度出发,按照项目的开发顺序,系统、全面地介绍了程序的开发流程。从开发背景、需求分析、系统功能分析、数据库分析、数据库结构、系统开发到系统的编译发行,每一过程都进行了详细的介绍。

2018-07-05

VS2015的OpenCV环境

VS2015的OpenCV环境配置,用于Windows平台,经过cmake编译的,解压后在工程中配置即可使用

2018-07-05

利用Bmob + ImageLoader 加载网络图片

http://blog.csdn.net/flx413/article/details/77126706 有详细说明

2017-08-13

SDL入门学习

SDL的入门学习

2016-07-24

android studio java文件红色j如何解决

2016-08-01

关于校验手机号码问题

2016-07-17

OpenCV提取视频关键帧的算法

2016-05-08

OpenCV加载PNG图片,显示图片背景是黑色的?

2016-05-05

OpenCV如何给图片添加水印?

2016-05-05

利用OpenCV如何将一张图片替换掉已存在视频的某一桢位置上?

2016-05-04

ffmpeg提取视频某一帧,提取这一桢的图像进行加密,如何将加密后的图像插入到原来的那一桢上?

2016-04-29

Xabber-Beta 主界面的侧滑菜单在哪个文件里?

2016-04-16

Error:Configuration with name 'default' not found.

2016-04-07

使用QT新建Designer Form对话框时没有生成对话框的.cpp和.h文件?

2016-03-31

Android Studio 安装Installing Build Tools失败

2016-03-31

Android Studio SDK需要安装哪些?

2016-03-31

如何用C语言将一个二值图(只有黑白)转换成一个01数字矩阵?

2016-03-30

Android Studio如何打开一个下载好的项目

2016-03-25

在做一个暴力破解密文的课设,如何快速地匹配文件中的单词?

2016-03-19

如何按住鼠标左键连续发送消息

2016-02-23

Windows编程如何监听鼠标是否被一直按下

2016-02-23

C++课程设计 有一个要求重载输入“>>”运算符,使得可以通过cin直接读入一个类的对象值??

2016-01-08

VC6.0 如何配置Nehe OpenGL SDK

2015-12-29

Android 用百度地图定位location.getAddrStr()得到的结果是null

2015-11-24

PAT1022 D进制的A+B 一个测试点不通过

2015-11-14

二叉树前序遍历算法改写

2015-11-11

非递归利用队列创建二叉树

2015-11-11

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

TA关注的人

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