自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 资源 (5)
  • 收藏
  • 关注

原创 Project Euler:Problem 20 Factorial digit sum

n! means n × (n − 1) × ... × 3 × 2 × 1For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800,and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.Find the sum of the digi

2015-05-31 15:05:41 967 1

原创 Project Euler:Problem 19 Counting Sundays

You are given the following information, but you may prefer to do some research for yourself.1 Jan 1900 was a Monday.Thirty days has September,April, June and November.All the rest have thirty

2015-05-31 11:14:30 610 1

原创 Project Euler:Problem 18 Maximum path sum I

By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.37 42 4 68 5 9 3That is, 3 + 7 + 4 + 9 = 23.Find th

2015-05-31 10:54:42 846 2

原创 Project Euler: Problem 17 Number letter counts

If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.If all the numbers from 1 to 1000 (one thousand) inclusive we

2015-05-31 10:04:43 733

原创 Project Euler:Problem 16 Power digit sum

215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 21000?#include #include using namespace std;int main(){ string s = "1"; for (

2015-05-31 09:56:10 980

原创 Project Euler:Problem 15 Lattice paths

Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.How many such routes are there through a 20×

2015-05-30 21:48:12 662

原创 Project Euler: Problem 14 Longest Collatz sequence

The following iterative sequence is defined for the set of positive integers:n → n/2 (n is even)n → 3n + 1 (n is odd)Using the rule above and starting with 13, we generate the following sequ

2015-05-30 21:22:59 699

原创 Project Euler:Problem 13 Large sum

Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.37107287533902102798797998220837590246510135740250463769376774900097126481248969700780504170182605387432498

2015-05-30 20:55:56 594

原创 Project Euler:Problem 12 Highly divisible triangular number

The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:1, 3, 6, 10, 15, 21, 28,

2015-05-30 20:07:51 628

原创 Project Euler:Problem 11 Largest product in a grid

In the 20×20 grid below, four numbers along a diagonal line have been marked in red.08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 0849 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56

2015-05-30 17:47:00 863 1

原创 Project Euler: Problem 9 Special Pythagorean triplet

A Pythagorean triplet is a set of three natural numbers, a  b  c, for which,a2 + b2 = c2For example, 32 + 42 = 9 + 16 = 25 = 52.There exists exactly one Pythagorean triplet for which a + b + c

2015-05-30 17:20:35 480

原创 Project Euler:Problem 8

The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186

2015-05-30 12:16:18 1123

转载 在Kali Linux上安装maven

First, install a JDK.# sudo apt-get install openjdk-7-jdkWe need Maven to build ODL. Install the most recent version of Maven# sudo mkdir -p /usr/local/apache-mavenDownload the maven source

2015-05-28 11:25:19 3355

转载 形式幂级数介绍

最近在看网络编码的卷积网络编码部分,然后被幂级数环,有理幂级数环,形式幂级数弄昏头了。整理了一下资料,来源:1,21.幂级数:幂级数是函数项级数中最基本的一类。它的特点是在其收敛区间绝对收敛,且幂级数在收敛区间内可逐项微分和积分。幂级数的形式为:,其中称作幂级数系数。1)收敛性如果级数在处收敛,则它在满足不等式的一切处绝对收敛;如果级数在处发散,则它在满足不等式

2015-05-27 21:37:15 5885

原创 百度之星资格赛2015IP聚合

IP聚合  Accepts: 1783  Submissions: 4690 Time Limit: 2000/1000 MS (Java/Others)  Memory Limit: 65536/65536 K (Java/Others)Problem Description当今世界,网络已经无处不在了,小度熊由于犯了错误,当上了度

2015-05-24 22:15:50 442

原创 hihocoder #1075 : 开锁魔法III

