`
xitongyunwei
  • 浏览: 930047 次
文章分类
社区版块
存档分类
最新评论
文章列表
1. Windows Media Player <object id="avewmplayer" height="320" width="400" classid="CLSID:{6BF52A52-394A-11d3-B153-00C04F79FAA6}"> <param name="AutoStart" value="0"> <param name="Balance" value="0"&g ...
1. Windows Media Player <object id="avewmplayer" height="320" width="400" classid="CLSID:{6BF52A52-394A-11d3-B153-00C04F79FAA6}"> <param name="AutoStart" value="0"> <param name="Balance" value="0"&g ...
http://poj.youdao.com/nanti1/B/ 描述 在有道搜索框中,当输入一个或者多个字符时,搜索框会出现一定数量的提示,如下图所示: 现在给你N个单词和一些查询,请输出提示结果,为了简化这个问题,只需要输出以查询词为前缀的并且按字典序排列的最前面的8个单词,如果符合要求的单词一 个也没有请只输出当前查询词。 输入 第一行是一个正整数N,表示词表中有N个单词。 接下来有N行,每行都有一个单词,注意词表中的单词可能有重复,请忽略掉重复单词。所有的单词都由小写字母组成。 接下来的一行有一个正整数Q,表示接下来有Q个查询。 接下来Q行,每行有一个单词,表示一个 ...
root@eclair:/nfs# cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.241.130 netmask 255.255.255.0 gateway 192.168.241.2 allow-hotplug usb0 auto usb0 iface usb0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway ...
学习了两个算法: 1、除法速算: http://blog.csdn.net/ZhengKarl/archive/2010/05/15/5596154.aspx 2、约瑟夫环的数学算法: http://blog.csdn.net/ZhengKarl/archive/2010/05/15/5596118.aspx 为什么x'=x+k 序列 1 : 1, 2, 3, 4, …, n-2, n-1, n 此时出队列的第一个人,位置为 k ,号码肯定是 m%n 。这个应该没有问题,也就是取余操作使得数组类似能够有循环的功能。 此时序列 2 : 1, 2, 3, 4, … k-1, k+ ...
转自:http://hi.baidu.com/yuange1975/blog/item/864477f2c5570516b07ec530.html 除法也就是:商=被除数/除数 那我们就考虑循环到底是怎么的,循环也就是余数和前面的被除数相同,也就是一倍,那么不同的情况呢?比如2倍3倍N倍?2分之1、3分之1、N分之1? 答案显然就出来了 我的评论: 看明白了...还有问题没来得及思考,跟博主探讨一下:1、因为要余数是除数的倍数,所以除数不能是两位数?2、如果对于6这种不能被10整除的,你的这 种方法是否有效?比如说6/7怎么算? 高中的成果.比 ...
数学算法: #include "stdio.h" #include "stdlib.h" int josephus(int n, int m) { int pos; if (n == 1) { return 1; } else { pos = (josephus(n-1, m) + m -1)%n + 1; } return pos; } int josephus_no_recurse_1(int n, int m) { int s = 0; int i; for (i=2; i<=n; i++) ...
bashrc in googlecode is:http://code.google.com/p/usefulshellscript/source/browse/trunk/mylinuxconfig/bashrc # some more ls aliases unalias ls alias ls='ls --color=tty ' #alias ls='ls --color ' alias ll='ls -l ' #alias la='ls -A' alias la='ls -latr' alias l='ls -CF ' alias cd.='cd ../..' ali ...
vimrc on googlecode is:http://code.google.com/p/usefulshellscript/source/browse/trunk/mylinuxconfig/vimrc
echo 's ' > /proc/sysrq-trigger 这样子就行了 http://www.linuxeden.com/doc/24712.html 根据Linux内核文档介绍: 这是一组'魔术组合键',只要内核没有被完全锁住,不管内核在做什么事情,使用这些组合键可以立即打印出内 核的信 ...
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev sudo update-alternatives --config java
http://gooss.org/10-coolest-linux-single-command-turn/ sudo !! 以root帐户执行上一条命令 python -m SimpleHTTPServer 利用Python搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。 :w !sudo tee % 在Vim中无需权限保存编辑的文件。 cd - 更改到上一次访问的目录。 ^foo^bar 将上一条命令中的foo替换为bar,并执行。 cp filename{,.bak} 快速备份或复制文件。 mtr google.com ...
More than ever before, today’s developers are open to considering and using multiple technologies to enable them to build solutions smoothly and deliver them to their customers quickly. There are an increasing number of choices available for developers in terms of programming styles. Our goal is ...
More than ever before, today’s developers are open to considering and using multiple technologies to enable them to build solutions smoothly and deliver them to their customers quickly. There are an increasing number of choices available for developers in terms of programming styles. Our goal is ...
/* *filename: fibonacci.cpp *date: 2006.10.1 *created: karl zheng *description: MatrixMultiplication for calculate Fibonacci No. n,cost: logN */ #include <stdafx.h> #include <stdio.h> #include<iostream> #include & ...
Global site tag (gtag.js) - Google Analytics