码迷,mamicode.com
首页 > 其他好文
HDU 4539
简单状压DP,忘 了初始化,忘 了&和==的优先级,坑了我十几个WA。#include #include #include #include using namespace std;int dp[110][222][222];int row[110];int status[1>=1; } retur...
分类:其他好文   时间:2015-04-12 13:12:15    阅读次数:134
Permutation Sequence
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:其他好文   时间:2015-04-12 13:11:26    阅读次数:118
codeigniter ,看完这些,就可以用它做项目了
一、MVC 1,入口文件 唯一一个让浏览器直接请求的脚本文件 2,控制器 controller 负责协调模型和视图 3,模型 model 只负责提供数据,保存数据 4,视图 只负责显示,以及搜集用户的输入(表单) 5,action 动作 是控制器中的方法,用于...
分类:其他好文   时间:2015-04-12 13:11:15    阅读次数:125
数学系自学视频课程
1.数学分析,王昆扬,北京师范大学,http://video.chaoxing.com/play_400001575_18227.shtml2.高等代数,丘维生,北京大学,http://video.chaoxing.com/serie_400015565.shtml3.高等代数,李尚志,北京航天航空...
分类:其他好文   时间:2015-04-12 13:10:05    阅读次数:730
git和tortoisegit安装教程
Git和TortoiseGit安装过程和初步测试过程:1.先下载git,网址http://msysgit.github.io/再下载Tortoisegit,网址https://code.google.com/p/tortoisegit/wiki/Download(里面有一个下载中文的包,如果想汉化,...
分类:其他好文   时间:2015-04-12 13:12:01    阅读次数:173
杭电5123 who is the best?
Problem Description There are N people want to choose the best person. Each person select the best person ai, .John wants to know that who received the most number of votes. Input The first line co...
分类:其他好文   时间:2015-04-12 12:10:06    阅读次数:120
机器学习 第二讲:矩阵的基本运算
矩阵的基本概念 假设 aij∈Ra_{ij} \in \mathfrak{R}, 其中 i=1,2,...,mi=1,2,...,m; j=1,2,...,nj=1,2,...,n. 我们定义如下的行列式: A=??????a11a21?am1a12a22?am2???a1na2n?amn??????\begin{equation*} \mathbf{A}= \begin{bmatrix}...
分类:其他好文   时间:2015-04-12 12:09:49    阅读次数:172
leetcode-16 3Sum Closest
问题描述: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ...
分类:其他好文   时间:2015-04-12 12:08:13    阅读次数:190
14.1 理解不同的并行技术
14.1 理解不同的并行技术在这一节,我们将讨论三种技术,并使用简单的示例进行演示。我们将使用的 .NET并行扩展(Parallel Extensions to .NET),是并行编程库,它是 .NET Framework 4.0 标准的一部分,但是,不幸的是,在早期 .NET 的版本中没有。如果要在 Visual Studio 2008 中体验并行扩展,可以下载 CTP 版本,但有几个命名上的改变...
分类:其他好文   时间:2015-04-12 12:07:06    阅读次数:128
纸牌游戏----蓝桥杯(暴力方法)
蓝桥杯的纸牌游戏,这里我只用了简单的暴力,很费事,其实可以用递归, DP等等来写。 代码: #include #include using namespace std; int main() {     int a[13];         static int count;     int ans = 0;     for(a[0]=0; a[0]     { ...
分类:其他好文   时间:2015-04-12 12:08:34    阅读次数:130
UVA 11029 Leading and Trailing(大数n^k的前x位高精度问题)(好题)
Problem C Leading and Trailing Time limit: 2 seconds   Apart from the novice programmers, all others know that you can’t exactly represent numbers raised to some high power. ...
分类:其他好文   时间:2015-04-12 12:07:31    阅读次数:172
Today is a special day for English Topic
IT needs English ,Internationalization needs english ,we need the chance to conquer the world!...
分类:其他好文   时间:2015-04-12 12:06:48    阅读次数:97
GOF23设计模式之中介者模式的理解
?? 中介模式Mediator 场景 假如没有总经理,下面有三个部门,财务部,市场部,研发部。财务部要发工资,让大家和对公司需要跟市场部和研发部都通气。市场部要接个新项目,需要研发部技术支持,需要财务部处理资金。市场部跟各个部门打交道。财务部发钱了,需要跑去和研发部和市场部打交道。研发部研发产品,市场部做调研,销售缺少资金又需要去找财务部。在这种情况下...
分类:其他好文   时间:2015-04-12 12:06:28    阅读次数:123
GOF23设计模式之中介者模式的实现
/**  * 时间:2015年4月12日09:57:11  * 抽象中介类,定义了同事对象到中介者对象的接口  *  */ package com.bjsxt.cn.mediator; public interface Mediator {  public void register(String dname, Deparment d);  public void command...
分类:其他好文   时间:2015-04-12 12:05:09    阅读次数:169
LeetCode Rising Temperature
Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. +---------+------------+------------------+ | Id(INT) | Date(DA...
分类:其他好文   时间:2015-04-12 12:05:42    阅读次数:123
Excel Sheet Column Number--LeetCode
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 思路:进制之间...
分类:其他好文   时间:2015-04-12 12:07:16    阅读次数:101
寻找最大数(三)
寻找最大数(三) 时间限制:1000 ms  |  内存限制:65535 KB 难度:2 描述 给出一个整数N,每次可以移动2个相邻数位上的数字,最多移动K次,得到一个新的整数。 求这个新的整数的最大值是多少。 输入多组测试数据。 每组测试数据占一行,每行有两个数N和K (1?≤?N≤?10^18; 0?≤?K?≤?100). 输出每组测试数据的...
分类:其他好文   时间:2015-04-12 12:07:17    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!