How many ways
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3268 Accepted Submission(s): 1930
Problem Description
这是一个简单的生存游戏,...
分类:
其他好文 时间:
2015-01-27 20:25:56
阅读次数:
170
http://codeforces.com/problemset/problem/29/C
Description
One day Bob got a letter in an envelope. Bob knows that when Berland's post officers send a letter directly from city «A» to city «B...
分类:
其他好文 时间:
2015-01-27 20:25:24
阅读次数:
178
描述:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the targ...
分类:
其他好文 时间:
2015-01-27 20:24:52
阅读次数:
213
一:基础定义
1:颜色定义:
对于大多数计算机显示器来说,颜色信息的显示只是依靠三种光波的组合:红,绿,蓝.所以颜色可以用红,绿,蓝三元素表示,每个
分量都在0到1区间,颜色即能够代表光的光谱成分,也能代表光的强度.颜色可用和一个三维向量表示,有加法和乘法.
2:光源:
1):环境光:环境光是一种低强度的光,由光线...
分类:
其他好文 时间:
2015-01-27 20:25:35
阅读次数:
237
最近一段时间,正在学习机器学习与模式识别,为了验证算法,仍然用了之前做过的项目的一些图片作为数据采集的样本,进行数据采集。前段时间,做了一个花生籽粒的识别程序,是基于SVM+HOG的,这次则是采用朴素贝叶斯来进行识别。采集了20个品种,每个品种50个样本,共1K个数据。
朴素贝叶斯分类器(Naive Bayes Classifier,或 NBC)发源于古典数学理论,有着坚实的数学基础,以及稳...
分类:
其他好文 时间:
2015-01-27 20:25:03
阅读次数:
224
链接:click here
题意:叫你求一个数是另一个数的二倍的这样的组合有多少个。
思路:纯模拟,一重循环:读入当前数据组a,并累积数据元素个数n,循环的结束标志是读入数据0,两重循环结构枚举组内所有数据对a[i] a[j] 判断是否成两倍关系
代码:
#include
#include
#include
#include
#include
using namespace ...
分类:
其他好文 时间:
2015-01-27 20:22:30
阅读次数:
165
描述:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse
order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他好文 时间:
2015-01-27 20:23:35
阅读次数:
154
很简单的一步操作,是在python中运行,而不是一个python文件,找了好久~~~~...
分类:
其他好文 时间:
2015-01-27 20:24:43
阅读次数:
175
类比二叉树先序遍历与图深度优先搜索
在引入图的深度优先搜索之前,为了更加容易理解.先考究一种特殊的图---二叉树的深度优先搜索算法---即二叉树的递归遍历方法.
二叉树的前序遍历算法:
void TreeWalk(node* root)
{
if(root)
{
visit(root);
...
分类:
其他好文 时间:
2015-01-27 20:23:35
阅读次数:
219
Response容器是服务端返还给客户机的一个响应内容对象容器,比如说:响应头,响应行,实体数据等信息,而Request容器对象是,代表用户请求服务端的的一个容器对象,比如客户机的请求头,请求行,以及携带的参数信息等。所以说Request容器对象和Response容器对象是一一对应的...
分类:
其他好文 时间:
2015-01-27 20:21:06
阅读次数:
226
题目地址:POJ 1681
跟前两题几乎一模一样的。。。不多说了。高斯消元+自由元枚举。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define LL __int64
#define pi acos(...
分类:
其他好文 时间:
2015-01-27 20:21:34
阅读次数:
171
描述:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is ...
分类:
其他好文 时间:
2015-01-27 20:21:40
阅读次数:
149
操作系统(一)—宏观导论
系统,对这词并不陌生,每天一来机房一开电脑就会接触到系统。我们有现在用的
Windows 系统、之前了解过虚拟机系统、Linux系统等等这都属于操作系统范畴。《操
作系统概论》这本教程很薄,主要还是介绍一些基本的概念和基本的原理等偏文科的一
些识记的东西。
操作系统(Operating System,简称OS)是管理和控制计...
分类:
其他好文 时间:
2015-01-27 20:19:41
阅读次数:
153
描述:
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
思路:
刚开始非常天...
分类:
其他好文 时间:
2015-01-27 20:21:30
阅读次数:
205
事件委托例子:using System;using System.Drawing;using System.Windows.Forms;namespace 跨窗体调用控件{ public partial class Form1 : Form { public Form1()...
分类:
其他好文 时间:
2015-01-27 20:19:23
阅读次数:
133
当你正在运行一个公共的站点的时候,你应该关掉DEBUG设置。这将使你的服务器运行的更快,同时也能预防别有用心的用户从你的错误页面看到你应用的一些详细配置信息。然而,当debug为false的时候,你将永远看不到由你的站点产生的错误--所有人都只能看到你的公开的错误页面。出于你必须跟踪你部署的站点的错...
分类:
其他好文 时间:
2015-01-27 20:19:40
阅读次数:
131
早在大二时,导师做过一个花生品种识别的程序,但当时用于品种识别的特征是自定义特征;而我的当初的本科毕业设计则是基于SVM + HOG的人脸识别;在后来的工作学习中,又用到了HOG特征,想着是不是之前的花生品种的识别也能用Hog特征进行识别;正所谓学以致用,也能巩固下刚刚所学的知识;所谓的Hog特征与...
分类:
其他好文 时间:
2015-01-27 20:17:18
阅读次数:
315