时间限制:6000ms单点时限:1000ms内存限制:256MB描述一日,崔克茜来到小马镇表演魔法。其中有一个节目是开锁咒:舞台上有 n 个盒子,每个盒子中有一把钥匙,对于每个盒子而言有且仅有一把钥匙能打开它。初始时,崔克茜将会随机地选择 k 个盒子用魔法将它们打开。崔克茜想知道最后所有盒子都被打开的概率,你能帮助她回答这个问题吗?输入第一行

2015-05-22 20:47:44 708

原创 hihocoder #1083 : 积分

时间限制:1000ms单点时限:1000ms内存限制:256MB描述在平面上有一个顶点数为N的多边形P,区域你需要写一个程序计算这个积分输入输入包含T (T【参数说明】3 |Xi|, |Yi| 输出对于每个测试用例行输出结果占一行。将答案四舍五入到小数点后两位(0.005四舍五入到0.01)。

2015-05-22 16:58:12 888

原创 hihocoder #1042 : 跑马圈地

时间限制:10000ms单点时限:1000ms内存限制:256MB描述一觉醒来,小Hi穿越回了古代!由于破敌有功,大汗赏赐小Hi可以在敌人的草原上跑马圈地:一天之内骑马围住的草原以后就是小Hi的牧场。但是令小Hi头疼的是,敌人的草原上有一块臭水塘。小Hi不能骑马走进臭水塘里,并且即使小Hi的骑马路径围住了臭水塘,小Hi的牛马也不能在臭水塘里放牧。

2015-05-21 18:30:22 1507 1

原创 hihocoder #1052 : 基因工程

时间限制:1000ms单点时限:1000ms内存限制:256MB描述小Hi和小Ho正在进行一项基因工程实验。他们要修改一段长度为N的DNA序列,使得这段DNA上最前面的K个碱基组成的序列与最后面的K个碱基组成的序列完全一致。  例如对于序列"ATCGATAC"和K=2,可以通过将第二个碱基修改为"C"使得最前面2个碱基与最后面两个碱基都为"AC"。当然还

2015-05-21 13:36:53 1147

原创 hihocoder #1107 : Shortest Proper Prefix

时间限制:10000ms单点时限:1000ms内存限制:512MB描述Query auto-completion(QAC) is widely used in many search applications. The basic idea is that when you type some string s in the search box sever

2015-05-20 21:07:30 866

原创 hihocoder #1099 : Constellations

时间限制:10000ms单点时限:1000ms内存限制:256MB描述Recently Little Hi started to like astronomy and downloaded the pictures of K constellations. He wonders how many of them he can spot in the nigh

2015-05-19 21:56:46 770

原创 hihocoder #1111 : Huffman编码

时间限制:30000ms单点时限:3000ms内存限制:256MB描述给定一个大小为n的字符集Σ中每个字符出现的频数,求不同的Huffman编码的数量模109 + 7。一个编码是一个从Σ到01字符串的函数。 一个Huffman编码是一个由以下过程生成的编码:初始时每个字符为一个集合。初始时所有字符对应到空字符串。一个集合S的频数w(S)定义为S内所有

2015-05-18 21:59:13 1071

原创 MCIR SQLol Challenges SQL注入

Challenge 0Your objective is to get the query to return all usernames instead of just one.PARAMETERS:Query Type - SELECT queryInjection Type - String value in WHERE clauseMethod - GETSanitizat

2015-05-17 15:57:39 3276

原创 Magical code injection rainbow(MCIR)在win7上部署

MCIR尽管作为十大渗透测试演练系统(http://www.freebuf.com/tools/4708.html)  但相关文章非常少。所以遇到问题Google搜不到,在stackoverflow上提问也没人鸟,虽然可能是英语太渣了(;′⌒`)。运行环境是windows7/64,wampserver (PHP/5.2.9-2,Apache/2.2.13,MySQL/5.6.17)。从gi

2015-05-17 15:45:37 1794

原创 hihocoder:博弈游戏·Nim游戏·二

时间限制:10000ms单点时限:1000ms内存限制:256MB描述Alice和Bob这一次准备玩一个关于硬币的游戏:N枚硬币排成一列,有的正面朝上,有的背面朝上,从左到右依次编号为1..N。现在两人轮流翻硬币,每次只能将一枚正面朝上的硬币翻过来,并且可以随自己的意愿,在一枚硬币翻转后决定要不要将该硬币左边的任意一枚硬币也翻一次(正面翻到背面或背面翻到

2015-05-16 21:29:45 531

原创 Blind SQL Injection on DVWA(Medium Level)

Vulnerability: SQL Injection (Blind)与前面的Vulnerability: SQL Injection这两个页面的差别就在于有没有有用的错误信息或者我们已经习惯的反馈内容。本文的终极任务是获得user和password。1.简单的输入测试输入2得到:输入2 or 1=1得到:输入 2' or '1'='1得到:以上说明了 $id = m

2015-05-15 17:01:08 1334

原创 在Kali Linux下使用sqlmap

Sqlmap是一款开源的命令行自动SQL注入工具。它能够对多种主流数据库进行扫描支持。1.启动xampp2.测试的网站是DVWA,security level设为medium,因为在sqlmap中安全等级设为low,medium,high都是一样的操作步骤。3.启动Tamper Data(tools->tamper data)4.测试一下

2015-05-14 12:45:20 32534 1

原创 在Kali Linux上部署DVWA

在http://www.apachefriends.org下载xampp。XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。XAMPP 的确非常容易安装和使用:只需下载,安装,启动即可。安装步骤:1.下载下来就是一个.run的文件,双击安装即可,比之前的压缩文件安装还要简单。一直点next就行xampp安装在/opt/

2015-05-13 23:01:39 7528

原创 SQL injection on DVWA (medium Level)

medium与low的区别在于对对输入的数据进行了转义处理,多了$id = mysql_real_escape_string($id);  这句。在这里输入‘会有如下结果:不用担心还有好多是可以用哒~~输入1 or 1=1:得到了所有id对应的用户。接下来用union select输入 1 or 1=1 union select 1,2--可以正

2015-05-13 18:19:20 2296

原创 SQL injection on DVWA (Low Level)

首先看看输入正常的ID得到什么结果:当输入1‘ 时:说明了这个id的类型是个string,数据库是MySQL当输入1’ and '1'='1时,and后面的1=1是个永真式:当输入1‘ or '1'='1是,这个式子是个永真式,返回所有结果:确定数据表的列数:输入' union select 1,2 --'

2015-05-12 20:45:12 1102

原创 wampserver搭建的网页返回的数据库错误是乱码怎么办

最近在玩burpsuite,sql注入时返回的数据库错误不知道是什么奇怪的乱码看不懂怎么办

2015-05-10 15:15:33 924

原创 wamp搭建测试渗透环境用burpsuite抓不到请求要怎么办

在访问那个搭建的网页时不妨把localhost换成自己的ip试试。。。

2015-05-08 16:58:27 1963 3

原创 hihocoder:随机斐波那契

妈妈说题目要从简单的做起!描述大家对斐波那契数列想必都很熟悉:a0 = 1, a1 = 1, ai = ai-1 + ai-2,(i > 1)。现在考虑如下生成的斐波那契数列:a0 = 1, ai = aj + ak, i > 0, j, k从[0, i-1]的整数中随机选出(j和k独立)。现在给定n,要求求出E(an),即各种可

2015-05-03 21:02:07 815 1

IEEE极限编程2014原题

2014年IEEE极限编程原题

2015-03-29

数据库复习大纲

数据库复习大纲,希望对大家有帮助,是师兄一代代传下来的资料

2012-12-01

中山大学遗传算法基本习题

中山大学遗传算法基本习题

2012-09-20

进化算法的发展与应用

进化算法的发展与应用

2012-09-20

计算机组成原理自测题库

计算机组成原理自测题库

2012-06-27

空空如也

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

TA关注的人

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