简单搜索
直接代码:
#include
#include
#include
#include
using namespace std;
char a,c;
int e,f;
int dx[8] = {-2, -2, -1, -1, 1, 1, 2, 2};
int dy[8] = {-1, 1, -2, 2, -2, 2, -1, 1};
int qq[9][9];
struct node
{...
分类:
其他好文 时间:
2014-07-17 19:05:30
阅读次数:
265
Factovisors
The factorial function, n! is defined thus for n a non-negative integer:
0! = 1
n! = n * (n-1)! (n > 0)
We say that a divides b if there exists an integer k such that
k*a =...
分类:
其他好文 时间:
2014-07-17 19:05:06
阅读次数:
235
git 上传本地文件到github
1 git config --global user.name "Your Real Name"
2 git config --global user.email you@email.address
git init
git add .
git commit -m 'Test'
git re...
分类:
其他好文 时间:
2014-07-17 19:13:25
阅读次数:
222
jpaginate是基于jquery的分页插件,非常轻量,没有任何侵入性,当然所能做的也就非常少.事实上它的作用仅仅是提供一个好看的分页样式,只提供一个触发事件.但是轻量带来了巨大的灵活性,让它可以提供任何内容的分页服务.
官方网站为http://tympanus.net/codrops/2009/11/17/jpaginate-a-fancy-jquery-pagination-plugi...
分类:
其他好文 时间:
2014-07-17 21:15:37
阅读次数:
240
碰撞与休眠...
分类:
其他好文 时间:
2014-07-17 20:14:06
阅读次数:
296
UVA 11291 - Smeech
题目链接
题意:给定一个表达式形如e=(p,e1,e2)
该表达式的值为 p?(e1+e2)+(1?p)?(e1?e2),求出值
思路:题目是很水,但是处理起来还挺麻烦的,模拟写编译器LEX分析器原理去写了。
代码:
#include
#include
const int N = 100005;
char str[N];...
分类:
其他好文 时间:
2014-07-17 21:07:29
阅读次数:
170
第一章不同的思维
本章介绍
■理解函数式编程
■用函数式思想提高生产力
■写出阵高效、可读性强的代码
■实现第一个 F# 应用程序
函数语言非常富于表达,能用短小、简洁、具可读性的代码,实现强大的功能。之所有这些是可能的,是因为函数语言提供了更加丰富的方式,来表达抽象的概念。我们可以隐藏代码是“如何”执行的,只要指出所需的“结果”,并且这样的(指出如何实现结果)代码只要写...
分类:
其他好文 时间:
2014-07-17 20:21:25
阅读次数:
216
Summation of Four Primes
Input: standard input
Output: standard output
Time Limit: 4 seconds
Euler proved in one of his classic theorems that prime numbers are infinite in number. But can every nu...
分类:
其他好文 时间:
2014-07-17 21:05:16
阅读次数:
299
UVA 11346 - Probability
题目链接
题意:给定a,b,s要求在[-a,a]选定x,在[-b,b]选定y,使得(0, 0)和(x, y)组成的矩形面积大于s,求概率
思路:这样其实就是求xy > s的概率,那么画出图形,只要求y = s / x的原函数, y = slnx,带入两点相减就能求出面积,面积比去总面积就是概率
代码:
#include ...
分类:
其他好文 时间:
2014-07-17 21:15:07
阅读次数:
241
hdu1881 毕业bg(深搜dfs)...
分类:
其他好文 时间:
2014-07-17 19:03:39
阅读次数:
189
百度在线手写板代码-php自学网
#sx{color:#00C;text-decoration:underline;cursor:pointer;}
手写
var w = window,d = document,n = navigator,k = d.f.wd
if (w.attachEvent) {
w.attachEve...
分类:
其他好文 时间:
2014-07-17 19:02:52
阅读次数:
635
题解:从1开始乘到n,因为结果只要最后一位,所以每乘完一次,只要保留后5位(少了值会不准确,刚开始只保留了一位,结果到15就错了,保留多了int会溢出,比如3125就会出错) 和下一个数相乘,接着保留5位,注意5位没有后导零,最后取5位中最后一个不是零的就可以了。
#include
#include
using namespace std;
int main() {
int n;
...
分类:
其他好文 时间:
2014-07-17 19:14:19
阅读次数:
181
操作系统概述一、操作系统的概念、特征、功能和提供的服务 1.操作系统的概念 操作系统是计算机系统中最重要、最基本的系统软件,操作系统位于硬件和用户程序之间。 对于用户来讲:它能向用户提供使用计算机的接口; 从资源管理角度来看:它能管理计算机软硬件资源,提高其利用率; 再者,利用虚拟机技术(如WMWare,VirtualBox,Java虚拟机等),扩展了计算机的功能和使用范...
分类:
其他好文 时间:
2014-07-17 21:19:41
阅读次数:
304
一、类DynamicRTSPServer作用 1,提供RTSP服务二、类DynamicRTSPServer继承关系图
分类:
其他好文 时间:
2014-07-17 19:01:01
阅读次数:
264
当您使用资源浏览器查看文件时,您能够随心所欲的按名称、大小、类型及改动日期不同的列对文件进行大小排序。.Net提供的ListView组件没有直接提供这样的功能,但要实现并不难。 ListView.Sort()方法的功能是“对列表视...
分类:
其他好文 时间:
2014-07-17 19:01:25
阅读次数:
190
看到ASP.NET vNext要支持Linux后,终于按捺不住折腾的心,决定先架个环境出来,只是实在没想到,因为相对熟悉点才选择的Ubuntu 14.04,会让过程会如此坎坷,有时呆看着屏幕上提示的种种error,真有点别人碰到的错都被我碰到了的荣幸,所以目标达成后,回头将这些错误回顾一遍,记录.....
分类:
其他好文 时间:
2014-07-17 19:01:50
阅读次数:
278
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
分类:
其他好文 时间:
2014-07-17 19:00:10
阅读次数:
183