自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

【落~风~月】

随心 随性 随缘?

  • 博客(36)
  • 资源 (2)
  • 收藏
  • 关注

原创 Torando源码解析之XSRF防护的实现

Torando源码解析之XSRF防护的实现Torando源码解析之XSRF防护的实现Tornado开启XSRF防护的方法源码解析xsrf_form_html()是什么self.xsrf_token是什么Tornado开启XSRF防护的方法http://tornado-zh.readthedocs.io/zh/latest/guide/security.ht...

2018-04-07 22:24:09 1059 1

原创 用css将table翻转

首先直接上代码。 table test 姓名 性别 年龄 张三 男 20 李四 男 20*{}html,body{ height: 100%; width: 100%;} #table-demo{ text-align: cen

2016-08-17 11:23:25 4732 1

原创 JavaScript中,数组存储单一变量,对象,数组时的区别

无意间看到JS的数组可以把对象,数组填充进一个新的数组中。然后便产生了一个疑问:填充进去的数组和对象的原值被改变时,填充进去的是否也会改变?经测试发现:数组中填充的为单一变量时,仅仅为赋值操作数组中填充的为另一数组或者是一个对象时,对被填充的数组操作和对原数组或对象操作,结果都将会改变双方的值测试代码如下~Example Test!!

2016-03-29 15:58:05 3100

原创 Linux下对带空格的文件进行处理

Linux下命名对文件进行命名时是不推荐使用空格的。因为一些操作对带有空格的文件会略显麻烦。如:#创建带空格的文件的方法#使用\对空格进行转义touch tes\ t#使用双引号touch "tes t2"同理:对带空格的文件进行删除,或者拷贝,移动等操作时也需要用转义或者添加双引号。可是,如果要对大量的文件进行处理时,就会更显麻烦

2016-03-25 20:21:46 6279

原创 (数位DP)HDU-5642-King's Order

数位DP,HDU,Bestcoder

2016-03-19 16:16:28 392

原创 Codeforces Round #344 (Div. 2) C 题题解 (贪心+单调栈)

C. Reporttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputEach month Blake gets the report containing main

2016-03-05 10:03:04 803 1

原创 Codeforces Round #344 (Div. 2) B 题题解 (暴力)

B. Print Checktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKris works in a large company "Blake Technolo

2016-03-05 09:42:04 731

原创 Codeforces Round #344 (Div. 2) A 题题解 (暴力)

A. Interviewtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBlake is a CEO of a large company called "Blake

2016-03-05 09:33:41 651

原创 在 Linux 系统中使用 rm -rf /* 命令

请勿在实际工作系统中使用此命令!请勿在实际工作系统中使用此命令!请勿在实际工作系统中使用此命令!因为并不想破坏自己的Linux系统,因此,所有测试均在虚拟机中完成。测试环境:Ubuntu Kylin-14.04.3-64位系统系统Linux内核版本:3.19.0-25-generic测试步骤:打开终端,获取root权限,输入以下命

2016-02-26 16:57:47 31074 4

原创 HDU 5596 GTW likes gt 暴力~

GTW likes gtTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 214 Accepted Submission(s): 71Problem Description Long long ago, there were n

2015-12-12 22:17:26 496

原创 C#连接sql server2008数据库 (笔记)

第一次使用C#连接数据库。记录一下~使用winform中的dataGridview来显示从数据库中获取到的数据。using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text

2015-12-10 16:07:36 961

原创 BestCode_Round65_C题(线段树)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5592思路:很容易处理出当前位置前面比当前位置的数大的数的个数。假设前缀逆序对数为num[i] , 则num[i]-num[i-1]就为位置i前面比原本在位置i上的数大的个数。假设最后一个数为N. 则[1-N]中比位置N更大的数为num[N]-num[N-1] ,则第N个位置的数就为 N - (

2015-12-06 11:35:29 302

原创 HDU 4355 (三分算法基础)

Party All the TimeTime Limit: 6000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4553    Accepted Submission(s): 1419Problem DescriptionIn the

2015-11-07 19:09:53 404

原创 2015年ACM北京网络赛 B题 (模拟+枚举题意请原谅我英语不好。。。)

Mission Impossible 6时间限制:1000ms单点时限:1000ms内存限制:256MB描述You must have seen the very famous movie series,"Mission Impossible", from 1 to 4. And "Mission Impossible 5" is now

2015-09-20 17:46:10 982

原创 POJ 2559 单调栈

Largest Rectangle in a HistogramTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17222 Accepted: 5562DescriptionA histogram is a polygon composed of a se

2015-09-12 17:20:49 420 1

原创 POJ 2452 (RMQ + 二分)

Sticks ProblemTime Limit: 6000MS Memory Limit: 65536KTotal Submissions: 10141 Accepted: 2682DescriptionXuanxuan has n sticks of different length. One day, she put

2015-08-03 12:13:18 619

原创 如何用批处理获取本地磁盘中的指定文件的路径

其实我并不是想专门学习批处理,学批处理的初衷仅仅是因为我想对我自己以前写过的C/C++代码进行整理(>﹏<)我对我这两年来写的C/C++代码是按照日期来进行存储的,就是说我的写过的C/C++源码分别放在几百个文件夹之中。。。。。。。手动整理起来肯定会作死,于是想到了批处理。花了几天的时间学习了之后,终于是把那代码写出来了,也就十几行。用了bat程序后很快就把我的代码整理出来了,五百多个

2015-08-02 16:25:54 2815 1

原创 HDU 5335(2015 ACM多校训练第四场1009)

Walk OutTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2469    Accepted Submission(s): 485Problem DescriptionIn an n∗m maze,

2015-08-01 16:12:13 606

原创 ZOJ 2277 (数论)

The Gate to FreedomTime Limit: 2 Seconds      Memory Limit: 32768 KB BackgroundIt is dark at night.It is silence at night.It is she in the dark.It is she in the silence. Then a lig

2015-07-31 13:51:53 689

原创 2014年ACM牡丹江赛区现场赛K题(ZOJ 3829)

2014年ACM牡丹江赛区现场赛K题(ZOJ 3829)

2015-07-31 11:25:33 440

原创 HDU 5317(2015多校第三场1002)

RGCDQTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1320    Accepted Submission(s): 573Problem DescriptionMr. Hdu is interested

2015-07-29 18:55:52 617

原创 2014年上海赛区现场赛 I 题 Defeat the Enemy

题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=5158现在想想,当年的自己还是太弱了。也无怪乎自己在上海被惨虐了。原本想说一些什么,但是想想还是算了吧。题目大意:己方有n个部队,敌方有m个部队1

2015-07-29 14:29:09 957

原创 CODE [VS] 1009 产生数 (用Floyd算法求解传递闭包)

题目链接:http://codevs.cn/problem/1009/问题分析:很明显,扫描一遍字符串,遇到可以变换的数字,将这个可以变换的数字的所有可能情况的数目乘起来便是我们要的答案。现在的问题便是如何求解单个数字的所有可能情况。而这可以通过求解数字 0-9 之间的邻接矩阵的传递闭包的方法求解出来。用floyd算法即可。ps:有人会问,floyd算法为何可以求解传递闭包?理由很

2015-03-09 15:52:48 671 1

原创 Codeforces Round #292 (Div. 2) A,B,C,D 题解

A. Drazil and Datetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSomeday, Drazil wanted to go on date with

2015-02-18 10:17:57 1742

原创 HDU 5115 Dire Wolf (区间DP)

Dire WolfTime Limit: 5000/5000 MS (Java/Others)    Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 310    Accepted Submission(s): 181Problem DescriptionDire wolves, als

2014-12-28 00:18:27 433

原创 Codeforces Round #268 (Div. 2) 题解

Codeforces Round #268 (Div. 2) A , B , C 题解

2014-09-21 14:00:49 1868 1

原创 ZOJ 3818 The Himalayas (2014 ACM/ICPC 牡丹江站 网络预选赛 J 题)

Pretty PoemTime Limit: 2 Seconds      Memory Limit: 65536 KB Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many famous poets in the contemp

2014-09-14 14:46:52 587

原创 ZOJ 3809 The Himalayas (2014 ACM/ICPC 牡丹江站 网络预选赛 A 题)

原题链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3809

2014-09-10 18:49:58 598

原创 POJ 1011 Sticks 【深搜+剪枝】

原题链接:  http://poj.org/problem?id=1011

2014-07-21 20:01:19 586

原创 Codeforces Round #257 (Div. 2) B. Jzzhu and Sequences

Codeforces Round #257 (Div. 2)

2014-07-20 01:03:56 521

原创 POJ 1163 The Triangle 动态规划(由下至上+由上至下)双解

题目:The TriangleTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 36792 Accepted: 22034Description73 88 1 02 7 4 44 5 2 6

2014-07-17 11:42:27 955

原创 HDU 1671 Trie树【 动态分配内存 + 内存释放 】

Phone ListTime Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9575    Accepted Submission(s): 3253Problem DescriptionGiven a list of pho

2014-07-06 15:59:33 719

原创 向MFC中导入系统时实时间的方法(纯方法)

首先,向窗口中添加一个EDIT控件

2014-06-07 11:35:13 809

原创 青蛙的烦恼 题解

青蛙的烦恼Time Limit : 3000/1000ms (Java/Other)   Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 7   Accepted Submission(s) : 2Font: Times New Roman | Verdana | GeorgiaFont S

2014-05-11 17:41:44 1029

原创 UVA 624 CD ( 01背包 + 逆推路径)

CDYou have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on CDs. You need to have it on tapes so the problem to solve is: you have a tape 

2014-05-04 13:43:39 683

原创 POJ 1979 Red and Black 基础性的DFS

DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til

2014-05-02 17:35:29 725

日历(课设专用)

这是一个简易的日历查询系统,可按年份查询,也可以按月份查询,他可以输出你所想要的任意日期。如果想要更改字体或背景颜色,可以在源码中自行更改。

2014-07-17

车票管理系统(MFC简易版)

一个简易的MFC版车票管理系统,画面简洁明了,后台处理较为顽强,支持非法输入。

2014-06-14

空空如也

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

TA关注的人

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